File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ lazy-connect - Shell function to fuzzy search an IPSec VPN by name
41
41
-h - Show this help
42
42
```
43
43
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
+
44
53
### YubiKey Support
45
54
46
55
#### Prerequisite
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ function _lazy_connect() {
105
105
esac
106
106
fi
107
107
108
- [[ " $AUTOFILL " -eq " true" ]] && echo -n " $password " | pbcopy
108
+ [[ " $LAZY_CONNECT_AUTOFILL " -eq " true" ]] && echo -n " $password " | pbcopy
109
109
110
110
osascript << EOF
111
111
on connectVpn(vpnName, password, autofill)
@@ -130,7 +130,7 @@ function _lazy_connect() {
130
130
end tell
131
131
end connectVpn
132
132
133
- connectVpn("$vpn_name ", "$password ", "$AUTOFILL ")
133
+ connectVpn("$vpn_name ", "$password ", "$LAZY_CONNECT_AUTOFILL ")
134
134
EOF
135
135
}
136
136
You can’t perform that action at this time.
0 commit comments