mirror of https://github.com/tmux-plugins/tpm.git
Fixed enviorment variables support for path expansion
Signed-off-by: Hagai Cohen <hagaic@mellanox.com>
This commit is contained in:
parent
f75ba16d5f
commit
5876669273
|
@ -5,7 +5,7 @@ tpm_plugins_variable_name="@tpm_plugins"
|
||||||
_manual_expansion() {
|
_manual_expansion() {
|
||||||
local path="$1"
|
local path="$1"
|
||||||
local expanded_tilde="${path/#\~/$HOME}"
|
local expanded_tilde="${path/#\~/$HOME}"
|
||||||
echo "${expanded_tilde/#\$HOME/$HOME}"
|
echo $(echo $expanded_tilde | envsubst)
|
||||||
}
|
}
|
||||||
|
|
||||||
_tpm_path() {
|
_tpm_path() {
|
||||||
|
|
Loading…
Reference in New Issue