mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-02 00:20:30 +00:00
Refactor 'tpm' script
This commit is contained in:
2 files changed
+11
-11
No files matched your search
@@ -1,10 +0,0 @@
|
||||
get_tmux_option() {
|
||||
local option="$1"
|
||||
local default_value="$2"
|
||||
local option_value="$(tmux show-option -gqv "$option")"
|
||||
if [ -z "$option_value" ]; then
|
||||
echo "$default_value"
|
||||
else
|
||||
echo "$option_value"
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user