Skip to content

Commit 42b09e3

Browse files
Merge pull request #3 from hmoniaga/master
Allow optional keyword query as argument
2 parents 58b0d2a + 87994a8 commit 42b09e3

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
@@ -173,6 +173,6 @@ function lazy-connect() {
173173

174174
secret=$(cat $_lazy_connect_config_dir/secret)
175175
vpn_name=$(cat $_lazy_connect_config_dir/vpns \
176-
| fzf --height=10 --ansi --reverse)
176+
| fzf --height=10 --ansi --reverse --query "$*" --select-1)
177177
[ -z "$vpn_name" ] || _lazy_connect "$vpn_name" "$secret"
178178
}

0 commit comments

Comments
 (0)