aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-09-28 22:50:56 +0200
committerDavid Runge <dave@sleepmap.de>2021-09-28 22:50:56 +0200
commit3ac8e0f994839f3c972033bcb12421081ebeb683 (patch)
tree2a4f05cac56559686ea5d7aee8703e7511662c47 /.zshrc
parenta640bb766699706b4975416b85acd30191b79fa3 (diff)
downloaddotfiles-3ac8e0f994839f3c972033bcb12421081ebeb683.tar.gz
dotfiles-3ac8e0f994839f3c972033bcb12421081ebeb683.tar.bz2
dotfiles-3ac8e0f994839f3c972033bcb12421081ebeb683.tar.xz
dotfiles-3ac8e0f994839f3c972033bcb12421081ebeb683.zip
zsh: move includes to XDG compliant locations
.config/zsh/{functions,includes}/*: Move functions and includes to XDG compliant locations. .zshrc: Include functions and other includes from XDG compliant locations. Remove use of prepend-sudo function.
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 4 insertions, 9 deletions
diff --git a/.zshrc b/.zshrc
index d2ea153..082c2d3 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,7 +1,4 @@
-# zsh.functions
-for config_file ($HOME/.zsh.functions/*.zsh) source $config_file
-
# dircolors
# Set colors for ls output
eval $(dircolors ~/.dircolors)
@@ -173,9 +170,6 @@ for keymap in 'emacs' 'viins'; do
# Complete in the middle of word.
bindkey -M "$keymap" "$key_info[Control]I" expand-or-complete
-
- # Insert 'sudo ' at the beginning of the line.
- bindkey -M "$keymap" "$key_info[Control]X$key_info[Control]S" prepend-sudo
done
# Set the key layout to vi mode
@@ -436,9 +430,10 @@ for p in ${history_substring}; do
fi
done
-# zsh.after
-#
-for config_file ($HOME/.zsh.after/*.zsh) source $config_file
+# functions
+for config_file ($HOME/.config/zsh/functions/*.zsh) source $config_file
+# includes
+for config_file ($HOME/.config/zsh/includes/*.zsh) source $config_file
# use starship for prompt if it exists
(( ${+commands[starship]} )) && eval "$(starship init zsh)"