add rofissh script

This commit is contained in:
ksyasuda 2021-10-30 12:51:37 -07:00
parent a521b036ae
commit 0cd2c5962a

13
scripts/rofi/rofissh.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
HOSTS=(
"DEPOT02 - dc1lxsdepot02.westlakefinancial.com"
)
CHOICE=$(printf '%s\n' "${HOSTS[@]}" | rofi -dmenu -i -l 10)
echo $CHOICE
# print hostname
printf "%s\n" "${HOSTS[@]}" | awk '{print $NF}'