mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Compare commits
3 Commits
1d0a09c442
...
202d871a59
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
202d871a59 | ||
|
|
467d916f33 | ||
|
|
6d2bfdbcea |
@@ -51,3 +51,4 @@ fi
|
|||||||
"""
|
"""
|
||||||
style = "bold blue"
|
style = "bold blue"
|
||||||
format = "♊[$output](blue) "
|
format = "♊[$output](blue) "
|
||||||
|
shell = ["/bin/sh", "-c"]
|
||||||
|
|||||||
@@ -192,6 +192,15 @@ if [[ $- == *i* ]] ; then
|
|||||||
source_if_existing $HOME/.aliases.local
|
source_if_existing $HOME/.aliases.local
|
||||||
# zsh-only-ism to avoid error if glob doesn't expand
|
# zsh-only-ism to avoid error if glob doesn't expand
|
||||||
# specifically sets NULLGLOB for this one glob
|
# specifically sets NULLGLOB for this one glob
|
||||||
|
typeset -gA _deferred_comps
|
||||||
|
compdef() {
|
||||||
|
# Store the arguments: first arg is the function, the rest are the commands
|
||||||
|
local func=$1
|
||||||
|
shift
|
||||||
|
for cmd in "$@"; do
|
||||||
|
_deferred_comps[$cmd]=$func
|
||||||
|
done
|
||||||
|
}
|
||||||
for file in $HOME/.zshrc.d/[a-zA-Z0-9]*.zsh(N) ; do
|
for file in $HOME/.zshrc.d/[a-zA-Z0-9]*.zsh(N) ; do
|
||||||
source "$file"
|
source "$file"
|
||||||
done
|
done
|
||||||
@@ -206,6 +215,11 @@ if [[ $- == *i* ]] ; then
|
|||||||
zstyle ':completion:*' users root ${USER}
|
zstyle ':completion:*' users root ${USER}
|
||||||
# Modules after fpath
|
# Modules after fpath
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
|
for cmd func in "${(@kv)_deferred_comps}"; do
|
||||||
|
compdef "$func" "$cmd"
|
||||||
|
done
|
||||||
|
|
||||||
|
unset _deferred_comps
|
||||||
|
|
||||||
# Regenerate zcompdump if it's older than any file in fpath
|
# Regenerate zcompdump if it's older than any file in fpath
|
||||||
DUMPFILE="${ZDOTDIR:-$HOME}/.zcompdump"
|
DUMPFILE="${ZDOTDIR:-$HOME}/.zcompdump"
|
||||||
|
|||||||
Reference in New Issue
Block a user