diff options
author | terminaldweller <thabogre@gmail.com> | 2022-12-28 12:50:39 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-12-28 12:50:39 +0000 |
commit | 6ab107381192d2bbcca6042cd50ed36adbe70fbd (patch) | |
tree | 3e38a7196bb8ce6b62432c01207f5f46e58d8c0c /tmux/vcs_info.sh | |
parent | now just reading /proc/net/arp instead of using subprocess. (diff) | |
download | scripts-6ab107381192d2bbcca6042cd50ed36adbe70fbd.tar.gz scripts-6ab107381192d2bbcca6042cd50ed36adbe70fbd.zip |
update
Diffstat (limited to '')
-rwxr-xr-x | tmux/vcs_info.sh | 1 |
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}') |