1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-09-19 14:54:05 -07:00

be cautious about $HOME here

This commit is contained in:
Connor Olding 2024-07-21 21:57:03 -07:00
parent e145f53955
commit e7f15ac236

View file

@ -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