diff options
| -rwxr-xr-x | gist | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -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 | } |