Skip to content

Commit

Permalink
allow for colorizing contents of dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Aug 14, 2024
1 parent 41fc818 commit 9e04ed2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fileext () {
fn=${1##*/}
case "$fn" in
.*.*) extension=${fn##*.} ;;
.*) extension= ;;
.*) extension=${fn#.} ;;
*.*) extension=${fn##*.} ;;
esac
echo "$extension"
Expand Down
2 changes: 2 additions & 0 deletions test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ sub comp {
c test
less $T/tests/a-r-R.pl # do not call vimcolor with -l extension git #77
c sub
less $T/tests/special.tgz:.gitconfig # colorize known dotfiles git #154
c name
LESS= less $T/tests/a-r-R.pl # name contains -r or -R git #78
= sub test {}
less $T/tests/test_zip:non-existent-file # nonexisting file in a zip archive git #1
Expand Down
Binary file modified tests/special.tgz
Binary file not shown.

0 comments on commit 9e04ed2

Please sign in to comment.