A colleague of mine just sent me a couple links that were great tips if you work with git often. lifeon.biggerplanet.com talks about how to take advantage of customizing the prompt and using git-completion.bash script to auto-complete things like git branches and also display the branches in the prompt.
Points of interest…
PS1='[\u@\h \w$(__git_ps1 " (%s)")]\$ '
I’m always using the Mac OSX Terminal app for things. I was jealous of linux machines though, their terminals were much nicer. Things like the Delete key worked among other things.
I found this to help. (From http://hints.macworld.com/article.php?story=20050525040921189) (Originally it was from http://koorb.co.uk/scrapbook/ I guess, but that page errors out for me.)
Add this to ~/.inputrc
(or ~/.bash_profile works too I guess) (it has to go in your .inputrc file.
# this makes the "delete" key work rather than
# just entering a ~
# these allow you to use ctrl+left/right arrow keys
# to jump the cursor over words
# these allow you to start typing a command and
# use the up/down arrow to auto complete from
# commands in your history
# this lets you hit tab to auto-complete a file or
# directory name ignoring case
set completion-ignore-case On
# I'm not sure what keys these are!
Thats it, open a new Terminal window and you’ll be able to Delete away.
These are my links for April 15th from 04:49 to 09:52:
These are my links for April 13th through April 14th:
- Pixie – The Small, Simple, Site Maker. A basic cms worth a look. Admin is nice and intuitive.
- Rsync and recursion protection with .svn folders – Nabble – Samba – rsync article that is a good reference to how to merge exported files (or non-working copies of an svn manages project) back into a working copy. rsync -r –filter='P .svn' –exclude=".svn" –delete –force /src-export/folder /destination/workingcopy
- GParted – Boot partition management