From ce962ecceed7e2254f29ddf1a3a5055fced26a7b Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 27 Jan 2020 23:29:41 +0800 Subject: update --- scripts/gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index b617803..f0816e5 100755 --- a/scripts/gist +++ b/scripts/gist @@ -200,6 +200,7 @@ _goto_gist() { cd $folder/$GIST_ID && ls && tig --all 2> /dev/null } +# TODO only remove deleted line _delete_gist() { for i in "$@"; do _gist_id "$i" @@ -212,7 +213,7 @@ _delete_gist() { # remove repos which are not in user gists anymore _clean_repos() { comm -23 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \ - <(cat $index | cut -d' ' -f2 | sed 's#.*/##' | sort) \ + <(cat $index $starred 2> /dev/null | cut -d' ' -f2 | sed 's#.*/##' | sort) \ | while read dir; do mv $folder/$dir /tmp && echo move $folder/$dir to /tmp done -- cgit v1.2.3-70-g09d2