1autoload -Uz is-at-least
2
3# *-magic is known buggy in some versions; disable if so
4if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then
5  for d in $fpath; do
6    if [[ -e "$d/url-quote-magic" ]]; then
7      if is-at-least 5.1; then
8        autoload -Uz bracketed-paste-magic
9        zle -N bracketed-paste bracketed-paste-magic
10      fi
11      autoload -Uz url-quote-magic
12      zle -N self-insert url-quote-magic
13    break
14    fi
15  done
16fi
17
18## jobs
19setopt long_list_jobs
20
21env_default 'PAGER' 'less'
22env_default 'LESS' '-R'
23
24## super user alias
25alias _='sudo '
26
27## more intelligent acking for ubuntu users
28if (( $+commands[ack-grep] )); then
29  alias afind='ack-grep -il'
30else
31  alias afind='ack -il'
32fi
33
34# recognize comments
35setopt interactivecomments
36