My .bash_profile
February 1st, 2010 by Jim
In case anyone is interested. The meat of it is a bunch of two-letter aliases for common Git commands. My favorite part, though, is the shortcut to SSH into the iMac. My iMac has an equivalent alias to SSH into my MacBook. Makes it super easy to login and push whatever I was working on back to the server, if I’d forgotten to after switching computers.
Oh, and this isn’t in my profile, but just learned this trick last week and which I had known about it years ago. In OS X, ‘open ./’ opens the current directory in Finder.
echo echo "######################################" echo "# #" echo "# Welcome to Jim's Macbook #" echo "# #" echo "######################################" echo PATH=$PATH:/Users/jkubicek/bin export PATH PS1="\[\e[1;36m\]$PS1\[\e[m\] " export PS1 alias ls='ls -G' alias imac='ssh jimkubicek@imac.local' alias gc='git commit -m' alias ga='git add .' alias gs='git status' alias gl='git log --oneline --graph'