Any extra tips or tricks are welcome!
Yesterday I learned that set -x
enables trace for a bash, sh, or zsh script and prints the trace to the terminal.
Any extra tips or tricks are welcome!
Yesterday I learned that set -x
enables trace for a bash, sh, or zsh script and prints the trace to the terminal.
if you spend a lot of time in the shell, i like using the following for easier directory traversal:
z
for jumping to “frecent” directorieszsh-z
(a native zsh port ofz
)bd
for going back directoriesand some zsh settings which make
cd
silently act likepushd
/popd
:# autopushd : make cd act like pushd (alias doesn't work properly) # pushdminus : use -1 instead of +1 # pushdsilent : prevents printing stack on each cd # pushdtohome : `pushd` to ~/ # pushdignoredups : dont add duplicates to stack
I want to add
setopt autocd
, andhash -d name=/some/long/path/to/name
to create your own~name
shortcuts.woa, i didn’t even know about
hash -d name=/path
, neat!