plugin/git-subrepo: use $HOME instead of ~

If the outer variable is double-quoted, then the default expansion when undefined does not get tilde-expanded. Use `$HOME`.
This commit is contained in:
John D Pell
2021-08-12 22:00:52 -07:00
parent 2e51e92699
commit a99b597217

View File

@@ -3,4 +3,4 @@
cite about-plugin cite about-plugin
about-plugin 'load git-subrepo if you are using it, and initialize completions' about-plugin 'load git-subrepo if you are using it, and initialize completions'
[[ -e "${GIT_SUBREPO_ROOT:=~/.git-subrepo}/init" ]] && source "$GIT_SUBREPO_ROOT/init" [[ -e "${GIT_SUBREPO_ROOT:=$HOME/.git-subrepo}/init" ]] && source "$GIT_SUBREPO_ROOT/init"