Add DietPi commands to zsh Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
User avatar
Mossy
Posts: 4
Joined: Sat May 01, 2021 6:04 pm

Add DietPi commands to zsh

Post by Mossy »

Hello,
I have installed zsh on my installation of DietPi. However now I cannot figure out how to add the various DietPi commands to my zsh shell. The whereis command does not give me a path to add to my PATH.

Thank you for your time and help.
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Add DietPi commands to zsh

Post by Joulinar »

DietPi scripts are located at

Code: Select all

/boot/dietpi
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Mossy
Posts: 4
Joined: Sat May 01, 2021 6:04 pm

Re: Add DietPi commands to zsh

Post by Mossy »

Joulinar wrote: Sat May 01, 2021 6:11 pm DietPi scripts are located at

Code: Select all

/boot/dietpi
Thank you. That seems to work, but when I use sudo I get command not found.
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Add DietPi commands to zsh

Post by Joulinar »

probably the path to be added to root user as well?

At least on bash DietPi is loading the alias from /etc/bashrc.d/dietpi.bash
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Mossy
Posts: 4
Joined: Sat May 01, 2021 6:04 pm

Re: Add DietPi commands to zsh

Post by Mossy »

Okay. I got it. I had to modify the path in the /etc/sudoers file.

For anyone else needing this information, be sure to use sudo visudo /etc/sudoers to modify the file, you will find the default path right on the first screen.
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Add DietPi commands to zsh

Post by Joulinar »

thx for sharing
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Mossy
Posts: 4
Joined: Sat May 01, 2021 6:04 pm

Re: Add DietPi commands to zsh

Post by Mossy »

Joulinar wrote: Sun May 02, 2021 4:08 pm thx for sharing
No problem. Thanks for your assistance.
Post Reply