SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
hey guys i read this
First things first, let's get a decent looking prompt. Go to your home directory by typing:
cd ~
and then create a text file called .bash_profile. Inside .bash_profile, type the following:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
and save it. The create/edit your .bashrc (in the same directory) and type in the following:
alias ll='ls --color -l'
LS_COLORS="no=00:fi=00:di=01:ln=01;36:*.gz=01;35:*.tar=01;34:*.bz2=01;35:*.zip=01;35"
PS1="[\u#\w] "
export PS1 LS_COLORS
Logout and re-login. Try typing 'll' and see if your .bashrc was ready properly. Make sure your prompt looks correct.
and it worked i changed the login prompt, but i really dont know HOW it worked....for example i kno the PS1= changes the cli shell prompt...so can someone please give me a run down of how i did this and if possible could they elaborate a little bit..thanks
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,151
Rep:
the .bashrc stuff was just to make sure .bashrc got loaded.
yes PS1 is the prompt. man bash would show you the
different settings you can have for that. the LS_COLORS
line assigns certain display colors to the types of files
listed. the number is the color. i can't remember where
to find those.
the alias line for ll runs that line after when you type ll.
the --color is for ls to display files in different colors.
i think there is a prompt howto on the web. and there
is a site that will let you pick whatever properties you
wish for a prompt, and it will create the code for you.
Originally posted by roofy nm i installed rh 7.2, i dont think im mentally ready for slack yet
That was quick.. Slack isn't any harder than Redhat, Redhat just has more GUI tools and such to work with. I quite frankly find most other distro's like Redhat, Mandrake and the such much more confusing as they tend to move things around, have longer and more complicated config files, making them harder to understand, etc.. Oh well, good luck with Redhat.
well i never use the gui anyway cuz i dont have an extra monitor so i just use ssh to admin my systems...i like rh becuase i compile my software and it works becuase it follows standard dir structure..just my bag i guess
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.