Skip to content

Commit 87994a8

Browse files
committed
Automatically select the only match if query is found
1 parent 1bb977e commit 87994a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lazy-connect.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ function lazy-connect() {
133133

134134
secret=$(cat $_lazy_connect_config_dir/secret)
135135
vpn_name=$(cat $_lazy_connect_config_dir/vpns \
136-
| fzf --height=10 --ansi --reverse --query "$*")
136+
| fzf --height=10 --ansi --reverse --query "$*" --select-1)
137137
[ -z "$vpn_name" ] || _lazy_connect "$vpn_name" "$secret"
138138
}

0 commit comments

Comments
 (0)