From 688260bd74442ad04bf91460f497697e019d8d18 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 22 Jan 2018 18:46:19 +0100 Subject: [zsh] Add handy bindings --- zsh/.zsh/.zshrc | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'zsh/.zsh/.zshrc') 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}' + # }}} -- cgit v1.2.3