commit 08896428f4b524d7dde06da61bc345e6520cdccc parent 1e5bcdd012260fefaa73ed480e258364c8f09f58 Author: Daniel Moch <daniel@danielmoch.com> Date: Mon, 23 Sep 2019 06:37:59 -0400 shrc: ssh function keeps window titles correct Diffstat:
M | .shrc | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.shrc b/.shrc @@ -32,6 +32,10 @@ __ps1() { PS1='$(__ps1)\$ ' export PS1 +ssh() { + $(which ssh) "$@" + printf "\033]0;$LOGNAME@$HOSTNAME\007" +} num() { pr -tn "$1" | $PAGER }