systemSetup

system setup, configuration and dotfiles
git clone https://noulin.net/git/systemSetup.git
Log | Files | Refs | README | LICENSE

commit 80fa5e345b387265f40a5cc498add1be943b8f5c
parent 26f868cc6ae79c512cb4bac78878092c498796cb
Author: Remy Noulin <loader2x@gmail.com>
Date:   Tue, 19 Sep 2017 10:23:09 +0200

add syntax highlighting in less

debian/1-system.sh | 2 +-
dotfiles/.bashrc   | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)

Diffstat:
Mdebian/1-system.sh | 2+-
Mdotfiles/.bashrc | 3+++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/1-system.sh b/debian/1-system.sh @@ -7,7 +7,7 @@ echo 'deb http://spartatek.se/packages/ unstable/' >> /etc/apt/sources.list apt-get update -y apt-get upgrade -y apt-get remove -y vim-tiny -apt-get install -y fail2ban net-tools curl wget tmux build-essential ruby tree apt-transport-https screen ranger mc vim ncftp p7zip-full rtorrent pbzip2 atop htop glances tcc sshuttle finger cmatrix jigdo-file openssh-server ntp kpcli iftop iotop unison qrencode python-nose python-nose2-cov python-nosexcover apt-file libpcre3-dev graphviz pandoc elinks w3m links nmap figlet zip lynx apt-src cowsay sl tig rdiff-backup imagemagick graphicsmagick emacs24-nox llgal moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle uncrustify unifdef valgrind doxygen fish gdb lcov python-pip slurm tpp cloc python3-dev python3-pip silversearcher-ag ncdu mutt bmon lm-sensors cppcheck check clang-3.9 toilet erlang elixir mini-dinstall pinentry-curses exuberant-ctags mkdocs +apt-get install -y fail2ban net-tools curl wget tmux build-essential ruby tree apt-transport-https screen ranger mc vim ncftp p7zip-full rtorrent pbzip2 atop htop glances tcc sshuttle finger cmatrix jigdo-file openssh-server ntp kpcli iftop iotop unison qrencode python-nose python-nose2-cov python-nosexcover apt-file libpcre3-dev graphviz pandoc elinks w3m links nmap figlet zip lynx apt-src cowsay sl tig rdiff-backup imagemagick graphicsmagick emacs24-nox llgal moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle uncrustify unifdef valgrind doxygen fish gdb lcov python-pip slurm tpp cloc python3-dev python3-pip silversearcher-ag ncdu mutt bmon lm-sensors cppcheck check clang-3.9 toilet erlang elixir mini-dinstall pinentry-curses exuberant-ctags mkdocs source-highlight # vim sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc @@ -88,6 +88,9 @@ if [ -x /usr/bin/dircolors ]; then alias grep='grep --color=always' #alias fgrep='fgrep --color=auto' #alias egrep='egrep --color=auto' + + export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" + export LESS=' -R ' fi # some more ls aliases