Skip to content

Commit 1cd61ff

Browse files
author
Bruno Sutic
committed
Start using $SCRIPTS_DIR
1 parent cdfff24 commit 1cd61ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sidebar.tmux

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/env bash
22

33
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
SCRIPTS_DIR="$CURRENT_DIR/scripts"
45

5-
source "$CURRENT_DIR/scripts/helpers.sh"
6-
source "$CURRENT_DIR/scripts/variables.sh"
7-
source "$CURRENT_DIR/scripts/tree_helpers.sh"
6+
source "$SCRIPTS_DIR/helpers.sh"
7+
source "$SCRIPTS_DIR/variables.sh"
8+
source "$SCRIPTS_DIR/tree_helpers.sh"
89

910
set_default_key_binding_options() {
1011
local tree_command="$(tree_command)"
@@ -26,7 +27,7 @@ set_key_bindings() {
2627
for option in $stored_key_vars; do
2728
key="$(get_key_from_option_name "$option")"
2829
value="$(get_value_from_option_name "$option")"
29-
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/toggle.sh '$value' '#{pane_id}'"
30+
tmux bind-key "$key" run-shell "$SCRIPTS_DIR/toggle.sh '$value' '#{pane_id}'"
3031
done
3132
}
3233

0 commit comments

Comments
 (0)