From 0cd2c5962a237fcb29d965bad813e28cc27a0992 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 30 Oct 2021 12:51:37 -0700 Subject: [PATCH] add rofissh script --- scripts/rofi/rofissh.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/rofi/rofissh.sh diff --git a/scripts/rofi/rofissh.sh b/scripts/rofi/rofissh.sh new file mode 100755 index 0000000..b9b954e --- /dev/null +++ b/scripts/rofi/rofissh.sh @@ -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}'