[Novalug] .bashrc favorite shortcuts
Paul W. Frields
stickster at gmail.com
Fri Nov 7 17:30:04 EST 2008
On Fri, 2008-11-07 at 12:38 -0500, Bud Roth wrote:
> Hey...Just put together a new .bashrc with some aliases after googling a
> few sites...A lot are new...Thought I'd post for discussion...New ones
> welcome...
I have a few simple ones for project roots where I check out a lot of
code:
## An example, checking out Package CVS stuff from Fedora
FEDCVSROOT=:ext:pfrields at cvs.fedoraproject.org:/cvs/pkgs
alias fdp-co="cvs -d $FEDCVSROOT co"
A bit more hacky, to get a nice git-branch prompt:
# If not using bash-completion...
if [ -z "`declare -p | grep __git_ps1`" ]; then
export PS1="[\u@\h \W\$(git-branch 2> /dev/null | grep -e '\* ' |
sed 's/^..\(.*\)/ {\1}/')]\$ "
fi
--
Paul W. Frields
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
http://paul.frields.org/ - - http://pfrields.fedorapeople.org/
irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://calypso.tux.org/pipermail/novalug/attachments/20081107/00c73e9f/attachment.bin
More information about the Novalug
mailing list