I commented on this line in .bashrc:
# [ -z "$PS1" ] && return
and now the alias is being read, but I still canβt execute it ...: /
We can set the server if an alias was specified:
$ ssh server "cd /tmp && alias backup_tb" alias backup_tb='pg_dump -U david tb > tb.sql'
But it does not expand:
$ ssh server "cd /tmp && backup_tb" bash: backup_tb: command not found
Any ideas?
bash ssh
davidhq
source share