File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
# You need to copy the content of this file to your shell rc file (e.g. `~/.bashrc` `~/.zshrc`)
2
2
3
- # Alias for TUIFIManager with cd functionality on exit (Ctrl+E)
4
- alias tuifi=' function _tuifi(){
5
- # Run tuifi. Change tuifi_cd_on_esc to True so it CDs with escape key
3
+ function _tuifi(){
4
+ # Run tuifi. Optionally enable escape-key to cd if set to True
6
5
tuifi_cd_on_esc=False tuifi " $@ "
7
6
8
7
# Check if path exists in this virtual file system (stored in RAM) and cd...
9
8
if [ -e /dev/shm/tuifi_last_path.txt ]; then
10
9
cd " $( < /dev/shm/tuifi_last_path.txt) "
11
10
rm /dev/shm/tuifi_last_path.txt
12
11
fi
13
- }; _tuifi'
12
+ }
13
+
14
+ # Alias for TUIFIManager with cd functionality on exit (Ctrl+E)
15
+ alias tuifi=' _tuifi'
Original file line number Diff line number Diff line change
1
+ # You need to copy the content of this file to your shell rc file (e.g. `~/.bashrc` `~/.zshrc`)
2
+ # !!! This script defaults to cd-on-escape key
3
+
4
+ function _tuifi() {
5
+ tuifi_cd_on_esc=True tuifi " $@ "
6
+ cd " $( < /data/data/com.termux/files/usr/tmp/tuifi_last_path.txt) "
7
+ # (prefer '/dev/shm/tuifi_last_path.txt' instead, if it exists)
8
+ }
9
+
10
+ alias tuifi=' _tuifi'
11
+
You can’t perform that action at this time.
0 commit comments