moves stuff around so its not a disaster in the root
This commit is contained in:
1 parent
c3f14914ce
commit
2d87c72b3a
971 files changed
+68933
-27
No files matched your search
@@ -0,0 +1,22 @@
|
||||
src() {
|
||||
local cache="$ZSH_CACHE_DIR"
|
||||
autoload -U compinit zrecompile
|
||||
compinit -i -d "$cache/zcomp-$HOST"
|
||||
|
||||
for f in ${ZDOTDIR:-~}/.zshrc "$cache/zcomp-$HOST"; do
|
||||
zrecompile -p $f && command rm -f $f.zwc.old
|
||||
done
|
||||
|
||||
# Use $SHELL if it's available and a zsh shell
|
||||
local shell="$ZSH_ARGZERO"
|
||||
if [[ "${${SHELL:t}#-}" = zsh ]]; then
|
||||
shell="$SHELL"
|
||||
fi
|
||||
|
||||
# Remove leading dash if login shell and run accordingly
|
||||
if [[ "${shell:0:1}" = "-" ]]; then
|
||||
exec -l "${shell#-}"
|
||||
else
|
||||
exec "$shell"
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user