From 43c88db1a7b402f28567e2659a40943b2a1a54ac Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Jan 2017 14:00:17 +1300 Subject: Clear away all aliases for interactive shells Some systems like OpenBSD or Slackware set up well-meaning aliases that I don't want. We do this for Bash, Yash, and Zsh, but not for Ksh, because it looks like its implementations all variously use aliases to implement some POSIX builtins like fc(1) or type(1) in terms of their own builtins. --- zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zsh') diff --git a/zsh/zshrc b/zsh/zshrc index a97c0a73..68f8ffc7 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,6 +1,11 @@ # 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(1) and type(1) +unalias -a + # If ENV is set, source it to get all the POSIX-compatible interactive stuff [[ -n $ENV ]] && source "$ENV" -- cgit v1.2.3