aboutsummaryrefslogtreecommitdiffstats
path: root/tmux/vcs_info.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/vcs_info.sh')
-rwxr-xr-xtmux/vcs_info.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tmux/vcs_info.sh b/tmux/vcs_info.sh
index 5764e61..f6405a3 100755
--- a/tmux/vcs_info.sh
+++ b/tmux/vcs_info.sh
@@ -2,23 +2,23 @@
source common.sh
SEPARATOR_RIGHT_BOLD=""
-SEPARATOR_RIGHT_THIN=""
+# SEPARATOR_RIGHT_THIN=""
-MIN_MAJOR_VERSION="2"
-MIN_MINOR_VERSION="1"
-TMUX_VERSION="$(tmux -V)"
+# MIN_MAJOR_VERSION="2"
+# MIN_MINOR_VERSION="1"
+# TMUX_VERSION="$(tmux -V)"
get_tmux_cwd() {
tmux display -p -F "#{pane_current_path}"
}
tmux_path=$(get_tmux_cwd)
-cd $tmux_path
+cd "$tmux_path"
IFS='/' read -ra tmux_path_array <<< "$tmux_path"
pos=$(( ${#tmux_path_array[*]} - 1 ))
last=${tmux_path_array[$pos]}
for i in "${tmux_path_array[@]}"
do
- if [[ $i == $last ]]; then
+ if [[ $i == "$last" ]]; then
shortened_path+=$i
else
shortened_path+=${i:0:1}/