Skip to content

Commit

Permalink
fix shell expansion for Colored Man Pages
Browse files Browse the repository at this point in the history
Not sure how this got past testing
  • Loading branch information
Botspot committed Nov 23, 2024
1 parent 7bc68db commit 9090b3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/Colored Man Pages/install
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ sudo mkdir -p /usr/local/bin

status "Creating /usr/local/bin/man"
echo "#!/bin/bash
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_so=$'\e[46;30m' \
LESS_TERMCAP_se=$'\e[0m' \
/usr/bin/man "\""$@"\" | sudo tee /usr/local/bin/man >/dev/null
LESS_TERMCAP_md=$'\e[01;31m' \\
LESS_TERMCAP_me=$'\e[0m' \\
LESS_TERMCAP_us=$'\e[01;32m' \\
LESS_TERMCAP_ue=$'\e[0m' \\
LESS_TERMCAP_so=$'\e[46;30m' \\
LESS_TERMCAP_se=$'\e[0m' \\
/usr/bin/man "\"""\$"@"\" | sudo tee /usr/local/bin/man >/dev/null

status "Making executable: /usr/local/bin/man"
sudo chmod +x /usr/local/bin/man

0 comments on commit 9090b3a

Please sign in to comment.