U key binding shows a list of installed plugins

This commit is contained in:
Bruno Sutic
2014-08-05 18:45:59 +02:00
parent 1e5f07085b
commit 3a5f56f10d
5 changed files with 97 additions and 15 deletions

View File

@ -29,3 +29,21 @@ shared_plugin_path() {
local plugin_name=$(shared_plugin_name "$plugin")
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.
echo_message() {
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")
cd $plugin_path &&
git remote >/dev/null 2>&1
}