Sidehistorik
Kodeblok |
---|
#osascriptosascript ~"/DropboxVolumes/Scripts/osx/RandomColoriTerm2.scpt osascript ~/DropboxGoogleDrive/My Drive/Scripts/osx/RandomImageiTerm2RandomColoriTerm2.scpt" # Tell ls to be colourful export CLICOLOR=1 export LSCOLORS="GxfxcxdxBxegecabagacad" echo "colorscheme desert" > ~/.vimrc # Tell grep to highlight matches export GREP_OPTIONS='--color=auto' # Other practical exports export EDITOR=vim export HISTCONTROL=erasedups export HISTSIZE=10000 shopt -s histappend #Works only for bash #shopt -s histappend # Color in Maven alias maven="command mvn" color_maven() { maven $* | sed -e "s/\(\[INFO\]\ \-.*\)/[36;01m\1[m/g" \ -e "s/\(\[INFO\]\ >>> .*\)/[32;01m\1[m/g" \ -e "s/\(\[INFO\]\ <<< .*\)/[32;01m\1[m/g" \ -e "s/\(\[INFO\]\ Building .*\)/[36;01m\1[m/g" \ -e "s/\(\[INFO\]\ \[.*\)/01m\1[m/g" \ -e "s/\(\[INFO\]\ BUILD SUCCESS\)/[01;32m\1[m/g" \ -e "s/\(\[INFO\]\ BUILD FAILURE\)/[01;31m\1[m/g" \ -e "s/\(\[WARNING\].*\)/[01;33m\1[m/g" \ -e "s/\(WARN.*\)/[01;33m\1[m/g" \ -e "s/\(DEBUG.*\)/[01;33m\1[m/g" \ -e "s/\(\[ERROR\].*\)/[01;31m\1[m/g" \ -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/[32mTests run: \1[m, Failures: [01;31m\2[m, Errors: [01;31m\3[m, Skipped: [01;33m\4[m/g" } alias mvn=color_maven #Color in man pages man() { env \ LESS_TERMCAP_mb=$(printf "\e[1;31m") \ LESS_TERMCAP_md=$(printf "\e[1;31m") \ LESS_TERMCAP_me=$(printf "\e[0m") \ LESS_TERMCAP_se=$(printf "\e[0m") \ LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ LESS_TERMCAP_ue=$(printf "\e[0m") \ LESS_TERMCAP_us=$(printf "\e[1;32m") \ man "$@" } ### Startup messages echo "Welcome to "`scutil --get ComputerName`"/"`ipconfig getifaddr en0` "["`sw_vers -productName`"@"`sw_vers -productVersion`"]" |
...