. /home/nc/.aliasrc complete -cf sudo complete -cf man # Bash completion set show-all-if-ambiguous on # Check for an interactive session [ -z "$PS1" ] && return #colorize prompt #PS1='[\u@\h \W]\$ ' export PS1='\[\033[0;32m\]\u@\h \W\$ \[\033[0;38m\]' # proxy uminho # receives 1 parameter: 0 or 1 (off or on) function proxy_um { if [ "$1" = 0 ]; then echo "Proxy OFF" http_proxy="" socks_proxy="" elif [ "$1" = 1 ]; then echo "Proxy ON" http_proxy="http://proxy.uminho.pt:3128" socks_proxy="http://socks.uminho.pt:1080" else echo "You have to pass on integer argument: 0 (off) or 1 (on)" fi export http_proxy=$http_proxy export https_proxy=$http_proxy export socks_proxy=$socks_proxy export SOCKS_SERVER=$socks_proxy export ftp_proxy=$http_proxy export all_proxy=$http_proxy } #java #export "_JAVA_AWT_WM_NONREPARENTING=1" #export _JAVA_OPTIONS="-Dswing.aatext=true" #export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" #export _JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" export MOZ_DISABLE_PANGO=1 # for xdg shit export BROWSER='chromium' export browser='chromium' export EDITOR='vim' # for flipped webcam # export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so # man colors 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 "$@" }