~/.bashrcfile. I guess better late than never...right?
It's still very much a work in progress, but here is what I've come up with so far.
First, my PS1:
PS1='\[\033[1;32m\][\u@\h \[\033[31m\]\W\[\033[34m\]$(__git_ps1 " (%s)")\[\033[1;32m\]]\\$\[\033[m\] '
This was the first tweak I made, and I blogged about it here (and updated the post a few times in the process).
After doing that I started adding aliases, and I've collected a pretty good list so far:
First, I've fixed my most common typo...correcting isntall to install:
Then, I set up a few for SSH connections:
alias server='ssh server -l jaysonr'
alias railsvm='ssh railsdev-vm -l jaysonr'
alias djangovm='ssh djangodev-vm -l jaysonr'
Next, I added some for package management:
alias update='sudo yum update'
alias install='sudo yum install'
alias remove='sudo yum remove'
alias pkgsearch='yum search'
A few frequently used directories:
##Frequently Used Directories
alias home='cd ~'
alias desktop='cd ~/Desktop'
alias downloads='cd ~/Downloads'
alias dropbox='cd ~/Dropbox'
A few miscellaneous shortcuts:
alias df='df -h'
alias ls='ls -F'
alias lsa='ls -alF --color=auto'
alias lsl='ls -lF --color=auto'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias un='tar -zxvf'
And finally the ability to control a few VM's I run headless & SSH into:
##VirtualBox CLI Machines
alias startrailsvm='VBoxManage startvm rails_dev --type headless'
alias stoprailsvm='VBoxManage controlvm rails_dev savestate'
alias startdjangovm='VBoxManage startvm django_dev --type headless'
alias stopdjangovm='VBoxManage controlvm django_dev savestate'
So, what are some cool things you have in your
~/.bashrc? I'm always looking to learn new tricks.