Add fallbacks for stuff often in .zshenv

This commit is contained in:
Alex D. 2024-08-21 12:41:07 +00:00
parent 5de762d96b
commit 9352498941
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 9 additions and 0 deletions

7
.zshrc
View File

@ -1,5 +1,12 @@
typeset -g EXTERN_PLUGINS="$ZDOTDIR/extern/"
typeset -g ZDOTDIR=${ZDOTDIR:-~/.config/zsh}
typeset -g HISTFILE=${HISTFILE:-~/.histfile}
typeset -g CACHEPATH=${CACHEPATH:-~/.cache}
export EDITOR=${EDITOR:-vim}
export PAGER=${PAGER:-less}
source "$ZDOTDIR/options.zsh"
source "$ZDOTDIR/completions.zsh"
source "$ZDOTDIR/input.zsh"

View File

@ -1,6 +1,8 @@
# https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/key-bindings.zsh
# https://wiki.archlinux.org/index.php/Zsh
typeset -g KEYTIMEOUT=5
bindkey -v # vi mode for input
typeset -g -A key