mirror of
https://github.com/notwa/rc
synced 2024-09-19 09:14:05 -07:00
be cautious about $HOME
here
This commit is contained in:
parent
e145f53955
commit
e7f15ac236
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ reload() { ### @-
|
|||
return # preserves $?
|
||||
fi
|
||||
|
||||
if cd; then
|
||||
if [ -n "$HOME" ] && cd -- "$HOME"; then
|
||||
# this doesn't seem to help with _vim_files errors, eh.
|
||||
# you wanna rm .zcompdump first, then exit. that's why!
|
||||
[ -f .zshrc ] && zrecompile -p .zshrc
|
||||
|
|
Loading…
Reference in a new issue