From 1417ca414da4e38ede644a8f744b1e0c4a79284b Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Eugenio Halili Date: Tue, 7 Jun 2022 21:53:26 +0800 Subject: [PATCH] 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 --- bashrc/worthwhile-functions | 2 +- tmux/main.conf | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bashrc/worthwhile-functions b/bashrc/worthwhile-functions index 7399052..dbaf2c3 100644 --- a/bashrc/worthwhile-functions +++ b/bashrc/worthwhile-functions @@ -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 diff --git a/tmux/main.conf b/tmux/main.conf index 0ce6dd4..efb7029 100644 --- a/tmux/main.conf +++ b/tmux/main.conf @@ -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 +R shortcut. bind r source-file ~/.tmux.conf