When selecting ip, auto select if 1
This commit is contained in:
parent
055b266148
commit
f8249886c3
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ function getip(){
|
|||
index="$current/index.yaml"
|
||||
case "$1" in
|
||||
--fzf)
|
||||
ip=$( listhosts | fzf --no-preview | cut -d',' -f1)
|
||||
ip=$( listhosts | fzf -1 --no-preview | cut -d',' -f1)
|
||||
;;
|
||||
--dmenu)
|
||||
ip=$( listhosts | dmenu | cut -d',' -f1)
|
||||
|
@ -77,7 +77,7 @@ function getip(){
|
|||
echo "$ip" | xclip -selection clipboard
|
||||
;;
|
||||
*)
|
||||
ip=$( listhosts | fzf --no-preview | cut -d',' -f1)
|
||||
ip=$( listhosts | fzf -1 --no-preview | cut -d',' -f1)
|
||||
;;
|
||||
esac
|
||||
echo $ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue