diff --git a/README.md b/README.md index 6686281..a826e6d 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,18 @@ brew install oath-toolkit fzf ## Install -``` -git clone https://github.com/arunvelsriram/lazy-connect.git ~/.lazy-connect -``` +### Using Homebrew ``` -# zsh users -echo "[ -f ~/.lazy-connect/lazy-connect.sh ] && source ~/.lazy-connect/lazy-connect.sh" >> ~/.zshrc -source ~/.zshrc +brew tap arunvelsriram/stable +brew install lazy-connect ``` +### Manual + ``` -# bash users -echo "[ -f ~/.lazy-connect/lazy-connect.sh ] && source ~/.lazy-connect/lazy-connect.sh" >> ~/.bashrc -source ~/.bashrc +git clone https://github.com/arunvelsriram/lazy-connect.git ~/.lazy-connect +sudo ln -s ~/.lazy-connect/lazy-connect /usr/local/bin/lazy-connect ``` ### Usage @@ -56,8 +54,8 @@ export LAZY_CONNECT_TOTP_QUERY= ### Note -* The secret key to generate TOTP is stored in Keychain on Mac under default `login` keychain. You may need to +- The secret key to generate TOTP is stored in Keychain on Mac under default `login` keychain. You may need to enter your login password to allow access to Keychain. -* You need to add your Termainal emulator app that invokes the function to `Security & Privacy -> Accessibility`. It is +- You need to add your Termainal emulator app that invokes the function to `Security & Privacy -> Accessibility`. It is necesssary because the script interacts with the UI. There are other ways via CLI to avoid UI interaction but they are all broken in OS X 10.12+.