bashrc

my .bashrc
code format="bash" alias su.namp='/etc/sudo /etc/nampguts' alias su.trace='/etc/sudo /etc/sudotrace' alias x='/etc/sudo /etc/sudotrace' alias u='uname -a' alias dom='domainname' alias ssh="ssh -o StrictHostKeyChecking=no"
 * 1) . ~u8x1464/.bashrc

export FQDN=`cat /etc/hosts | grep -v "#" | grep $(hostname) | awk '{print $2}'`
 * 1) export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\007"'

if [ "$(hostname)" == "goombah" ]; then DOM="" else DOM=`domainname` fi

if [ "`id | awk -F= -F\( '{print $1}' | awk -F= '{print $2}'`" == "0" ]; then       USER="\[\033[1;34m\]root" else        USER="" fi

export PROMPT_COMMAND='echo -ne "\033]0;${FQDN}"; echo -ne "\007"'


 * 1) export PS1='\u@\h:\w\$ '
 * 2) export PS1="\n\[\033[1;36m\]\u\[\033[1;37m\] \[\033[0;36m\]`date`\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "
 * 3) export PS1="\n\[\033[1;36m\]\u\[\033[1;37m\] \[\033[1;33m\]\h \[\033[0;36m\]`uname` `uname -r` `domainname` \n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

export PS1="$USER \[\033[1;33m\]$FQDN \[\033[0;36m\]`uname` `uname -r` $DOM\n[\[\033[1;36m\]\w\[\033[0;36m\]]\[\033[0m\]\n--> "

export DISPLAY=:0
 * 1) PATH=$PATH:~/bin:/bin:/usr/tools/bin:/usr/X11R6/bin:/remote/bin

export GREP_COLOR='1;30;43' export LANG="C"
 * 1) export LANG=en_US.UTF-8
 * 1) export LC_CTYPE=en_US.UTF-8
 * 2) export LC_ALL=C

export PATH="/usr/sbin:/usr/ccs/bin:/usr/bin:/usr/lib:$PATH:/etc:/usr/platform/$(/bin/uname -m)/sbin:/usr/tools/bin:/usr/bin" LD_LIBRARY_PATH="/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH:/usr/openwin/lib:/usr/ucblib" export http_proxy=http://us_proxy_indy.xh1.lilly.com:9000
 * 1) Set up paths


 * 1) UBUNTU ALIASES ###

alias update="sudo apt-get update;sudo apt-get upgrade" alias clean="sudo apt-get clean;sudo apt-get autoclean" alias install="sudo apt-get install" alias search="sudo apt-cache search" alias show="sudo apt-cache show"


 * 1) MISC USEFUL ALIASES ###

alias snmp="echo -ne snmpwalk -Os -v 1 -c public  system"

if [ "`uname`" == "Linux" ] then alias ll='ls -alh --color=tty' alias ls='ls --format=vertical --color=tty' else alias ll='ls -al' fi

alias ps="ps -ef | grep " alias nbugui='/usr/openv/netbackup/bin/jnbSA &' export HISTSIZE=3000

export HISTCONTROL=ignoredups export HISTCONTROL=ignoreboth
 * 1) don't put duplicate lines in the history. See bash(1) for more options
 * 1) ... and ignore same sucessive entries.

shopt -s checkwinsize
 * 1) check the window size after each command and, if necessary,
 * 2) update the values of LINES and COLUMNS.

[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
 * 1) make less more friendly for non-text input files, see lesspipe(1)

if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi

alias iphone="sudo umount /media/iphone; sudo ifuse --root /media/iphone" code