Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if ( which apt-get >/dev/null 2>&1 ); then
- sudo apt-get install -y source-highlight
- else
- sudo yum install -y source-highlight
- fi
- sudo sed -i -e 's/ black/ yellow/' /usr/share/source-highlight/esc.style
- sudo sed -i -e 's/function yellow b/function yellow/' /usr/share/source-highlight/esc.style
- LESSPIPE=/usr/share/source-highlight/src-hilite-lesspipe.sh
- if ! [ -e "$LESSPIPE" ]; then
- LESSPIPE=/usr/bin/src-hilite-lesspipe.sh
- fi
- echo <<EOT >>$HOME/.bashrc
- # source-highlight
- export LESS='-R'
- export LESSOPEN='| $LESSPIPE %s'
- EOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement