diff options
| author | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-09-15 08:54:51 +0200 |
|---|---|---|
| committer | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-09-15 08:54:51 +0200 |
| commit | 2331f85e38ee839d35580c336062ba3e61e0b1d3 (patch) | |
| tree | f14f82f3fbf3c99d3b71906804f36da1ac3e7c1b /config/zsh | |
| parent | 0eb15e0d59f6e416a9923871e4a75af56232efaf (diff) | |
| download | dotfiles-2331f85e38ee839d35580c336062ba3e61e0b1d3.tar.gz dotfiles-2331f85e38ee839d35580c336062ba3e61e0b1d3.tar.bz2 dotfiles-2331f85e38ee839d35580c336062ba3e61e0b1d3.zip | |
Added zsh ctrl-r shortcut to search back
Diffstat (limited to 'config/zsh')
| -rw-r--r-- | config/zsh/.zshrc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index a1211cd..9d79a25 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -41,6 +41,7 @@ bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'l' vi-forward-char bindkey -M menuselect 'j' vi-down-line-or-history bindkey -v '^?' backward-delete-char +bindkey '^r' history-incremental-search-backward # vim keybindings in prompt bindkey -v @@ -104,7 +105,7 @@ export YSU_MESSAGE_POSITION="after" # you-should # install pkgfile package on Arch Linux # run `pkgfile --update` -if [ "$(uname)" = 'Linux' ] +if [ "$(uname)" = 'Linux' ] && grep -q Arch /etc/lsb-release > /dev/null then . /usr/share/doc/pkgfile/command-not-found.zsh if [ -d /opt/ros2/galactic ] |
