Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
HiRez said:
Yeah, when I write scripts, I just use the !sh anyway. I'm just wondering if I should switch to bash, since it's the standard shell now. Maybe easier to get help with and run sample commands on? Does it have tab-completion of directory fragments like tcsh does though? That's probably the one feature I couldn't live without.

Yup - assuming you mean what I think you mean when you say "tab-completion of directory fragments". :D
 
Thanks, I changed over to bash today, it was very easy. For anyone still using tcsh from earlier OS X versions, if you want to change:

1. In terminal, type chsh -s /bin/bash
2. Using Terminal or TextWrangler or whatever, create the .bash_profile file in your home directory and edit your prefs (the format of the commands is slightly different than tcsh, you'll need to adjust whatever you had set for your tcsh prefs).

Here's a page that helped me change my preferences Bash Shell Configuration.
 
HiRez said:
Thanks, I changed over to bash today, it was very easy.
Here's a good one for your /etc/profile to dynamically display the working directory on your unix prompt.

PS1='\u@ $PWD>'

Might be common knowledge - but thought I'd share it anyways :)
 
Cooknn said:
Here's a good one for your /etc/profile to dynamically display the working directory on your unix prompt.

PS1='\u@ $PWD>'

Might be common knowledge - but thought I'd share it anyways :)

Or put in your ~/.bash_profile

PS1='\h:\W> '
 
Tiger Terminal

I ran an older seed of Tiger (ADC Select member) a while back, but I forgot to check if Terminal.app is now tabbed in Tiger. Anyone know? It's one of the biggest things I miss from a Linux desktop (Gnome or KDE).
 
oblomow said:
Or put in your ~/.bash_profile

PS1='\h:\W> '
I went with:

PS1='________________________________________________________________________________\n[\w] $ '

This puts a nice horizontal line between commands to make them easy to find when scrolling back (you have to adjust the width for that of your Terminal window). I used the underscore character for the line.
 
HiRez said:
I went with:

PS1='________________________________________________________________________________\n[\w] $ '

This puts a nice horizontal line between commands to make them easy to find when scrolling back (you have to adjust the width for that of your Terminal window). I used the underscore character for the line.

That's nifty. Never thought of that. I still like to have the hostname in the prompt though. I generally am logged on to several unix machines and I
hate to reboot (or worse....) the wrong server. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.