aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
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