A little Saturday morning tweaking. Based on this post at railstips.org, I decided to adjust my Bash prompt by appending the following to my ~/.bashrc file: #… function parse_git_branch { ref=$(git symbolic-ref HEAD 2> /dev/null) || return echo "("${ref#refs/heads/}")" } BLACK="\[\033[0;30m\]" BLUE="\[\033[0;34m\]" VIOLET="\[\033[1;35m\]" CYAN="\[\033[0;36m\]" PS1="\n[$CYAN\u@\h:$BLUE\w$VIOLET \$(parse_git_branch)$BLACK]\n\$ " The prompt will now show the name of [...]
Posts under ‘Computer User’
Google Docs Backup with GDocBackup
I was searching for a simple way to make local backups of my Google Docs and found gdocbackup on Google Code. According to the project docs it runs on Windows and Linux (with Mono) so I tried it on both Windows 7 and Ubuntu 9.10 Desktop. On the Windows 7 PC, I downloaded the installer [...]
Bookmarks Selective History
Some folks don’t keep bookmarks in their browsers anymore since you can always use a search engine to find things when you need them. Problem is, often the thing that interests me is not one of the top items in a search result set (even when I can remember the right search terms to use). [...]