Given I have
alias gs='git status'
in one of my bash initialization files (e.g. .bash_profile), and that I execute the command
from my prompt, how can I access the value of the command line 'as executed' (in this case
) and not as entered (in this case
which is what it shows in the history file).
The reason I'm interested is because I want to be able to share portions of my history file with others who won't know about the particular aliases I have setup on my system. I'm trying to figure out a way to access the value of the last command line as executed, not entered. Thanks!