« Return to Thread: Expanding aliases to full command before execution

Expanding aliases to full command before execution

by Justin-111 :: Rate this Message:

| View in Thread

Hi everyone,

In bash, is it possible to expand my aliases either before they are
executed or when they are stored in the history file?
For example, if I have:  alias ll='ls -l'  defined in my .bashrc, when I
execute "ll" from the command line, I'd like my history file to contain "ls
-l".  Is there any way to accomplish this?

Thanks,
Justin

--
Justin Randall

 « Return to Thread: Expanding aliases to full command before execution