Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The starship won't work if not commenting or deleting #Use manjaro zsh prompt portion in the .zshrc file. #5942

Closed
LuDreamst opened this issue Apr 27, 2024 · 2 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@LuDreamst
Copy link

Bug Report

The starship won't work if not commenting or deleting #Use manjaro zsh prompt portion in the .zshrc file.

Current Behavior

When just added eval "$(starship init zsh)", it didn't work and nothing changed.

Expected Behavior

When just added eval "$(starship init zsh)", it would work normally.

Additional context/Screenshots

image

Possible Solution

image

Environment

  • Starship version:
    starship 1.18.2
    branch:master
    commit_hash:
    build_time:2024-03-29 15:44:42 +00:00
    build_env:rustc 1.77.1 (7cf61ebde 2024-03-27),
  • Shell type:
    zsh
  • Shell version:
    zsh 5.9 (x86_64-pc-linux-gnu)
  • Terminal emulator: [e.g. iTerm, Hyper, Terminator]
    gnome-terminal
  • Operating system:
    Manjaro Linux x86_64 with a testing branch.

Relevant Shell Configuration

# Use powerline
USE_POWERLINE="true"
# Has weird character width
# Example:
#    is not a diamond
HAS_WIDECHARS="false"

# starship
eval "$(starship init zsh)"

# 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

# miniconda3
. /opt/miniconda3/etc/profile.d/conda.sh

Starship Configuration

# ~/.config/starship.toml

# left format
format = '$all'

# right format
right_format = """$cmd_duration"""
@LuDreamst LuDreamst added the 🐛 bug Something isn't working as expected. label Apr 27, 2024
@DerRockWolf
Copy link

Quiet new to starship, but I wouldn't consider this to be an actual bug. From my POV it's fairly obviously that you need to adjust your .zshrc to work together with starship.

@LuDreamst
Copy link
Author

Quiet new to starship, but I wouldn't consider this to be an actual bug. From my POV it's fairly obviously that you need to adjust your .zshrc to work together with starship.

I understand and agree with you in general. Actually, I just tried to share my problems and possible solutions while trying to fit one of templates as closely as possible, and hoped that would help somebody someday.🤣
Thanks for the comment.😚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants