When selecting ip, auto select if 1

master
Jonathan Hodgson 4 years ago
parent 055b266148
commit f8249886c3
  1. 4
      bin/.bin/project-management/project-hosts

@ -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…
Cancel
Save