Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if ( which apt-get >/dev/null 2>&1 ); then
  4. sudo apt-get install -y source-highlight
  5. else
  6. sudo yum install -y source-highlight
  7. fi
  8.  
  9. sudo sed -i -e 's/ black/ yellow/' /usr/share/source-highlight/esc.style
  10. sudo sed -i -e 's/function yellow b/function yellow/' /usr/share/source-highlight/esc.style
  11.  
  12. LESSPIPE=/usr/share/source-highlight/src-hilite-lesspipe.sh
  13. if ! [ -e "$LESSPIPE" ]; then
  14. LESSPIPE=/usr/bin/src-hilite-lesspipe.sh
  15. fi
  16.  
  17. echo <<EOT >>$HOME/.bashrc
  18. # source-highlight
  19. export LESS='-R'
  20. export LESSOPEN='| $LESSPIPE %s'
  21. EOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement