Initial commit

This commit is contained in:
Eric Torres 2024-08-22 22:24:20 -07:00
commit b4ee462062
2 changed files with 27 additions and 0 deletions

9
zshenv Normal file
View File

@ -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"

18
zshrc Normal file
View File

@ -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