mirror of
https://github.com/tmux-plugins/tpm.git
synced 2025-09-05 17:26:58 +00:00
TMUX_PLUGIN_MANAGER_PATH
always has trailng slash
If the trailing slash character is not there it causes issues when installing plugins. Closes #38
This commit is contained in:
@ -5,7 +5,7 @@ SHARED_TPM_PATH=""
|
||||
|
||||
# sets a "global variable" for the current file
|
||||
shared_set_tpm_path_constant() {
|
||||
local string_path="$(tmux show-environment -g TMUX_PLUGIN_MANAGER_PATH | cut -f2 -d=)"
|
||||
local string_path="$(tmux show-environment -g TMUX_PLUGIN_MANAGER_PATH | cut -f2 -d=)/"
|
||||
# NOTE: manually expanding tilde or `$HOME` variable. Avoids using `eval` as
|
||||
# described here http://stackoverflow.com/a/5748307/777337
|
||||
SHARED_TPM_PATH="$(echo "$string_path" | sed "s,^\$HOME,$HOME," | sed "s,^~,$HOME,")"
|
||||
|
Reference in New Issue
Block a user