Does Slack have an equivalent to .bashrc?
Hi,
Is there an equivalent to .bashrc and .bash_profile for setting up aliases to long commands in Slackware 10.2? I'm used to this possibllity in FC4! thanks |
You have to create them yourself.
|
Ok so I created the file .bashrc like so:
alias g+++="g++ -ansi -pedantic -Wall" and then logged out and logged back in and the shell still doesn't recognize g+++. I'm still a newbie!!!! |
g+++ or g++
|
Won't recognize g+++, g++ is installed and good to go!
|
You don't have to logout and login to test your .bashrc,
simply do : Code:
source ~/.bashrc Your alias works perfectly here, make sur .bashrc is in the root of your home directory, also type : " alias " to see your loaded aliases |
I tried source ~/.bashrc and then the alias worked.
thanks |
Ok, I see
Try create ~/.bash_profile with the content : Code:
if [ -f $HOME/.bashrc ]; then |
All times are GMT -5. The time now is 02:30 PM. |