Chrysostomus / manjaro-zsh-config

Zsh configuration package for manjaro
MIT License
124 stars 52 forks source link

How zsh works in manjaro #39

Open talesam opened 1 year ago

talesam commented 1 year ago

I'm trying to understand how zsh works in manjaro and in the user's home there is only one .zshrc file with the following content:

# use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
   source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
   source /usr/share/zsh/manjaro-zsh-prompt
fi

I made a fork of this project and created a package for biglinux, which is derived from manjaro, but zsh didn't work only if the .p10k.zsh file is in the user's home. So I'm a little confused how it's working in manjaro, how do I fetch the zsh configuration that's in /usr/share/zsh/* ?

Chrysostomus commented 1 year ago

https://gitlab.manjaro.org/packages/community/manjaro-zsh-config/-/blob/master/PKGBUILD

This PKGBUILD should answer all the questions about the package. ~/.zshrc just points to the config files that under /usr/share/zsh. The lines that fetch the configuration are the ones that start with the word source.

talesam commented 1 year ago

Solved, my mistake, sorry. Why doesn't root get zsh?