aboutsummaryrefslogtreecommitdiffstats
path: root/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'tmux')
-rwxr-xr-xtmux/vcs_info.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux/vcs_info.sh b/tmux/vcs_info.sh
index 77773d6..ba8b6a8 100755
--- a/tmux/vcs_info.sh
+++ b/tmux/vcs_info.sh
@@ -23,6 +23,7 @@ tmux_path=$(get_tmux_cwd)
# fi
# done
+cd "${tmux_path}"
function gitadditions {
if cd "${tmux_path}" && git rev-parse --git-dir >/dev/null 2>&1; then
insertions=$(git --no-pager diff --numstat | awk '{sum1+=$1}END{print sum1}')