diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-01-22 18:46:19 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-01-22 18:57:22 +0100 |
commit | 688260bd74442ad04bf91460f497697e019d8d18 (patch) | |
tree | ebae0bc6df34b0ae7132abfd84da0e46d77c9cd8 /zsh | |
parent | 2a0962d39f66aeff81d1ee41bde4c9d9d7706d08 (diff) |
[zsh] Add handy bindings
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zsh/.zshrc | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/zsh/.zsh/.zshrc b/zsh/.zsh/.zshrc index 7bce5fe..3da2f82 100644 --- a/zsh/.zsh/.zshrc +++ b/zsh/.zsh/.zshrc @@ -1,3 +1,15 @@ +## My bindings {{{ +bindkey -v +bindkey -a 'k' history-beginning-search-backward +bindkey -a 'j' history-beginning-search-forward +bindkey '^P' history-beginning-search-backward +bindkey '^N' history-beginning-search-forward +bindkey '^b' backward-char +bindkey '^f' forward-char +bindkey '^a' beginning-of-line +bindkey '^e' end-of-line +bindkey '^v' visual-mode +# }}} ## zgen {{{ [ ! -d ~/.zsh/zgen ] && git clone https://github.com/tarjoilija/zgen.git ~/.zsh/zgen @@ -13,10 +25,10 @@ if ! zgen saved; then # Oh-my-zsh plugins zgen oh-my-zsh plugins/git - zgen oh-my-zsh plugins/vi-mode # Navigation plugins zgen load urbainvaes/fzf-marks + # zgen load wfxr/fzf-marks # Other plugins zgen load rupa/z @@ -37,16 +49,8 @@ fi } # }}} - -# Custom key bindings for built-in widgets -bindkey -a 'k' history-beginning-search-backward -bindkey -a 'j' history-beginning-search-forward -bindkey '^P' history-beginning-search-backward -bindkey '^N' history-beginning-search-forward - PROMPT='%0~ $ ' - # Options unsetopt histverify @@ -124,6 +128,11 @@ alias rd='cd $(git rev-parse --show-toplevel)' alias mi='make install' alias mc='make clean' alias mca='make clean-all' + +# Applications alias -s pdf='xdg-open' +# Global +alias -g grep='grep --color=auto --exclude-dir={.git,.hg}' + # }}} |