Hi,
when I use ssh to open an interactive shell on my machine, I can use all the aliases I normally would on that machine. But when I use ssh to run a single non-interactive command, the aliases don't work. How can I fix this?
Example:
Code:
# sshhome is an alias to ssh to my home machine
3$ sshhome
Last login: Thu Jan 8 11:01:44 2009 from *****
~$ alias testal
alias testal='echo aliases are A-OK'
~$ testal
aliases are A-OK
~$ exit
logout
Connection to ***** closed.
3$ sshhome "alias testal; testal"
alias testal='echo aliases are A-OK'
bash: testal: command not found
3$
Note that using the
alias command does correctly display the alias.