aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-27 23:29:41 +0800
committertypebrook <typebrook@gmail.com>2020-01-27 23:29:41 +0800
commitce962ecceed7e2254f29ddf1a3a5055fced26a7b (patch)
tree489e9a8dd18d86e9003036d6d4f4248d9cadf82f /scripts
parent9ad46eea4bc0c53675d5665b34fbabeaae8b8a28 (diff)
update
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gist3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist
index b617803..f0816e5 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -200,6 +200,7 @@ _goto_gist() {
200 cd $folder/$GIST_ID && ls && tig --all 2> /dev/null 200 cd $folder/$GIST_ID && ls && tig --all 2> /dev/null
201} 201}
202 202
203# TODO only remove deleted line
203_delete_gist() { 204_delete_gist() {
204 for i in "$@"; do 205 for i in "$@"; do
205 _gist_id "$i" 206 _gist_id "$i"
@@ -212,7 +213,7 @@ _delete_gist() {
212# remove repos which are not in user gists anymore 213# remove repos which are not in user gists anymore
213_clean_repos() { 214_clean_repos() {
214 comm -23 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \ 215 comm -23 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \
215 <(cat $index | cut -d' ' -f2 | sed 's#.*/##' | sort) \ 216 <(cat $index $starred 2> /dev/null | cut -d' ' -f2 | sed 's#.*/##' | sort) \
216 | while read dir; do 217 | while read dir; do
217 mv $folder/$dir /tmp && echo move $folder/$dir to /tmp 218 mv $folder/$dir /tmp && echo move $folder/$dir to /tmp
218 done 219 done