]> git.sev.monster Git - dotfiles.git/blobdiff - etc/zsh/.zprofile
zsh: clean up echo usage
[dotfiles.git] / etc / zsh / .zprofile
index 58ebfa1fba81381e8fae2813792eeb14f644244d..5ead916d8ec93559a6fda4947c36f1fea262f19b 100644 (file)
@@ -71,7 +71,7 @@ if [[ ! -v DBUS_SESSION_BUS_ADDRESS && -v commands[dbus-launch] ]] {
 #       clunky (e.g. asking for password twice) to make it worth it.
 function _gpg_socketpath {
     # dirs are percent-encoded: https://stackoverflow.com/a/64312099
-    echo ${1//(#b)%([[:xdigit:]](#c2))/${(#):-0x$match[1]}}
+    echo -E - ${1//(#b)%([[:xdigit:]](#c2))/${(#):-0x$match[1]}}
 }
 if [[ ! -v _sev_setup_gpg_forward && -v commands[gpg] ]] {
     # XXX: assuming /tmp exists and is writable on destination
@@ -193,7 +193,7 @@ if [[ ! -v _sev_setup_ssh ]] {
             } else {
                 eval $(eval $=c) >/dev/null 2>&1
             }
-            echo -n $SSH_AUTH_SOCK$'\0'$SSH_AGENT_PID >!$e
+            echo -En - $SSH_AUTH_SOCK$'\0'$SSH_AGENT_PID >!$e
             unset c
         fi
         unset okc e sock pid
This page took 0.032731 seconds and 4 git commands to generate.