public
Last active

My Bash .profile file

  • Download Gist
.profile
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#!/bin/bash
 
alias ..="cd .."
alias ls="ls -p"
alias la="ls -lA"
alias l="ls -l"
alias ll="ls -l"
alias psf="ps -cU `whoami`"
alias grep="grep --color=auto"
alias cack="ack --cpp"
alias aack="ack --all"
 
alias cd-='cd /svn/clientside/trunk/desktop'
 
GRC=`which grc 2> /dev/null`
if [ "$TERM" != dumb ] && [ -n "$GRC" ]
then
alias colourify="$GRC -es --colour=auto"
alias configure='colourify ./configure'
alias diff='colourify diff'
alias make='colourify make'
alias gcc='colourify gcc'
alias g++='colourify g++'
alias as='colourify as'
alias gas='colourify gas'
alias ld='colourify ld'
alias netstat='colourify netstat'
alias ping='colourify ping'
alias traceroute='colourify /usr/sbin/traceroute'
fi
 
 
GREEN="\[\033[1;32m\]"
RESET="\[\033[0m\]"
export PS1="\h $GREEN\W$RESET\$ "
 
case `uname` in
Darwin)
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad;;
CYGWIN_NT-5.1)
alias open=cygstart
alias ls='ls --color=auto';;
Linux)
alias ls='ls --color=auto';;
esac
 
export HISTSIZE=10000
export HISTFILESIZE=10000
export HISTCONTROL=ignoredups
export EDITOR=vim
 
shopt -s histappend

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.