about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-10-05 11:05:28 -0500
committerStarfall <us@starfall.systems>2022-10-05 11:05:28 -0500
commitd6de0847434ea619cc9183366ff6458005182ba2 (patch)
treeef09e0b9a69893d9cdd1cbfafdb5e67da7f76d75
parentb2f0e929cffcc349f855fdbf37aefd78e3eeac29 (diff)
formatting tweaks to zshrc
-rw-r--r--.config/zsh/.zshrc24
1 files changed, 11 insertions, 13 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 1766e57..4234df4 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -1,23 +1,21 @@
-# plugins - fzf
-# fzf is automatically picked up by /etc/profile on cygwin, but they're here on arch
+# plugin - fzf
+# arch puts these here
 if [[ -a /usr/share/fzf/key-bindings.zsh ]] && [[ -a /usr/share/fzf/completion.zsh ]]; then
 	export FZF_DEFAULT_OPTS='--no-height --no-reverse'
 	source /usr/share/fzf/key-bindings.zsh
 	source /usr/share/fzf/completion.zsh
 fi
 
-# magic cd
+# magic navigation
 setopt autocd
 export CDPATH=".:$HOME:$HOME/devil:$HOME/src"
-
-# just enables a bit nicer life when copy/pasting commands from docs
-setopt interactive_comments
-
-# dots go up
 alias -g ...='../..'
 alias -g ....='../../..'
 alias -g .....='../../../..'
 
+# a bit nicer life when copy/pasting commands from docs
+setopt interactive_comments
+
 # aliases
 alias cls=clear
 alias config='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
@@ -29,11 +27,11 @@ function spacetotab () {
 	mv "$1.tmp" "$1"
 }
 
-source $ZDOTDIR/utils.zsh
-source $ZDOTDIR/completion.zsh
-source $ZDOTDIR/history.zsh
-source $ZDOTDIR/vi-mode.zsh
-source $ZDOTDIR/prompt.zsh
+# load remaining config
+for conf in "$ZDOTDIR/"*.zsh; do
+	source "${conf}"
+done
+unset conf
 
 # display a fortune when opening an interactive terminal
 tty -s && fortune $HOME/fortunes 2>/dev/null ||: