aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc12
1 files changed, 9 insertions, 3 deletions
diff --git a/zshrc b/zshrc
index 5b9798c..1096d38 100644
--- a/zshrc
+++ b/zshrc
@@ -1,11 +1,13 @@
#!/usr/bin/env zsh
export DOTFILES="${HOME}/dotfiles"
+export ZDOTDIR=~/.zsh.d
-fpath=( "${XDG_DATA_HOME:-$HOME/.local/share}/zsh/site-functions" "${fpath[@]}" )
+fpath=(~/.local/share/zsh/site-functions "${fpath[@]}")
+
+if [ -d "$ZDOTDIR" ]; then for f in $ZDOTDIR/*; do source $f; done; fi
source $DOTFILES/shell/env.sh
-source ~/plugins.zsh
[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/shell/wsl.sh
[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/shell/gpg.sh
@@ -24,5 +26,9 @@ function set_win_title() {
}
precmd_functions+=(set_win_title)
+
autoload -U compinit
-compinit -i \ No newline at end of file
+compinit -i
+
+source $ZDOTDIR/zsh-autosuggestions/zsh-autosuggestions.zsh
+source $ZDOTDIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh