mirror of
https://github.com/KevinMidboe/dotfiles.git
synced 2025-10-29 17:40:19 +00:00
Added oh-my-zsh in all its glory
This commit is contained in:
12
.oh-my-zsh/plugins/zsh_reload/zsh_reload.plugin.zsh
Normal file
12
.oh-my-zsh/plugins/zsh_reload/zsh_reload.plugin.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
src() {
|
||||
local cache="$ZSH_CACHE_DIR"
|
||||
autoload -U compinit zrecompile
|
||||
compinit -i -d "$cache/zcomp-$HOST"
|
||||
|
||||
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
||||
zrecompile -p $f && command rm -f $f.zwc.old
|
||||
done
|
||||
|
||||
# Use $SHELL if available; remove leading dash if login shell
|
||||
[[ -n "$SHELL" ]] && exec ${SHELL#-} || exec zsh
|
||||
}
|
||||
Reference in New Issue
Block a user