aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/files/zshrc')
-rw-r--r--tw/home/files/zshrc7
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'