Skip to main content
2 votes
Accepted

OhMyZsh causes cd to push to dirs stack. How can I revert it to original state?

zsh offers an option called AUTO_PUSHD which is described in man zshoptions as follows: Make cd push the old directory onto the directory stack. Probably oh-my-zsh enables this option. So it should ...
mpy's user avatar
  • 27.9k
1 vote
Accepted

Can't use terminal, I keep getting "zsh: command not found: npm" even after an OS re-install

First of all, install homebrew on you mac using the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Now, you can use ...
Amartya Sinha's user avatar
1 vote

Iterating over keys (or k/v pairs) in zsh associative array?

In addition to the following accepted answer, for key val in "${(@kv)assoc_array}"; do echo "$key -> $val" done if you also want to sort the result by key in ascending ...
testfailed's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible