commit b4ee4620628ce4fc5dd66e445bfb1ce229dd9059 Author: Eric Torres Date: Thu Aug 22 22:24:20 2024 -0700 Initial commit diff --git a/zshenv b/zshenv new file mode 100644 index 0000000..2da8b19 --- /dev/null +++ b/zshenv @@ -0,0 +1,9 @@ +# zsh environment variables +export XDG_CACHE_HOME="$HOME"/.cache +export XDG_CONFIG_HOME="$HOME"/.config +export XDG_DATA_HOME="$HOME"/.local/share +export XDG_STATE_HOME="$HOME"/.local/state + +export EDITOR='nvim' + +ZDOTDIR="${XDG_CONFIG_HOME}/zsh" diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..1aca73c --- /dev/null +++ b/zshrc @@ -0,0 +1,18 @@ +# Zsh options for all users + +# enable extended globbing +setopt extended_glob + +# autoload misc files +for dotfile in "$ZDOTDIR"/*(D); do + source $dotfile +done + +# Check history file +if [[ ! -f "${HISTFILE}" ]]; then + mkdir -p "${HISTFILE%/*}" + touch "${HISTFILE}" +fi + +# vim-like keybindings +bindkey -v