dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit e01c9bd6e20a9e3c99ed56a5b5ac4211bd3e7367
parent 240926287eb4e7853b47679272f4eef3cbbf01e1
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 26 Feb 2019 18:36:26 +0100

Some improvements


Former-commit-id: 057696bb7ae639438405d10c15e15370d916bccd
Diffstat:
Mscripts/global-git-status | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/global-git-status b/scripts/global-git-status @@ -12,11 +12,15 @@ spin() { done } hr() { for ((i=0; i<$(tput cols); i++)); do echo -n "#"; done; echo; } +cleanup() { + kill $pid + exit 2 +} spin & pid=$! -trap "kill $pid" INT +trap cleanup INT echo "Looking for git repositories..." logfile="$(mktemp)" gits=$(find "$HOME" -name ".git" -not -path "*vim*plugged*") @@ -37,6 +41,6 @@ for i in ${gits[@]}; do hr >> $logfile; done echo -vim $logfile -c "g/nothing to commit, working tree clean/norm V?git: ddd" -c "w | 1" +vim $logfile -c "g/nothing to commit, working tree clean/norm V?git: ddd" -c "let @d=\"V/# d\"" -c "w|1" unset IFS clear \ No newline at end of file