Helper functions refactoring

This commit is contained in:
Bruno Sutic committed 2015-08-03 15:17:07 +02:00
1 parent eab403b6d8
commit 5adc9a987f
11 files changed
+59 -97

No files matched your search

-18
View File
@@ -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"
}