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`.
pull/2015/head
John D Pell 2021-08-12 22:00:52 -07:00
parent 2e51e92699
commit a99b597217
1 changed files with 1 additions and 1 deletions

View File

@ -3,4 +3,4 @@
cite about-plugin
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"