You are not logged in.
Hi,
I installed zsh and created a sample .zshrc using the first run utility. I also installed zim from aur.
When running commands via sudo I get a command not found error.
% sudo zimfw install
[sudo] password for clarg:
sudo: zimfw: command not found
But the commands work fine without sudo.
Offline
Please post the full content of ~/.zshrc and also the output of
type zimfw
sudo -l
echo "$PATH"
sudo echo "$PATH"
What was the actual AUR package that was installed? There is no zim package so do you actually mean zsh-zim-git?
godisnowhere
Offline
Thank you,
here is the output:
% cat ~/.zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=100000
setopt autocd beep extendedglob nomatch
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/clarg/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
~
% zimfw install
x powerlevel10k: Error creating /usr/lib/zim/modules/powerlevel10k
mkdir: cannot create directory ‘/usr/lib/zim/modules/powerlevel10k’: Permission denied
Done with install. Restart your terminal for changes to take effect.
x /home/clarg/.zimrc:1:powerlevel10k: Not installed. Run zimfw install to install.
Failed to source /home/clarg/.zimrc
~
1 % sudo -l
[sudo] password for clarg:
User clarg may run the following commands on chakotay:
(ALL) ALL
~ took 3s
% echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
~
% sudo echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
~
% sudo zimfw install
sudo: zimfw: command not found
~
1 %
Yes, the package was zsh-zim-git
Last edited by Snypa (2022-01-27 07:28:59)
Offline
You're missing "type zimfw", but https://github.com/zimfw/zimfw/blob/4fe … w.zsh#L725 says it's a shell function and you cannot and should not (have to) sudo that.
What's your plan here? What are you trying to do and why?
Edit: ah.
x powerlevel10k: Error creating /usr/lib/zim/modules/powerlevel10k
mkdir: cannot create directory ‘/usr/lib/zim/modules/powerlevel10k’: Permission denied
You'll require a root shell w/ zimfw sourced for those kinds of shenanigans. Not "sudo something", but "sudo -i" and there "something"
Last edited by seth (2022-01-27 07:53:43)
Offline
Mod nate: moving to AUR Issues
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline