Skip to content
Snippets Groups Projects
44-kde-plasma-ssh-askpass.zsh 391 B
Newer Older
Nigel Kukard's avatar
Nigel Kukard committed
# Use ksshaskpass if it exists and we're using the plasma desktop
if [[ "$DESKTOP_SESSION" =~ "plasma" ]]
Nigel Kukard's avatar
Nigel Kukard committed
then
	if [ -x /usr/bin/ksshaskpass ]
	then
		# Use KDE askpass
		export SSH_ASKPASS=/usr/bin/ksshaskpass
Nigel Kukard's avatar
Nigel Kukard committed
		echo "[awit-zsh-superawesome] Using ksshaskpass"
Nigel Kukard's avatar
Nigel Kukard committed
	else
Nigel Kukard's avatar
Nigel Kukard committed
		echo "[awit-zsh-superawesome] NOTICE: You're using the plasma desktop, but you don't have ksshaskpass installed?"
Nigel Kukard's avatar
Nigel Kukard committed
	fi
fi