2016-12-09 21:52:34 +01:00
|
|
|
#!/bin/sh
|
2016-12-11 08:12:15 +01:00
|
|
|
if [ "$1" == 'root' ]; then
|
|
|
|
a=" (root)"
|
|
|
|
b="sudo "
|
|
|
|
fi
|
|
|
|
xterm -e "ssh $(cat ~/.ssh/config | grep '^Host ' | cut -d ' ' -f 2 | grep -v '*' | sort | $HOME/.config/i3/dmenu_cmd -p "SSH$a to ") -t '${b}bash --login'"
|