Commit 5f798a9

Eric Bower  ·  2026-06-09 00:20:51 -0400 EDT
parent 56997d4
chore: yash shell fixes
2 files changed,  +6, -2
+5, -1
 1@@ -35,11 +35,15 @@ if test -n "${ZMX_SESSION:-}"; then
 2   export YASH_PS1="[$ZMX_SESSION] ${YASH_PS1}"
 3 fi
 4 
 5-# if command -v zmx >/dev/null 2>&1; then
 6+# if command -v zmx > /dev/null 2>&1; then
 7 #   eval "$(zmx completions bash)"
 8 # fi
 9 
10 _update_direnv() {
11+  if ! command -v direnv > /dev/null 2>&1; then
12+    return
13+  fi
14+
15  eval "$(
16    direnv export json |
17    jq -r 'to_entries | .[] |
+1, -1
1@@ -29,7 +29,7 @@ Host = d.*
2     User erock
3     IdentityFile ~/.ssh/id_ed25519
4 
5-    RemoteCommand zmx attach %k
6+    RemoteCommand $HOME/.local/bin/zmx attach %k
7     RequestTTY yes
8     ControlPath ~/.ssh/cm-%r@%h:%p
9     ControlMaster auto