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:
Andrei Jiroh Halili 2022-06-07 21:53:26 +08:00
parent d478a59bf7
commit 1417ca414d
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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