diff options
-rw-r--r-- | .config/env | 4 | ||||
-rw-r--r-- | .config/zsh/alias.zsh | 2 | ||||
-rwxr-xr-x | .local/bin/editorcmd | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/.config/env b/.config/env index 9aa97aa..3dabf6a 100644 --- a/.config/env +++ b/.config/env @@ -15,8 +15,8 @@ export PATH="$HOME"/.local/bin:"$PATH":/usr/local/llvm10/bin:/usr/local/llvm11/bin # Apps -export EDITOR="emacsclient -c -a nvim" -export VISUAL="$EDITOR" +export EDITOR="editorcmd" +export VISUAL="${EDITOR}" export PAGER='less' export TERMINAL='st' export BROWSER='firefox' diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index da4a312..d287a97 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -88,7 +88,7 @@ vimbin() { cd $p return fi - $VISUAL $sc + ${VISUAL} $sc cd $p } vimconf() { diff --git a/.local/bin/editorcmd b/.local/bin/editorcmd new file mode 100755 index 0000000..0aaa412 --- /dev/null +++ b/.local/bin/editorcmd @@ -0,0 +1,3 @@ +#!/usr/local/bin/dash + +exec emacsclient -t -a /usr/local/bin/nvim $@ |