From a63c88600da750a5c17c89a7e45d215f5d429b75 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 25 Mar 2020 17:16:22 +0800 Subject: Fix dotfile is gone in 'gist detail' --- gist | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gist b/gist index 7db74d2..f7133b0 100755 --- a/gist +++ b/gist @@ -46,7 +46,6 @@ # It is your business to do git commit and git push # TODO support file type from github API, like 'gist code' -# TODO list dot file in 'gist detail' # TODO README/helper message about tag and default action ${SHELL:-bash} # TODO codebase statistics, like C++ or something # TODO migrate to gh-page, with install.sh and check_md5 in README @@ -537,7 +536,7 @@ _show_detail() { echo updated_at: $updated_at repo=$folder/$GIST_ID if [[ -d $repo ]]; then - echo files:; ls $repo | sed -e 's/^/ /' + echo files:; ls -a $repo | sed -Ee 's/(\.|\.\.|\.git)//g; /^$/ d; s/^/ /' fi done } -- cgit v1.2.3-70-g09d2