]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/lib/misc.zsh
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / lib / misc.zsh
1 autoload -Uz is-at-least
2
3 # *-magic is known buggy in some versions; disable if so
4 if [[ $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
16 fi
17
18 ## jobs
19 setopt long_list_jobs
20
21 env_default 'PAGER' 'less'
22 env_default 'LESS' '-R'
23
24 ## super user alias
25 alias _='sudo '
26
27 ## more intelligent acking for ubuntu users and no alias for users without ack
28 if (( $+commands[ack-grep] )); then
29   alias afind='ack-grep -il'
30 elif (( $+commands[ack] )); then
31   alias afind='ack -il'
32 fi
33
34 # recognize comments
35 setopt interactivecomments