9

append to an existing alias

view full story
linux-howto

http://www.linuxquestions.org – I didn't think this would be so hard to find an answer to, but I'm coming up with nothing in my searches. I simply want to append a flag onto whatever the existing alias for a command is. For example Code: $ alias ls alias ls='ls -d' $ alias ls="ls -l" $ alias ls alias ls='ls -l' What would like is for the second alias to simply append to the first, so the last output would be Code: alias ls='ls -d -l' Is there any way to accomplish this? Some special flag in the alias command or some special manipulation of quotes in the call, so that it keeps the existing alias and simply (HowTos)