diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-07-22 01:44:05 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-07-22 01:44:07 +0200 |
commit | dfbd950c90a7f4df9a3dff8c8d011e692e8526ee (patch) | |
tree | e1f7e6b55a9cf010acd6524b78c2fefc7f732435 /scripts | |
parent | b0ee6b285066c37ed2ab8865d4b5853605eebcd4 (diff) |
bash_aliases: man_gitstaged(): Never show dirs
Directories are obvious also for scripts, or other non-man(7)
files. Also, this adds support for man3type and man2type pages.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/bash_aliases | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bash_aliases b/scripts/bash_aliases index 32d013837..df79a952e 100644 --- a/scripts/bash_aliases +++ b/scripts/bash_aliases @@ -198,10 +198,10 @@ pdfman() man_gitstaged() { git diff --staged --name-only \ - |sed "s/$/, /" \ - |sed "s%man[0-9]/%%" \ + |sed 's/$/, /' \ + |sed 's%.*/%%' \ |tr -d '\n' \ - |sed "s/, $//" + |sed 's/, $//' } ######################################################################## |