[Solved] Permanent Alias with Debian

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[Solved] Permanent Alias with Debian

Postby Laurentide on Fri Feb 04, 2011 6:36 pm

I have created permanent aliases in Ubuntu, and followed this thread in the newbie forum to a T: http://forums.linuxmint.com/viewtopic.php?f=90&t=60744&p=347502&hilit=alias#p347502

All the same, my aliases in LMDE are not permanent. I've used ubuntu extensively, but I'm new to debian. What am I doing wrong?
Last edited by Laurentide on Sun Feb 06, 2011 1:52 pm, edited 1 time in total.
Laurentide
Level 1
Level 1
 
Posts: 6
Joined: Mon Jan 31, 2011 3:27 am

Linux Mint is funded by ads and donations.
 

Re: Permanent Alias with Debian

Postby Habitual on Fri Feb 04, 2011 6:45 pm

Post the output of:

Code: Select all
cat ~/.bashrc

Please.

You can alternatively use
Code: Select all
gedit ~/.bashrc

to get it all on the clipboard.

Don't forget to use the "Code" button in your post!
(Highlight your ~/.bashrc and click the Code Button.

Thanks.
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2147
Joined: Sun Nov 21, 2010 8:31 pm
Location: Undecided

Re: Permanent Alias with Debian

Postby sgosnell on Sat Feb 05, 2011 3:06 am

LMDE uses .bashrc just fine. If you have the proper aliases in your .bashrc, they should be permanent, being sourced every time you open a terminal. You can re-source it without closing the terminal with "source .bashrc", if you don't want to go to the trouble of closing and reopening it after changes. If the .bashrc isn't being honored, you have a problem somewhere. As Habitual said, we would need to see your .bashrc to see what aliases you should be getting. I have a fairly long list of aliases, and they all work every time.
Asus eee-pc 900 w/ 32GB SSD.
sgosnell
Level 5
Level 5
 
Posts: 686
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

Re: [Solved] Permanent Alias with Debian

Postby Laurentide on Sun Feb 06, 2011 1:54 pm

Indeed, you both are right.

There was some wacky code in the beginning of my .bashrc that definitely didn't belong. I would be posting it, but I deleted the code and rebooted before I saved anything.

Thank you for the confirmation as to the root of my problem!
Laurentide
Level 1
Level 1
 
Posts: 6
Joined: Mon Jan 31, 2011 3:27 am

Re: [Solved] Permanent Alias with Debian

Postby sgosnell on Sun Feb 06, 2011 10:27 pm

There is really no need to reboot after editing .bashrc. It is reread every time a terminal is opened, and if you don't want to close and reopen the terminal you can run "source .bashrc" and it will be reread and sourced. It's only a local file that only affects the current user in a terminal.
Asus eee-pc 900 w/ 32GB SSD.
sgosnell
Level 5
Level 5
 
Posts: 686
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

Re: [Solved] Permanent Alias with Debian

Postby Laurentide on Tue Feb 08, 2011 2:07 am

sgosnell,

Thanks for the info! :D
Laurentide
Level 1
Level 1
 
Posts: 6
Joined: Mon Jan 31, 2011 3:27 am


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 3 guests