aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist8
1 files changed, 5 insertions, 3 deletions
diff --git a/gist b/gist
index 361a8f3..679f79d 100755
--- a/gist
+++ b/gist
@@ -417,11 +417,13 @@ _goto_gist() {
417 fi 417 fi
418 418
419 echo "$folder/$GIST_ID" 419 echo "$folder/$GIST_ID"
420 if [[ -z $action ]]; then 420 if [[ $2 == '--no-action' ]]; then
421 return 0
422 elif [[ -z $action ]]; then
421 echo > /dev/tty 423 echo > /dev/tty
422 echo 'hint: set action inside the repo, for example:' > /dev/tty 424 echo 'hint: set action inside the repo, for example:' > /dev/tty
423 echo " gist config action 'ls' # ls files of the given gist" > /dev/tty 425 echo " gist config action 'ls' # list files of the given gist" > /dev/tty
424 elif [[ $2 != '--no-action' ]]; then 426 else
425 cd "$folder/$GIST_ID" && eval "$action" 427 cd "$folder/$GIST_ID" && eval "$action"
426 fi 428 fi
427} 429}