aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2020-06-29 09:45:34 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2020-06-29 09:45:34 +0800
commitc3da16aaa318a0db7b814d36b23fc72ec08d33e5 (patch)
tree4aa1d1421cf79245eb2c04fa556ff27557d0a889
parentef7615444b902f1cc1741e0ee9a7eb7ba18cdd46 (diff)
Show files when using default action
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index a776ca2..79d3379 100755
--- a/gist
+++ b/gist
@@ -531,7 +531,7 @@ _goto_gist() {
531 if [[ $* =~ (-n|--no-action) ]]; then 531 if [[ $* =~ (-n|--no-action) ]]; then
532 return 0 532 return 0
533 elif [[ -z $action ]]; then 533 elif [[ -z $action ]]; then
534 action='echo Inside subshell, press \<CTRL-D\> to exit; ${SHELL:-bash}' 534 action='echo Inside subshell, press \<CTRL-D\> to exit; echo; ls; ${SHELL:-bash}'
535 fi 535 fi
536 536
537 cd "${folder}/${GIST_ID}" && eval "$action" 537 cd "${folder}/${GIST_ID}" && eval "$action"