From 9352498941c06e0c0edd7d1f991783a06fc66efe Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Wed, 21 Aug 2024 12:41:07 +0000 Subject: [PATCH] Add fallbacks for stuff often in .zshenv --- .zshrc | 7 +++++++ input.zsh | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 052bcf8..d2b1327 100644 --- a/.zshrc +++ b/.zshrc @@ -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" diff --git a/input.zsh b/input.zsh index 01cc910..5bf658a 100644 --- a/input.zsh +++ b/input.zsh @@ -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