gl.

 

by month:
* March 2002
* April 2002
* May 2002
* June 2002
* July 2002
* August 2002
* September 2002
* October 2002
* November 2002
* December 2002
* January 2003
* February 2003
* March 2003
* April 2003
* May 2003
* June 2003
* July 2003
* August 2003
* September 2003
* October 2003
* November 2003
* December 2003
* January 2004
* February 2004
* March 2004
* April 2004
* May 2004
* June 2004
* July 2004
* August 2004
* September 2004
* October 2004
* November 2004
* December 2004
* January 2005
* February 2005
* March 2005
* April 2005
* May 2005
* June 2005
* July 2005
* August 2005
* September 2005
* October 2005
* November 2005
* December 2005
* January 2006
* February 2006
* March 2006
* April 2006
* May 2006
* June 2006
* July 2006
* August 2006
* September 2006
* October 2006
* November 2006
* December 2006
* January 2007
* February 2007
* March 2007
* April 2007
* May 2007
* June 2007
* July 2007
* August 2007
* September 2007
* October 2007
* November 2007
* December 2007
* January 2008
* February 2008
* March 2008
* April 2008
* May 2008
* June 2008
* July 2008
* August 2008
* September 2008
* October 2008
* November 2008
* December 2008
* January 2009
* February 2009
* March 2009
* April 2009
* May 2009
* June 2009
* August 2009
* September 2009
* December 2009
* January 2010
* February 2010
* March 2010
* April 2010
* May 2010
* June 2010
* August 2010
* October 2010
* November 2010
* March 2011
* June 2012
* July 2012
* August 2012
* September 2012
* October 2012
* November 2012
* December 2012
* January 2013
* February 2013
* March 2013
* April 2013
* June 2013
* July 2013
* August 2013
* September 2013
* April 2014
* August 2014
* November 2014
* December 2014
* January 2015
* March 2015

This page is powered by Blogger. Isn't yours?
site feed by atom

Saturday, November 26, 2005

 
[#] [0]
so i went back to using bash after a few years of using tcsh because that's what mac os x -used- to ship as its default shell. at some point mph raised his eyebrow at me for using tcsh and told me the os x default was bash again, so i finally got around to converting my io & eliot .tcshrc to .bashrc today. this took longer than i wanted (though probably not longer than i expected, which is why i initially resisted returning to bash) due to two key features: set nobeep & set prompt.

set nobeep: i tried the recommended
"set bell-style visible"
but .bashrc wouldn't touch it unless i put it into ~/.inputrc. having lots of little separate file settings drives me nuts & i had already fixed the .bash_profile issue by only having one line telling it to refer to the .bashrc:
source ~/.bashrc
it took me a while to find the answer to set the bell style without using .inputrc: adding
bind "set bell-style visible"
in the .bashrc. this worked on io which runs gnu/linux, but eliot (running darwin) continued to beep until i chose
bind "set bell-style none"
instead.

set prompt: tcsh's way to configure prompts is arcane but intuitive:
set prompt="%B[%m:%.3] %n% %b"
this creates a prompt that's bold & contains the machine name, 3 levels of working directory & my username.

compare to bash (though it doesn't include my username):
PS1="\e[30;1m[\h:\w]\e[0m "
the escape characters are scarier than the vaguely html-like %B %b entities to create a bold character. and this is the easy way: some bash prompt tutorials include actual lines of code to manipulate the escape characters, and this gui homegirl don't do that. and i don't think i can tell it to just give me three levels of working directory: it's all or nothing.

happily, bash now does tab completion the way i prefer (showing ambiguities, which tcsh didn't by default) & the history seems more reliable between sessions than tcsh. i also added a couple of new shell tricks to the .bashrc:
bind "set completion-ignore-case on"
(which helps when scrambling around in the mac's filesystem, especially Desktop & Documents)
bind "set show-all-if-ambiguous on"
(which immediately shows you the options for tab completion rather than having to tab again if there's several possible options)

in other tech news, it looks very likely that i'll be selling eliot to someone carl knows (yes, he can work miracles, even thousands of miles distant) and will be in the market for a new 12" powerbook. maybe an ibook. definitely nano+1. any advice/suggestions welcome. what will i do w/ larkspur, my current ipod? and i still have a newton languishing in the garage....

but boy, december is going to be an expensive month. xmas, new computer, some planned flair for the studio & some new calligraphy supplies: any of which by itself is a chunk of change, but together... whew. austere for the new year, that's my motto!

Comments: Post a Comment