So this post shows my bashrc file...
#.bashrc #export custom bin directory if [ -d /media/sda3/bin ]; then export PATH=/media/sda3/bin:$PATH fi # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # Disable annoying tty console beep # ssh sets TERM to dumb when using scp or other... if [ "$TERM" != "dumb" ]; then setterm -blength 0 setterm -bfreq 0 fi #set custom java directory JAVA_HOME=/home/krisko/bin/java-bin/jdk1.7.0_07 J2SDKDIR=/home/krisko/bin/java-bin/jdk1.7.0_07 J2REDIR=/home/krisko/bin/java-bin/jdk1.7.0_07/jre #disable overlay for vdpau; this prevent youtube videos of having blue tint #other part of configuration is in # /etc/adobe/mms.cfg # EnableLinuxHWVideoDecode=1 export VDPAU_NVIDIA_NO_OVERLAY=1 #define editor export EDITOR=vim #define custom history size export HISTSIZE=2000 export SAVEHIST=2000 #compat-wireless variable export #export _selected_drivers='ath9k' #Very often changing to a directory is followed by the 'ls' command to list its #contents. Therefore it is helpful to have a second function doing both at once. cl() { if [ -d $1 ]; then cd $1 ls -l else echo "bash: cl: $1: Directory not found" fi } #auto-completition for custom commands complete -cf sudo complete -cf kdesu complete -cf man complete -W "enable disable start stop restart status$(find /etc/systemd/system/ -maxdepth 2 -type f -name \*.service -printf " %f"; find /etc/systemd/system/ -maxdepth 2 -type l -name \*.service -printf " %f";find /usr/lib/systemd/system/ -type f -name \*.service -printf " %f")" systemctl ### DEPRECATED ### #autocompleting for rc.d scripts #complete -W "start stop restart $(find /etc/rc.d/ -mindepth 1 -maxdepth 1 -type f -printf "%f ")" rc.d #Bash history completion bound to arrow keys (down, up) bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' #lets show some fortune fortune ~/.fortune/ #display ascii picture in terminal if [ -f ~/.bash_issue ]; then cat ~/.bash_issue fi export KMIX_PULSEAUDIO_DISABLE=1 export GREP_COLOR='1;36;40'
No comments:
Post a Comment