From 4bdfcb138bb05fb3995ff8ea14965d7c7f1015af Mon Sep 17 00:00:00 2001 From: Olaf Alexander Date: Sat, 26 Oct 2024 07:38:32 -0500 Subject: [PATCH] feat(zsh): Add basic zsh configuration --- .stowrc | 2 ++ dot-config/zsh/dot-zshrc | 3 +++ dot-zshenv | 14 ++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 dot-config/zsh/dot-zshrc create mode 100644 dot-zshenv diff --git a/.stowrc b/.stowrc index 3af6ac2..f291644 100644 --- a/.stowrc +++ b/.stowrc @@ -1,2 +1,4 @@ --dotfiles +# Unfold directories (symlink the files not the folders) so dotfiles works +--no-folding --target=$HOME diff --git a/dot-config/zsh/dot-zshrc b/dot-config/zsh/dot-zshrc new file mode 100644 index 0000000..b6f6f01 --- /dev/null +++ b/dot-config/zsh/dot-zshrc @@ -0,0 +1,3 @@ +autoload -U compinit; compinit + +eval "$(starship init zsh)" diff --git a/dot-zshenv b/dot-zshenv new file mode 100644 index 0000000..9bd78b8 --- /dev/null +++ b/dot-zshenv @@ -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