Skip to content

Commit

Permalink
Refactor 'tpm' script
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Sutic committed Aug 3, 2015
1 parent 169e1b2 commit 79d90f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 0 additions & 10 deletions scripts/helpers.sh

This file was deleted.

12 changes: 11 additions & 1 deletion tpm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ BINDINGS_DIR="$CURRENT_DIR/bindings"
SCRIPTS_DIR="$CURRENT_DIR/scripts"

source "$SCRIPTS_DIR/variables.sh"
source "$SCRIPTS_DIR/helpers.sh"

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
}

tpm_path_set() {
tmux show-environment -g "$DEFAULT_TPM_ENV_VAR_NAME" >/dev/null 2>&1
Expand Down

0 comments on commit 79d90f9

Please sign in to comment.