[Solved] Permanent Alias with Debian

Archived topics about LMDE 1
Forum rules
Laurentide
Level 1
Level 1
Posts: 6
Joined: Mon Jan 31, 2011 3:27 am

[Solved] Permanent Alias with Debian

Postby Laurentide » 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.

User avatar
Habitual
Level 12
Level 12
Posts: 4326
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio
Contact:

Re: Permanent Alias with Debian

Postby Habitual » 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.
Image

sgosnell
Level 5
Level 5
Posts: 684
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

Re: Permanent Alias with Debian

Postby sgosnell » 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.

Laurentide
Level 1
Level 1
Posts: 6
Joined: Mon Jan 31, 2011 3:27 am

Re: [Solved] Permanent Alias with Debian

Postby Laurentide » 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!

sgosnell
Level 5
Level 5
Posts: 684
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

Re: [Solved] Permanent Alias with Debian

Postby sgosnell » 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.

Laurentide
Level 1
Level 1
Posts: 6
Joined: Mon Jan 31, 2011 3:27 am

Re: [Solved] Permanent Alias with Debian

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

sgosnell,

Thanks for the info! :D


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 2 guests