Abra o terminal.
- Ir para
/home/your-linux-username - Digite isto:
gedit .bashrc -
No final de
.bashrc, cole isto:./path/to/downloaded/file/z.sh function precmd () { z --add "$(pwd -P)" } -
Você terminou.
Agora, feche, reinicie seu terminal, ative alguns comandos cd, como: cd / home / id
então z dir-name funcionará.