LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   aliases in .bashrc file (https://www.linuxquestions.org/questions/linux-newbie-8/aliases-in-bashrc-file-83302/)

davalos 08-18-2003 08:13 PM

aliases in .bashrc file
 
Hey,

i added the alias ls='ls -F' to my .bashrc file to take away the coloring of dir, files, etc, but for some reason it only works when i ssh to my box. I'd really like to turn off the coloring and just use the "-F" switch when doing an "ls"

Can anyone assist me here?

thanks

martinman 08-18-2003 08:15 PM

make sure you followed this proceedure: http://www.mcsr.olemiss.edu/unixhelp...ias_bash2.html

lfur 08-19-2003 02:35 AM

You have to put:
alias ls='ls --color=never'

in your .bashrc or /etc/profile for system wide settings

davalos 08-19-2003 06:18 PM

that might work on slackware but its not working on RH9 don't know what the deal is at this point. i'm kind of tired of having to do alias ls='ls -F' everytime i open up a new shell oh well, guess i'll puts around a bit more

davalos 08-19-2003 06:21 PM

so i added the alias to the .bash_profile file and that seemed to have fixed my problem...weird, but i'll take it.

davalos 08-19-2003 06:23 PM

ok problem is only half-way solved. if i open a new terminal i still have to do source .bash_profile which pretty much leaves in the the same place, i have to take the extra step to enable my alias.

darthtux 08-19-2003 10:51 PM

You will until you log out and back in. Then it will work on all of your consoles

Or you could just get out of everything except your login console, do a source .bash_profile and then it will work on all child consoles.

lfur 08-21-2003 01:03 PM

Quote:

if i open a new terminal i still have to do source .bash_profile
if you mean xterm (or somethink alike) with terminal, you can use:
xterm -ls


All times are GMT -5. The time now is 12:54 PM.