From f3ca3f8988c2af29c8d13b5336d1bfefb3e36c81 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 20 Jun 2024 12:46:19 +0200 Subject: fix error on multiple branches --- bin/common/gt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/common/gt b/bin/common/gt index 53d2cab..c679b23 100755 --- a/bin/common/gt +++ b/bin/common/gt @@ -5,7 +5,6 @@ # dependencies: # - git # - $EDITOR: -e -# - herbe (optional): -s repos=$HOME/sync/share/git-track.txt # prevent file not found errors @@ -47,7 +46,8 @@ status() { >&2 printf '\r\033[0K' status="$(git status --porcelain 2> /dev/null | awk '{print $1}' | uniq | tr -d '\n')" - remote="$(git branch -v 2>/dev/null | sed 's/ahead/↑/;s/behind/↓/;s/[^↓↑]*//g')" + remote="$(git branch -v 2>/dev/null | + sed '/^*/!d;s/ahead/↑/;s/behind/↓/;s/[^↓↑]*//g')" printf '%s %s %s\n' "$repo_pretty" "$status" "$remote" done < "$repos" @@ -116,6 +116,6 @@ fi if [ "$f_status" ] then status - which herbe > /dev/null 2>&1 && - eval "herbe $(status | sed 's/"/\"/g;s/.*/"&"/' | tr '\n' ' ')" & fi + +# eval "herbe $(status | sed 's/"/\"/g;s/.*/"&"/' | tr '\n' ' ')" -- cgit v1.2.3 From 41d3ecdd5245c8c3f8adaa76bbdca24eacd9e007 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 20 Jun 2024 21:18:38 +0200 Subject: checkpoint --- bin/extra/clock | 4 +++- config/essentials/vis/plugins/init.lua | 2 ++ config/essentials/vis/visrc.lua | 4 +--- config/extra/mutt/.gitignore | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 config/essentials/vis/plugins/init.lua (limited to 'bin') diff --git a/bin/extra/clock b/bin/extra/clock index fdffae0..bd6efd2 100755 --- a/bin/extra/clock +++ b/bin/extra/clock @@ -7,7 +7,8 @@ then printf 'start,end,message\n' > "$clocks" fi -if [ "$1" = "-c" ] +# print clocks file prettily +if [ "$1" = "-p" ] then # empty [ "$(wc -l < "$clocks")" -eq 1 ] && exit @@ -23,6 +24,7 @@ then exit fi +# edit clocks file in $EDITOR if [ "$1" = "-e" ] then $EDITOR "$clocks" diff --git a/config/essentials/vis/plugins/init.lua b/config/essentials/vis/plugins/init.lua new file mode 100644 index 0000000..80c9280 --- /dev/null +++ b/config/essentials/vis/plugins/init.lua @@ -0,0 +1,2 @@ +require("plugins.vis-cursors") +require("plugins.vis-title") diff --git a/config/essentials/vis/visrc.lua b/config/essentials/vis/visrc.lua index 1813888..81e09eb 100644 --- a/config/essentials/vis/visrc.lua +++ b/config/essentials/vis/visrc.lua @@ -3,9 +3,7 @@ ------------------------------------ require('vis') -require('plugins/vis-cursors') -require('plugins/vis-title') -require('plugins/vis-snippets') +require('plugins') ------------------------------------ --- EVENTS diff --git a/config/extra/mutt/.gitignore b/config/extra/mutt/.gitignore index 5e46596..ad7bbfd 100644 --- a/config/extra/mutt/.gitignore +++ b/config/extra/mutt/.gitignore @@ -1 +1,2 @@ -cache \ No newline at end of file +cache +mailboxes -- cgit v1.2.3