#set the path.. finally in one, kind of readable, line export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:/usr/local/mysql/bin export PATH=$PATH:/usr/bin:/bin:/usr/sbin/:/usr/local/sbin/:/sbin:/usr/X11R6/bin/:/Users/martijnengler/scripts/ #don't show the same commands over and over again in my bash history export HISTCONTROL=erasedups # the bash history should save 999 commands export HISTFILESIZE=999 #enables colored output and does other colory stuff export CLICOLOR=1 export LSCOLORS=ExFxGxaxBxegedabagacad export TERM=xterm-color #makes a nice shell in the form of "username@pcname:full-path-to-cwd$ " PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' #### command completion #### #show a list of commands if there's more than one possibility set show-all-if-ambiguous On #ignore case when completing commands bind "set completion-ignore-case on" #completes usernames after su(do) complete -A user su sudo #completes hostnames after the listed commands complete -A hostname rsh rcp telnet rlogin r ftp ping disk ssh #### aliases #### #use ll to get a list of files / directories in a directory with human-readable sizes (things like MB and GB) and hidden files alias ll='ls -hlA' #command completion in IRB alias irb='irb -r irb/completion' #prompts when trying to overwrite a file alias cp='cp -i' alias mv='mv -i' ## svn ## alias st="svn st -u" alias chi="svn ci *" alias up="svn up" alias di="svn diff" alias rv="svn revert" #just fun stuff actually.. displays stats about the commands I use #doesn't work with HISTCONTROL=ignoreboth alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr" #makes it so easy to edit something in textmate alias e=mate #I use this one a lot :-) alias grip="grep -i" #RoR servers alias stkip="ruby /Users/martijnengler/code/ror/kip/script/server webrick" alias stwiki="ruby /Users/martijnengler/code/ror/wiki/script/server webrick -p 3001" alias sthrn="ruby /Users/martijnengler/code/ror/hrn/script/server webrick -p 3002" #### random stuff #### #make vi the default editor export EDITOR=vi #eh.. I guess this would be encoding-stuffies... export LC_CTYPE=en_US.UTF-8 #the jar-file for MySQL/Java export set CLASSPATH=/usr/local/lib/mysql/mysql-connector-java.jar:. #this laods the rubygems without me doing a thing in my scripts.. it's like.. magic export RUBYOPT=rubygems #set vim as the editor on the commandline set -o vi #disable that fscking bell(beep) set bell-style none