7 lines
228 B
Bash
Executable file
7 lines
228 B
Bash
Executable file
#!/bin/sh
|
|
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'"
|