# <nyh@math.technion.ac.il> for a fix (-r) to handle whitespace/quotes
# correctly, both on the Zsh mailing list.
TRAPINT() {
+ # Don't store this line in history if histignorespace is enabled and the
+ # line starts with a space.
+ if [[ -o histignorespace && ${BUFFER[1]} = " " ]]; then
+ return $1
+ fi
+
# Store the current buffer in the history.
zle && print -s -r -- $BUFFER
# Global aliases for often used redirections.
alias -g E='2>&1'
+alias -g N='>/dev/null'
+alias -g EN='2>/dev/null'
alias -g L='2>&1 | less'
alias -g LS='2>&1 | less -S' # -S prevents wrapping of long lines
alias -g D='2>&1 | colordiff | less'