Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Ok.
I have many productive aliases set for myself, but I very frequently use `screen`. The only problem is, my aliases don't stick around when I use screen, they revert to the defaults.
As a matter of fact, I can't even find where those defaults are.
I looked (obivously) in my own .bashrc, and /etc/bashrc, and checked other bash files but they're not there!
Basically, I have ll definated as ls -laF instead of just ls -l among other things.
So why does screen reset it's definition? (And where in the hell are those normal defaults? [rm = rm -i, cp = cp -i, mv = mv -i, ll = ls -l, etc.])
Try looking in /etc/profile.
I have never had any problems with screen screwing up my aliases though. Do you define them in your .bashrc? If so, is .bashrc included in .bash_profile? If not you can make .bash_profile call .bashrc so .bashrc always will be parsed. Include this in your .bash_profile:
New problem, now the aliases aren't loading whenever I'm NOT in screen.
Obviously, logging in over SSH is a login shell, so why aren't my aliases being defined?
Everything else in the .bashrc is executed properly.
May I ~bump~ this? It's been 3 weeks, and I'd like to figure this out, but I don't understand why it's not alias'ing properly.
[edit]
As it turns out, there is unalias ls and unalias ll lines in my .bash_profile... and I swear to god I didn't put them in there.
Must have been my friend (root) toying with me .
Thanks everyone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.