PDA

View Full Version : Help with .bashrc


Onyx
01-20-2004, 05:20 PM
Just switched to OS 10.3. In 10.2 I was able to use a .tcshrc file in my home directory to influence the terminal's behavior. In 10.3 it appears that the default terminal app has switched to bash. For some reason I am not able to get my terminal to respond/recognize the .bashrc file I created with pico. Is there something that I'm missing here? Did I forget to do something? Any help is appreciated.

-Onyx

saurya_s
01-20-2004, 05:38 PM
Originally posted by Onyx
Just switched to OS 10.3. In 10.2 I was able to use a .tcshrc file in my home directory to influence the terminal's behavior. In 10.3 it appears that the default terminal app has switched to bash.

Is it really bash? type $SHELL and see. if it is bash, cheack for contents of /etc/profile
I think it doesn't change the shell unless you do from Netinfo manager.
SS

For some reason I am not able to get my terminal to respond/recognize the .bashrc file I created with pico. Is there something that I'm missing here? Did I forget to do something? Any help is appreciated.

-Onyx

cstuder
01-20-2004, 05:53 PM
Stupid historical issue...

Create another file called .bash_profile in your home directory and enter the following code in it:

if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

Bye,
christian

Onyx
01-20-2004, 06:56 PM
That appeared to work -by entering the command into the .bash_profile.

Now another stupid question....

Based on reading other posts it looks like you enter aliases in bash just like in tcsh (e.g. alias xxx 'alias here'). Strangely aliases in my .bashrc file come with the error message:

-bash: alias: xxx: not found

What's that about!?!

Sorry for the newbie questions.. bash is sort of new to me.

Thanks for the help!

-Onyx

cstuder
01-20-2004, 07:02 PM
Not stupid. The syntax changed and is now:

alias newcommand="old command line"

This and more information under man bash.

Bye,
christian

mschneider
03-17-2004, 05:40 PM
christian,

seems to me that there is something different under 10.3

-> can't specifiy paths with umlauts

not sure if this is really new - didn't use the terminal often in the past few months

is there a way to specify paths/filenames containing umlauts?

strange: I can use umlauts on my dektop G5 - but not on the powerbook (both 10.3.3)

thank you very much!

markus

cstuder
03-17-2004, 07:04 PM
Guten Abend... ;-)

Well, I have more troubles with umlauts now in Panther too, but never really bothered to do something about it.

I'm not sure whether it has something to do with the terminal-type specified in the preferences or another setting. So sorry, I can't help you there.

Bye,
christian

mschneider
03-18-2004, 02:20 AM
well, glad that I'm not the only one

I believe that it depends on settings - but couldn't do anything to be able to set path by drag and drop again.

Changed the shell (csh, tcsh), terminal settings, but got just an error when did a 'cd blahblah' ('blahblah' by drag&drop; containing umlauts). Couldn't find a setting that shows umlauts (only esc-seq.) in the command line

the reason for this trying: Got a CD from a WinMachine with Filemaker files... they were all read-only (after copying to the HD!) - then I tried to 'chmod' all of them in one step

Finally, I copied the folder containing these files to the desktop and did this 'chmod'

Later on, I realized that there is a directory-name in my path that causes the problems (it's in the middle of the path)
After stepping through the path one-by-one, I could access the files - but not via drag&drop.

path to long?? But it cut some letters in the middle..

strange

thanks

markus

cstuder
03-18-2004, 02:35 AM
Hey, maybe I can invite you over to www.osxserver.ch. It's a swiss forum and perhaps somebody there can help you.

Bye,
christian