Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'alias for ssh to change title?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
alias for ssh to change title?
Authored by: to0l25 on Oct 18, '01 08:57:55AM
that is definitly the only one that works for me, thanx alot.
unfortunately i often work via ssh (with ssh -l username hostname) on other hosts, so it would be useful to have the remote host in the title bar. i tried hard but i didn't get it right for my purposes.
i do it this way in the moment, but i am not really satisfied with it, 'cause it's not flexible enough: i need to have an alias for every host to connect:

alias ssh_host 'settitle "ssh on host.tld"; ssh -l user host.tld; settitle $t:t/$cwd:t'

this will set the title to "ssh on host.tld", but i do not have the path i am working in. i also changed the first line and delete ${HOST} (if i didn't do that the output for my ssh-alias was a bit confusing). maybe someone is able and willing to help me out. thanx in advance, to0l25

[ Reply to This | # ]