From: sev Date: Sat, 23 Mar 2024 06:30:52 +0000 (-0500) Subject: zprofile: print OKC if using okc-agent X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/db6ae8c1d7c2ebda8399b832efca4292d511ad4a zprofile: print OKC if using okc-agent --- diff --git a/etc/zsh/.zprofile b/etc/zsh/.zprofile index 5ead916..170f4de 100644 --- a/etc/zsh/.zprofile +++ b/etc/zsh/.zprofile @@ -188,6 +188,7 @@ if [[ ! -v _sev_setup_ssh ]] { # subshells can't be used to capture output and print. c='TMPDIR=$_sev_tmp ${okc}ssh-agent' if [[ -o interactive ]] { + [[ -n $okc ]] && echo -n 'OKC-' eval $(eval $=c) print -nP '%f' } else {