Move bindkeys

This commit is contained in:
Matus Namesny 2022-01-18 10:14:01 +01:00
parent b2f4efe7cc
commit 179a26cb22
1 changed files with 8 additions and 4 deletions

12
.zshrc
View File

@ -13,10 +13,6 @@ export HISTFILE=$HOME/.zsh_history
export HISTSIZE=15000 # keep 15,000 lines in memory export HISTSIZE=15000 # keep 15,000 lines in memory
export SAVEHIST=10000 # but save only 10,000 of them export SAVEHIST=10000 # but save only 10,000 of them
# Bindkeys
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
# VTE # VTE
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh source /etc/profile.d/vte.sh
@ -58,6 +54,10 @@ npm() {
npm $@ npm $@
} }
# Compinit
autoload -Uz compinit
compinit
# ZSH Plugins # ZSH Plugins
## Oh My Zsh ## Oh My Zsh
@ -81,3 +81,7 @@ source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
# Set Prompt # Set Prompt
setopt promptsubst setopt promptsubst
# Bindkeys
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down