Fixed known_hosts completion.
Added completion for kill_known_hosts alias knh.
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@38
6be0d1a5-5cfe-0310-89b6-
964be062b18b
# $Id$
+alias knh='kill_known_host'
alias l='ls'
alias ls='/bin/ls $LS_OPTIONS'
alias vim='vim +syn\ on'
function _known_hosts() {
cur=${COMP_WORDS[COMP_CWORD]}
- HOSTS=$(sed 's/[ ].*//;s/,/\n/' ~/.ssh/known_hosts)
+ HOSTS=$(sed 's/[ ].*//;s/,/\
+/' ~/.ssh/known_hosts)
COMPREPLY=($(compgen -W "$HOSTS" -- "$cur"))
return 0
complete -F _pid kill
complete -F _pid strace
complete -F _known_hosts kill_known_host
+complete -F _known_hosts knh
complete -F _modprobe modprobe
complete -F _rmmod rmmod
map Qf :se foldenable!<CR>:<CR>
" Change number mode with Qn.
map Qn :se number!<CR>:<CR>
+" Toggle paste mode with Qp.
+map Qp :se paste!<CR>:<CR>
" Vim 7 has tabs. Default "next tab" mapping is gt. Add "previous tab" as gb.
map gb :tabPrev<CR>