mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-01 08:20:18 +00:00
Helper functions refactoring
This commit is contained in:
11 files changed
+59
-97
No files matched your search
@@ -43,17 +43,6 @@ shared_plugin_path() {
|
||||
echo "${SHARED_TPM_PATH}${plugin_name}/"
|
||||
}
|
||||
|
||||
# TMUX messaging is weird. You only get a nice clean pane if you do it with
|
||||
# `run-shell` command.
|
||||
tmux_echo() {
|
||||
local message="$1"
|
||||
tmux run-shell "echo '$message'"
|
||||
}
|
||||
|
||||
reload_tmux_environment() {
|
||||
tmux source-file ~/.tmux.conf >/dev/null 2>&1
|
||||
}
|
||||
|
||||
plugin_already_installed() {
|
||||
local plugin="$1"
|
||||
local plugin_path="$(shared_plugin_path "$plugin")"
|
||||
@@ -62,13 +51,6 @@ plugin_already_installed() {
|
||||
git remote >/dev/null 2>&1
|
||||
}
|
||||
|
||||
end_message() {
|
||||
tmux_echo ""
|
||||
tmux_echo "TMUX environment reloaded."
|
||||
tmux_echo ""
|
||||
tmux_echo "Done, press ENTER to continue."
|
||||
}
|
||||
|
||||
ensure_tpm_path_exists() {
|
||||
mkdir -p "$SHARED_TPM_PATH"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user