aboutsummaryrefslogtreecommitdiffstats
path: root/tmux
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-12-28 12:50:39 +0000
committerterminaldweller <thabogre@gmail.com>2022-12-28 12:50:39 +0000
commit6ab107381192d2bbcca6042cd50ed36adbe70fbd (patch)
tree3e38a7196bb8ce6b62432c01207f5f46e58d8c0c /tmux
parentnow just reading /proc/net/arp instead of using subprocess. (diff)
downloadscripts-6ab107381192d2bbcca6042cd50ed36adbe70fbd.tar.gz
scripts-6ab107381192d2bbcca6042cd50ed36adbe70fbd.zip
update
Diffstat (limited to '')
-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}')