In bash you can expand an alias you type. For example if I have an alias
cmd="cd ~/user", typing in
cmd and then hitting Ctrl+Alt+e would change it to
cd ~/user. Is there a way to do this with fish?
In fish the
alias command just creates a trivial function. For example,
alias cmd 'cd ~/user'
Is simply shorthand for
function cmd cd ~/user end
Because it's a function in fish you can't expand the body in the command line as you type the alias. For your situation I recommend an abbreviation; e.g.,
abbr cmd 'cd ~/user'.