Skip to content

Commit

Permalink
Change '1password.app' check from 'brew list' to 'mdfind'
Browse files Browse the repository at this point in the history
('brew list' is known to take a long time to run and potentially rely on an internet connection)
  • Loading branch information
lewxdev committed Jun 28, 2023
1 parent 5aec338 commit 5948e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export SSH_AUTH_SOCK=~/.1password/agent.sock
# or configured in the same way as other devices

# 1password
if brew list 1password &>/dev/null; then
if mdfind -name kMDItemFSName=="1Password.app" | grep . &>/dev/null; then
local OP_DIR=~/.1password
if ! [[ -d $OP_DIR ]]; then
mkdir $OP_DIR
Expand Down

0 comments on commit 5948e4c

Please sign in to comment.