Add editor and git editor env variables

This commit is contained in:
LordMathis 2023-01-26 21:12:51 +01:00
parent c1b6d9b449
commit d38bf5efb0
1 changed files with 6 additions and 2 deletions

8
.zshrc
View File

@ -14,6 +14,10 @@ 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
export HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true export HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true
# Editor
export EDITOR=nvim
export GIT_EDITOR=nvim
# 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
@ -85,5 +89,5 @@ source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
setopt promptsubst setopt promptsubst
# Bindkeys # Bindkeys
bindkey "$terminfo[kcuu1]" history-substring-search-up bindkey '^[[A' history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down bindkey '^[[B' history-substring-search-down