Update edit-script-file to rely on EDITOR or VISUAL var
Also in this commit, I changed the tmux prefix to M-x btw. Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
d478a59bf7
commit
1417ca414d
|
@ -19,7 +19,7 @@ list-debs-size() {
|
|||
|
||||
edit-script-file() {
|
||||
# if you use other editor, please set $EDITOR.
|
||||
$(command -v code>>/dev/null && echo code || command -v nano>>/dev/null && echo nano || echo vi) "$(command -v $1)"
|
||||
$EDITOR "$(command -v $1)"
|
||||
}
|
||||
|
||||
# reloading stuff
|
||||
|
|
|
@ -3,9 +3,7 @@ set-option -g default-shell /bin/zsh
|
|||
|
||||
# my prefix btw
|
||||
unbind C-b
|
||||
#set -g prefix M-w
|
||||
# additional prefix in case we're using the Shelly iOS app
|
||||
set -g prefix C-W
|
||||
set -g prefix M-x
|
||||
|
||||
# make sure we can magically source config changes via <prefix>+R shortcut.
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
|
Loading…
Reference in New Issue