Skip to content

Commit

Permalink
zsh: set SSH_ASKPASS
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Dec 13, 2024
1 parent b626e84 commit ba4da13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ declare -a brew_pkgs=(
python
rust
stow
theseal/ssh-askpass/ssh-askpass
wget
ykman
yubikey-personalization
Expand Down
8 changes: 7 additions & 1 deletion zsh/.zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CURRENT_TTY=$(tty)
export GPG_TTY=$CURRENT_TTY

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
LINUX_ASKPASS=$(which wayprompt-ssh-askpass)
export SSH_ASKPASS=$LINUX_ASKPASS

# Export env vars from systemd user units
# shellcheck disable=SC1090,SC1091
Expand All @@ -35,7 +37,8 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
###########
export ANDROID_HOME=$HOME/Android
export ANDROID_USER_HOME=$HOME/.android
export CAPACITOR_ANDROID_STUDIO_PATH=$(whereis android-studio)
ANDROID_STUDIO=$(which android-studio)
export CAPACITOR_ANDROID_STUDIO_PATH=$ANDROID_STUDIO
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Expand Down Expand Up @@ -103,4 +106,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
elif [[ "$OSTYPE" == "darwin"* ]]; then
LOCAL_BIN=$HOME/.local/bin
export PATH=$PATH:$LOCAL_BIN

MAC_ASKPASS=$(which ssh-askpass)
export SSH_ASKPASS=$MAC_ASKPASS
fi

0 comments on commit ba4da13

Please sign in to comment.