mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-02 08:21:36 +00:00
U key binding shows a list of installed plugins
This commit is contained in:
1 parent
1e5f07085b
commit
3a5f56f10d
5 files changed
+97
-15
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user