mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-05 20:53:38 -08:00
add rofissh script
This commit is contained in:
13
scripts/rofi/rofissh.sh
Executable file
13
scripts/rofi/rofissh.sh
Executable 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}'
|
||||||
Reference in New Issue
Block a user