mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
misc cleanup
This commit is contained in:
parent
5382da0605
commit
4f915fc802
1 changed files with 4 additions and 5 deletions
|
@ -248,13 +248,12 @@ reload() { ### @-
|
|||
# to remedy this, when args are passed, invoke initctl instead.
|
||||
if [ $# -gt 0 ]; then
|
||||
"${commands[reload]:?initctl is missing}" "$@"
|
||||
return $?
|
||||
return # preserves $?
|
||||
fi
|
||||
|
||||
if cd; then
|
||||
# this doesn't seem to help with _vim_files errors, eh.
|
||||
# you wanna rm .zcompdump first, then exit. that's why!
|
||||
cd ~
|
||||
if [ $? -eq 0 ]; then
|
||||
[ -f .zshrc ] && zrecompile -p .zshrc
|
||||
[ -f .prezto-compinit ] && zrecompile -p .prezto-compinit
|
||||
rm -f .zcompdump .zshrc.zwc.old .zcompdump.zwc.old
|
||||
|
|
Loading…
Add table
Reference in a new issue