mirror of
https://github.com/cole-maxwell1/dotfiles.git
synced 2026-10-27 16:32:49 -05:00
feat(zsh): add Bitwarden SSH agent support
Export SSH_AUTH_SOCK pointing to the Bitwarden SSH agent socket (~/.bitwarden-ssh-agent.sock) on macOS, guarded by checks that the Bitwarden application is installed and the socket file exists, so unmodified environments are unaffected. Also correct two indentation inconsistencies in the .local/bin PATH export and the lsd alias else-branch.
This commit is contained in:
@@ -53,6 +53,14 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
|
|||||||
if [[ -d $HOME/Library/Python/3.8/bin && ":$PATH:" != *":$HOME/Library/Python/3.8/bin:"* ]]; then
|
if [[ -d $HOME/Library/Python/3.8/bin && ":$PATH:" != *":$HOME/Library/Python/3.8/bin:"* ]]; then
|
||||||
export PATH=$PATH:$HOME/Library/Python/3.8/bin
|
export PATH=$PATH:$HOME/Library/Python/3.8/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Bitwarden SSH agent (only if the application is installed and the socket file exists)
|
||||||
|
local bw_app="/Applications/Bitwarden.app"
|
||||||
|
local bw_sock="$HOME/.bitwarden-ssh-agent.sock"
|
||||||
|
|
||||||
|
if [[ -d "$bw_app" && -S "$bw_sock" ]]; then
|
||||||
|
export SSH_AUTH_SOCK="$bw_sock"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add goland $PATH if installed and not already in $PATH
|
# Add goland $PATH if installed and not already in $PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user