You are not logged in.

#1 2022-02-22 10:06:33

icar
Member
Registered: 2020-07-31
Posts: 562

[Solved] community/starship: cannot make it work

I'm using Zsh and I want to use community/starship, so I followed the Readme's instructions to set it up. Specifically, I installed the package, installed a Nerd font (aur/nerd-fonts-fira-code) and added the eval command in my .zshrc. Unfortunately, the prompt is still the Zsh default one.

My ~/.zshrc: http://ix.io/3Qn4

Executing that eval command I can see it produces output. Also, running zsh --verbose I can see it gets evaluated on start up. I have also deleted ~/.cache/starship.

I have no idea what to do next. Thank you.

Last edited by icar (2022-02-22 19:52:40)

Offline

#2 2022-02-22 14:00:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: [Solved] community/starship: cannot make it work

What's the output of "starship init zsh" and what if you evaluate that stanza (from a running zsh)?
I could see interference from this block

# Autosuggestions
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

# Highlighting Fish-like
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# fzf tab
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh

setopt prompt_subst

autoload -U promptinit; promptinit

so try to comment that.

Offline

#3 2022-02-22 14:41:33

dogknowsnx
Guest

Re: [Solved] community/starship: cannot make it work

seth wrote:

What's the output of "starship init zsh" and what if you evaluate that stanza (from a running zsh)?
I could see interference from this block

# Autosuggestions
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

# Highlighting Fish-like
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# fzf tab
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh

setopt prompt_subst

autoload -U promptinit; promptinit

so try to comment that.

I assume that "promptinit" is the conflicting part. Don't comment the first if you still want autosuggestions...

#4 2022-02-22 14:54:38

icar
Member
Registered: 2020-07-31
Posts: 562

Re: [Solved] community/starship: cannot make it work

I commented both "setopt prompt_subst" and "autoload -U promptinit; promptinit" but nothing changed.

Offline

#5 2022-02-22 15:07:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: [Solved] community/starship: cannot make it work

And the other source's in the block?
(In case that's not clear: we're trying to get rid of the suspicious stuff to establish a working base, then narrow down the conflict from there and then figure how to resolve it)

Offline

#6 2022-02-22 15:33:15

dogknowsnx
Guest

Re: [Solved] community/starship: cannot make it work

^I agree, also what's inside

~/.config/bash-palette.sh

?

#7 2022-02-22 19:51:06

icar
Member
Registered: 2020-07-31
Posts: 562

Re: [Solved] community/starship: cannot make it work

Alright, checking "zsh -x" one can see there are GRML commands from /etc/zsh/zshrc. Then, I checked which package provided that and apparently I had installed "grml-zsh-config". It apparently interferes with starship but not with spaceship-prompt (which I had installed and I used for so many time), so I had never noticed during all this time.

I think this is a packaging issue, then, as grml-zsh-config should conflict with starship.

EDIT:

[2020-11-17T12:32:54+0100] [ALPM] installed grml-zsh-config (0.17.4-1)

Last edited by icar (2022-02-22 19:55:09)

Offline

Board footer

Powered by FluxBB