85af6bf54618d2ad2748d660cce1884ccf9cf729
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Load zsh completions on zshrc
Diff
1diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl
2index dc944e597a7f18ec08cf1fdaa53a37206db9d2f5..60fa1ea8785a12ca26dff067736dfb8ec8b80f02 100644
3--- a/dot_zshrc.tmpl
4+++ b/dot_zshrc.tmpl
5@@ -50,9 +50,13 @@ set_env() {
6 {{- end -}}
7 }
8
9+# Custom functions and completions
10+CUSTOM="$HOME/.config/zsh"
11+fpath=(${CUSTOM}/functions ${CUSTOM}/completions "${fpath[@]}" )
12+autoload -Uz ${CUSTOM}/functions/*
13+
14 # oh-my-zsh
15 export ZSH="$HOME/.config/zsh/oh-my-zsh"
16-CUSTOM="$HOME/.config/zsh"
17 ZSH_THEME="boban/boban"
18 HYPHEN_INSENSITIVE="true"
19 DISABLE_AUTO_UPDATE="true"
20@@ -72,10 +76,6 @@ plugins=(
21 )
22 source $ZSH/oh-my-zsh.sh
23
24-# Custom functions
25-fpath=( ${CUSTOM}/functions "${fpath[@]}" )
26-autoload -Uz ${CUSTOM}/functions/*
27-
28 # Misc options
29 setopt extendedglob notify
30 unsetopt beep nomatch
31@@ -92,7 +92,6 @@ if [[ -n ${WAYLAND_DISPLAY} ]]; then
32 bindkey '^Y' copy_line_to_x_clipboard
33 fi
34
35-source ${CUSTOM}/completions/*.zsh
36 source ~/.aliases
37 source ~/.config/zsh/kc.zsh
38