Skip to content

Commit 81ae7b2

Browse files
author
Dinesh Kumar
committed
Updating env variable with convention, and added instruction to readme
1 parent 2b12c75 commit 81ae7b2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ lazy-connect - Shell function to fuzzy search an IPSec VPN by name
4141
-h - Show this help
4242
```
4343

44+
## Configuration
45+
46+
* The connection to VPN could be made with filling password automatically. To enable autofill set `LAZY_CONNECT_AUTOFILL` variable to true.
47+
48+
```
49+
export LAZY_CONNECT_AUTOFILL="true"
50+
```
51+
When disabled, the password is copied to clipboard, and you can use it manually when it prompts for password.
52+
4453
### YubiKey Support
4554

4655
#### Prerequisite

lazy-connect.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function _lazy_connect() {
105105
esac
106106
fi
107107

108-
[[ "$AUTOFILL" -eq "true" ]] && echo -n "$password" | pbcopy
108+
[[ "$LAZY_CONNECT_AUTOFILL" -eq "true" ]] && echo -n "$password" | pbcopy
109109

110110
osascript <<EOF
111111
on connectVpn(vpnName, password, autofill)
@@ -130,7 +130,7 @@ function _lazy_connect() {
130130
end tell
131131
end connectVpn
132132
133-
connectVpn("$vpn_name", "$password", "$AUTOFILL")
133+
connectVpn("$vpn_name", "$password", "$LAZY_CONNECT_AUTOFILL")
134134
EOF
135135
}
136136

0 commit comments

Comments
 (0)