diff options
author | Timo Wilken | 2023-01-24 22:37:01 +0100 |
---|---|---|
committer | Timo Wilken | 2023-01-24 22:37:01 +0100 |
commit | 5c8a2a8504519d43b5b681424b3694dca0418965 (patch) | |
tree | 11886cc5edab64ce436bb6bd6d12cf7667b00e6b /tw/home/files/zshrc | |
parent | 90de989e54db38f5b8c1ad83b57a30d81e374911 (diff) |
Use a basic vim instead of Emacs on servers
Diffstat (limited to 'tw/home/files/zshrc')
-rw-r--r-- | tw/home/files/zshrc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc index a13df739..5d26d9d3 100644 --- a/tw/home/files/zshrc +++ b/tw/home/files/zshrc @@ -84,9 +84,10 @@ fi ## Aliases alias e="${VISUAL-$EDITOR}" -# Use ASYNC_EDITOR so I can continue using the shell while the editor -# remains open in a separate window. -alias em="$ASYNC_EDITOR" +# Use ASYNC_EDITOR so I can continue using the shell while the editor remains +# open in a separate window. If no ASYNC_EDITOR is defined (e.g. on servers), +# then use the regular editor for convenience. +alias em="${ASYNC_EDITOR-${VISUAL-$EDITOR}}" alias se='sudo -e' alias ls='\ls --color=auto -h' alias la='\ls --color=auto -hA' |