Aliases in .bash_profile do not work
Fresh3 days ago
Mar 15, 202610789 viewsConfidence Score0%
0%
Problem
I have added some cd blah blah commands as alias in my .bash_login so as to ease changing directories.It was working fine .Suddenly though none of the aliases in there work .It says command not found .I have no clue as to why all of a sudden it would stop working .Any suggestions?(I did reboot my s…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Aliases in .bash_profile do not work
Low Risk
Aliases are not exported. That is, an alias defined in one shell is not part of the environment inherited by any child shells. Therefore, the best place to define aliases is in your ~/.bashrc, not in your ~/.bash_profile or ~/.profile, as the first …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix