Various updates to sh shortcuts

direnv commands
terraform commands
tmux clipboard hack
a better editor detector
This commit is contained in:
Gal Szkolnik 2022-07-11 17:59:11 -04:00
parent 4c40b724c8
commit 8238a75408
4 changed files with 101 additions and 1 deletions
_home/dot_sz.shrc.d

View file

@ -16,8 +16,10 @@ if [[ -r "$HOME/.config/_my.emacs/spacemacs/emacs.d/init.el" \
&& -n "$(which-command emacs)" \
&& -n "$(which-command edit-with-spacemacs)" \
]]; then
alias my_editor='edit-with-spacemacs'
EDITOR=$(which-command edit-with-spacemacs | head -1)
alias my_editor="$EDITOR "
else
EDITOR="$PREFERRED_VI"
alias my_editor='my_vi'
fi
alias nvim="my_vi"