From a99b597217028c107e6785c099b73153e1c033db Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 12 Aug 2021 22:00:52 -0700 Subject: [PATCH] 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`. --- plugins/available/git-subrepo.plugin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/available/git-subrepo.plugin.bash b/plugins/available/git-subrepo.plugin.bash index 085a69b4..59e780ac 100644 --- a/plugins/available/git-subrepo.plugin.bash +++ b/plugins/available/git-subrepo.plugin.bash @@ -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"