nsbin/myssh.sh

18 lines
391 B
Bash
Raw Normal View History

2020-01-19 09:49:27 +00:00
#!/bin/sh
# SSH for people who did not sleep long enough
# Changes background colour to red for remote and resets to LightYellow2 after
# the session is finished
#
2020-01-19 10:08:09 +00:00
# Inspiration by Stefan Baur
2020-01-19 09:49:27 +00:00
# Coded by Nico Schottelius, 2020-01-19
#
# Copying: GPLv3
printf '\033]10;black\007'
printf '\033]11;red\007'
echo ''
ssh "$@"
printf '\033]11;LightYellow2\007'
printf '\033]10;black\007'
echo ''