aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc10
1 files changed, 8 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index a97c0a73..fa4186d4 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,9 +1,15 @@
-# Emacs keybindings even if EDITOR is vi(1)
-bindkey -e
+# Clear away all aliases; we do this here rather than in $ENV because the ksh
+# family of shells relies on aliases to implement certain POSIX utilities like
+# `fc` and `type`. Ignore output, as older Zsh seems not to implement this
+# (quelle surprise).
+unalias -a >/dev/null 2>&1
# If ENV is set, source it to get all the POSIX-compatible interactive stuff
[[ -n $ENV ]] && source "$ENV"
+# Emacs keybindings even if EDITOR is vi(1)
+bindkey -e
+
# History settings
setopt histignorealldups sharehistory
HISTFILE=$HOME/.zsh_history