0

With zsh I can do this to delete all aliases:

% unalias $( alias + )

I am looking for the equivalent in bash.

1
  • 1
    Just like zsh: unalias -a Commented Jul 6, 2019 at 6:29

1 Answer 1

4
unalias -a

according to the man page.

3
  • or help unalias Commented Jul 6, 2019 at 6:26
  • 1
    Which is POSIX and works in bash, zsh and any POSIX shell. Commented Jul 6, 2019 at 10:47
  • better do \unalias -a for a case where unalias also alias-ed for something else :D Commented Jul 6, 2019 at 12:00

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.