I want to add the following as a permanent alias
alias ffox=/usr/local/firefox/firefox
Possibly
alias ffox=/usr/local/firefox/firefox &
In BASH. But I dont know which file are these kept in. Thanks.
Printable View
I want to add the following as a permanent alias
alias ffox=/usr/local/firefox/firefox
Possibly
alias ffox=/usr/local/firefox/firefox &
In BASH. But I dont know which file are these kept in. Thanks.
You can add it to your ~/.bashrc or ~/.bash_profile. Just add the whole alias line as these files are executed (as bash scripts) on login. 8)
Funny, I've seen these instructions before, but I can't find a .bashrc or .bash_profile file in my home directory or anywhere else on my system. Creating a blank one and adding the instructions doesn't do anything. I wonder if those files are kept somewhere else in Slackware?
try adding the alias to /etc/profile
that's the file that is sourced by bash whenever *anyone* logs in...
It's in your home directory (I'm using slackware) It is one of those files prefixed by a "." so they are "hidden"Quote:
Originally Posted by paulcox
Post your ~/.bashrc so we can take a look at it. Maybe there's a typo.