OK So I switched to bash...

wyvern

Guest
And now I have a problem. Of course.

It seemed that tcsh was in general a "bad thing" so I thought I'd give bash a try. (I'm running 10.2 so no fink magic was needed.)

I set up a .bashrc containing my prompt information, and here it is:

PS1='[\h:\w] \u\$ '
export PS1

When it works, the prompt looks like:
[hostname:current dir] username$
(or # instead of $ if root)

But it doesn't work when I make a new term window. It only works if I then type "bash". Why not ? I added +x permission to user, group, and other and it still doesn't work, so permissions are not the problem. (Of course read is enabled.)

Edit: After some trial and error, what turned out to be the trick was to put it in ~/.profile...
 

TBoNe

Registered
Edit: After some trial and error, what turned out to be the trick was to put it in ~/.profile... [/B]
Same thing happened to me, it took me a bit to figure it out.
 

wyvern

Guest
oh and while i'm at it, .profile is a good place to put things like your IRCSERVER, IRCNAME and stuff like that.
 

fintler

Registered
eww..what's up with the fugly redhatte style prompt ;P

....how about a nice, clean slack style prompt...

Code:
PS1='\u@\h:\w\$ '
also, if you feel like installing the newer gnu fileutil warez, you can get colours if you add and export the following to your bashrc...

Code:
red='\e[0;31m'
RED='\e[1;31m'
blue='\e[0;34m'
BLUE='\e[1;34m'
cyan='\e[0;36m'
CYAN='\e[1;36m'
NC='\e[0m' #no color

alias ls='ls -hF --color'

LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:'
 
Top