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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user