35 fi |
34 fi |
36 fi |
35 fi |
37 |
36 |
38 KEYTIMEOUT=1 |
37 KEYTIMEOUT=1 |
39 REPORTTIME=5 |
38 REPORTTIME=5 |
|
39 HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" |
40 |
40 |
41 setopt list_packed |
41 setopt list_packed |
42 setopt correct |
42 setopt correct |
43 setopt hist_reduce_blanks |
43 setopt hist_reduce_blanks |
44 setopt hist_save_no_dups |
44 setopt hist_save_no_dups |
45 setopt interactive_comments |
45 setopt interactive_comments |
46 |
46 |
47 export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" |
47 # Make zsh know about hosts already accessed by SSH |
|
48 zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })' |
48 |
49 |
49 # Altered from what's shown on Arch wiki |
50 # Altered from what's shown on Arch wiki |
50 [[ -n "${terminfo[khome]}" ]] && bindkey -- "${terminfo[khome]}" beginning-of-line |
51 [[ -n "${terminfo[khome]}" ]] && bindkey -- "${terminfo[khome]}" beginning-of-line |
51 [[ -n "${terminfo[kend]}" ]] && bindkey -- "${terminfo[kend]}" end-of-line |
52 [[ -n "${terminfo[kend]}" ]] && bindkey -- "${terminfo[kend]}" end-of-line |
52 [[ -n "${terminfo[kich1]}" ]] && bindkey -- "${terminfo[kich1]}" overwrite-mode |
53 [[ -n "${terminfo[kich1]}" ]] && bindkey -- "${terminfo[kich1]}" overwrite-mode |