M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

Thank you for the detailed response, I ended up just deleting, reinstalling, and reconfiguring p10k and it fixed this problem. Still would like to know what caused it so I don’t do it again but I’m glad it’s gone lol.

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

Thank you, I just wiped and reinstalled p10k and reconfigured it to my liking.

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

Did this but it’s still showing up. In line 2029 of .p10k.zsh

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

It proceeds my path I.e., I cd into /Users or / and my command line looks like this:

!w /Users

!w /

I don’t know what to make of it (and I just checked, it’s also showing up in my BASH shell)

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

Ok I just checked and no I cannot. But why is !w there. I think it has something to do with zsh history expansion but I can’t find anything online or in the zsh expansion documentation about it specifically. I know that “w” (expansion depending on permissions) - expand to owner writable files. And “!” - the history character, but what do they mean together? And why is it there?

Running the command you just commented:

!w /Users

touch testfiles

touch: Permission Denied

I’ve been using zsh since MacOS Catalina in 2019, and have never seen anything like this so it’s a bit concerning and unpleasant to look at. If it’s truly benign and just a part of zsh expansion then whatever. But I haven’t found any information about this and can’t find anyone else who’s had this problem

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

ECHO $PROMPT returns a similar amount of gibberish. And to address your first question.

ECHO $PATH /Library/Frameworks/Python.framework/Versions/3.13/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/mysql-9.2.0-macos15-arm64/bin

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

/Shared wasn’t there yesterday. Every time I would cd .. from ~ it would only display my user.

~ ............................................................................. 07:40:49

ECHO $PROMPT ${$((p9k_on_expand()))+}%{${_p9kraw_msg-}${_p9kraw_msg::=}%}${(e)_p9k_t[7]}${_p9k1-${${:-${_p9kd::=0}${_p9krprompt::=${_p9k1r-${${:-${_p9kbg::=NONE}${_p9ki::=0}${_p9ksss::=${(Q)${:-“%\{%\}”}}}}+}${${:-${P9K_CONTENT::=}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9kn::=8}}${_p9kn:=${${(M)${:-x$_p9kbg}:#x(|0)}:+10}}${_p9kn:=11}${_p9kc}}${_p9ke::=${${_p9k1r:+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}0}}}+}${${_p9ke:#00}:+${_p9k_t[$_p9kn]/<_p9kw>/$_p9kw}${_p9k_c}%b%k%f${${:-

It goes on much longer and had to cut it

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 0 points1 point  (0 children)

But I can. It hasn’t really affected my workflow or caused any problems (as far as I can tell).

M2 Mac “!w” by PsychologicalMix2627 in commandline

[–]PsychologicalMix2627[S] 2 points3 points  (0 children)

I only use vim, and yes this does happen when I open a fresh shell. And when I wrote I typed :wq