feat(zsh): Add basic zsh configuration

This commit is contained in:
Olaf Alexander 2024-10-26 07:38:32 -05:00
parent e6b9b0c92f
commit 4bdfcb138b
3 changed files with 19 additions and 0 deletions

View File

@ -1,2 +1,4 @@
--dotfiles
# Unfold directories (symlink the files not the folders) so dotfiles works
--no-folding
--target=$HOME

3
dot-config/zsh/dot-zshrc Normal file
View File

@ -0,0 +1,3 @@
autoload -U compinit; compinit
eval "$(starship init zsh)"

14
dot-zshenv Normal file
View File

@ -0,0 +1,14 @@
# XDG
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$XDG_CONFIG_HOME/local/share
export XDG_CACHE_HOME=$XDG_CONFIG_HOME/cache
# editor
export EDITOR="nvim"
export VISUAL="nvim"
# zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTFILE="$ZDOTDIR/.zhistory"
export HISTSIZE=10000
export SAVEHIST=10000