From 85b089d958729ea460ba56d38418fcd473a2e015 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 4 Sep 2020 20:55:36 +0200 Subject: [PATCH] refactored some stuff --- zsh/rc.zsh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 zsh/rc.zsh diff --git a/zsh/rc.zsh b/zsh/rc.zsh new file mode 100644 index 0000000..b05d6b4 --- /dev/null +++ b/zsh/rc.zsh @@ -0,0 +1,23 @@ +export path=($path $HOME/.config/dotfiles/bin) +export fpath=($fpath $ZDOTDIR/local/fpath) + +export os=$(grep -E "^ID=" /etc/*release | cut -d= -f2) +export wsl=$(uname -r | cut -d'-' -f3) + +source "$ZDOTDIR/dircolor.zsh" + +source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh + +mkdir -p $HOME/.cache/zsh +autoload -Uz compinit bashcompinit +compinit -d $HOME/.cache/zsh/compdump +bashcompinit + +for file in $ZDOTDIR/files/*.zsh; do source "$file"; done + +[[ -f "$ZDOTDIR/local/rc.zsh" ]] && source "$ZDOTDIR/local/rc.zsh" + +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +export STARSHIP_CONFIG=$ZDOTDIR/starship.toml +eval "$(starship init zsh)"