From f2e2ddd776b25be49408015b79c397add569ed9d Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 7 Jul 2020 09:38:01 +0100 Subject: [PATCH] When selecting ip, auto select if 1 --- bin/.bin/project-management/project-hosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/.bin/project-management/project-hosts b/bin/.bin/project-management/project-hosts index 1c685d17..b37bf233 100755 --- a/bin/.bin/project-management/project-hosts +++ b/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