RE: Alias - a command that saves you time

avatar

You are viewing a single comment's thread:

delete an alias
unalias name="value"

Minor note, but the unalias command (at least in Bash) just needs the alias you want to remove and not what it's aliased too. So for instance unalias ls would work whereas this is what happens if you try to add the ="value" part

$ unalias ls="ls --color=auto"
bash: unalias: ls=ls --color=auto: not found



If you want to be really fancy you can just remove all aliases with unalias -a.


There's definitely a lot of neat features in all the shells out there, so it's great to see some posts like this talking about some of them



0
0
0.000
1 comments
avatar

To me what I find charming is that someone replicates this type of publications, thank you very much, you are absolutely right, the reason for my imprecision is that I usually remove few aliases, but I should have told it in a more complete way. Noted.

Alias is an infinite command, which I appreciate very much as it saves you a lot of time, and creates good times, who has not laughed with a friend who tells you; I am unlearning linux thanks to alias.

This blog goes in the direction of Debian and derivative users, but I wanted to remember also thanks to you, how to make our permanent aliases for shells other than bash with our favorite editor.

ZSH - ~/.zshrc
Fish - ~/.config/fish/config.fish

0
0
0.000