Jump to content


Photo
- - - - -

.bashrc


  • Please log in to reply
6 replies to this topic

#1 Seal

Seal

    Not a fan of clubs.

  • Agents of the Revolution
  • 2,440 posts
  • Country:
  • Gender:Male
  • Location:Canada

Posted 19 April 2006 - 12:06 PM

What changes do you make to your .bashrc file?

I always add a "safe rm" function, because I hate the idea of permanently (and accidentally) deleting something:
rm () {
mv $* "$HOME/recycle/";
echo "Deleted file(s) '$*' to Recycle Bin."
}

Edited by Seal, 19 April 2006 - 01:48 PM.


#2 systems_glitch

systems_glitch

    Dangerous free thinker

  • Moderating Team
  • 1,623 posts
  • Gender:Male

Posted 19 April 2006 - 12:39 PM

I source my main /etc/bashrc, and export the UT99 path.

#3 n00dles

n00dles

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 16 posts
  • Location:Cyberspace

Posted 19 April 2006 - 01:28 PM

Just the PS1 and sometimes CLI colors as FreeBSD has no color coding by default, and I like the colors! The odd alias too.

#4 chaostic

chaostic

    rekcah-rebÜ

  • Members
  • 724 posts

Posted 21 April 2006 - 06:42 AM

I skipped the whole .bashrc thing by adding this to it

for PROFILE_SCRIPT in $( ls /etc/bashrc.dir/*.bash ); do
  . $PROFILE_SCRIPT

Then I create a bunch of files each holding a single alias or script. Easier to manage.

Only thing is I cant use the aliases in sudo or su mode. :(

#5 ed209

ed209

    DDP Fan club member

  • Members
  • 54 posts

Posted 21 April 2006 - 11:18 AM

My .bashrc is fairly well crafted, I usually add custom command completion and change my PS1 like this:

PS1='-{$?}- [\u@\h] \w \$ '
Sometimes if I feel like wasting an hour I'll configure my PS1 to update my Xterm title bar, and add colors and what not.

--ed

#6 chedder

chedder

    SUP3R 31337

  • Members
  • 170 posts

Posted 22 April 2006 - 03:18 AM

i usaly just have a few aliases, cause i like single letter command things.

Just the PS1 and sometimes CLI colors as FreeBSD has no color coding by default, and I like the colors! The odd alias too.

View Post

install the gnuls package, wich will give you the same ls command and linux distros use. bsd's ls supports colors, you just cant change them.

#7 iceni

iceni

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 400 posts

Posted 22 April 2006 - 10:46 AM

i use afew aliases, i like this one
alias today='grep -h -d skip `date +%m/%d` /usr/share/calendar/*'
the output of today in terminal today is this
$ today
04/22   Kant born, 1724
04/22   Joerg Wunsch <joerg@FreeBSD.org> born in Dresden, Sachsen, Germany, 1962
04/22   Jun Kuriyama <kuriyama@FreeBSD.org> born in Matsue, Shimane, Japan, 1973
 * $FreeBSD: src/usr.bin/calendar/calendars/calendar.history,v 1.28 2003/04/22 10:33:43 grog Exp $
04/22   Vladimir Ilich Ulyanov, called Lenin, Russian political leader, born in Simbirsk, 1870
04/22   Arbor Day in Nebraska & Delaware
04/22   Oklahoma Day in Oklahoma
04/22*  Hol ha-Mo'ed
04/22*  Omer 5th day






BinRev is hosted by the great people at Lunarpages!