diff options
| author | Anton Bobov <abobov@gmail.com> | 2011-11-17 16:57:35 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2011-11-17 16:57:35 +0500 |
| commit | a8625a6368a542d020221f201dc63eb8284e5594 (patch) | |
| tree | b06feaf14b6ca6ed7581f270e7ba16b0102fc540 /files/.zsh/rc | |
| parent | c3339413792acb963c93a1e85124366d078abe66 (diff) | |
f
Diffstat (limited to 'files/.zsh/rc')
| -rw-r--r-- | files/.zsh/rc/S30_binds | 7 | ||||
| -rw-r--r-- | files/.zsh/rc/S50_aliases | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/files/.zsh/rc/S30_binds b/files/.zsh/rc/S30_binds index 7808b83..4cfeb7a 100644 --- a/files/.zsh/rc/S30_binds +++ b/files/.zsh/rc/S30_binds @@ -1,3 +1,9 @@ +backward-delete-to-slash() { + local WORDCHARS=${WORDCHARS//\//} + zle .backward-delete-word +} +zle -N backward-delete-to-slash + bindkey -v "^[[3~" delete-char bindkey -v "^[[5~" backward-word bindkey -v "^[[6~" forward-word @@ -13,6 +19,7 @@ bindkey -v "^R" history-incremental-search-backward bindkey -v "^U" kill-whole-line bindkey -v "^V" quoted-insert bindkey -v "^W" backward-kill-word +bindkey -v "^[w" backward-delete-to-slash bindkey -v "^N" down-history bindkey -v "^P" up-history diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases index 0f5b10c..bc4837a 100644 --- a/files/.zsh/rc/S50_aliases +++ b/files/.zsh/rc/S50_aliases @@ -1,4 +1,4 @@ -alias -s html=firefox +alias -s html=$BROWSER alias df='df -h' alias free='free -tm' |
