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

Char Symbol dont't change #1334

Open
carlosroltjr opened this issue Feb 23, 2023 · 7 comments
Open

Char Symbol dont't change #1334

carlosroltjr opened this issue Feb 23, 2023 · 7 comments
Labels
bug Bug related to code base, behavior, displaying, etc.

Comments

@carlosroltjr
Copy link

carlosroltjr commented Feb 23, 2023

The problem

I was setting up the user's configuration and I noticed that the SPACESHIP_CHAR_SYMBOL don't change when I set a new value for It

The default char ➜ still remains:
Captura de tela de 2023-02-23 17-30-02

Relevant Zsh configuration

export ZSH="/home/carlos.junior/.oh-my-zsh"

SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="true"
ZSH_THEME="spaceship"

plugins=(git)

source $ZSH/oh-my-zsh.sh

SPACESHIP_PROMPT_ORDER=(
  user          # Username section
  host          # Hostname section
  dir           # Current directory section
  git           # Git section (git_branch + git_status)
  exec_time     # Execution time
  line_sep      # Line break
  jobs          # Background jobs indicator
  exit_code     # Exit code section
  char          # Prompt character
)

SPACESHIP_CHAR_SYMBOL="$"
SPACESHIP_CHAR_PREFIX="└─"
SPACESHIP_CHAR_SUFFIX=" "

SPACESHIP_USER_SHOW="always"
SPACESHIP_USER_PREFIX="┌──("
SPACESHIP_USER_SUFFIX=""
SPACESHIP_USER_COLOR="green"

SPACESHIP_HOST_SHOW="always"
SPACESHIP_HOST_PREFIX="%{$fg[green]%}@"
SPACESHIP_HOST_SUFFIX="%{$fg[gray]%}:"
SPACESHIP_HOST_COLOR="green"

SPACESHIP_DIR_TRUNC_REPO=false
SPACESHIP_DIR_PREFIX=""
SPACESHIP_DIR_SUFFIX=") "
SPACESHIP_DIR_COLOR="blue"

### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
    print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
    command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
    command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
        print -P "%F{33} %F{34}Installation successful.%f%b" || \
        print -P "%F{160} The clone has failed.%f%b"
fi

source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
### End of Zinit's installer chunk
zinit light zdharma/fast-syntax-highlighting

What is version of Spaceship are you using?

v4.13.1

What is version of Zsh are you using?

5.8.1

What operation system are you running?

Ubuntu 22.04.2 LTS jammy

Do you use any Zsh framework or plugin manager?

zinit

Which terminal emulator do you use?

Terminator

Additional information

No response

@carlosroltjr carlosroltjr added the bug Bug related to code base, behavior, displaying, etc. label Feb 23, 2023
@SkyHeads
Copy link

any solution? im have same problem

@guhenrique007
Copy link

same here, I made a workaround replacing the icon in ~/.oh-my-zsh/custom/themes/spaceship-prompt/sections/char.zsh

any solution? im have same problem

@cxa
Copy link

cxa commented Apr 9, 2023

My workaround is: set SPACESHIP_CHAR_SYMBOL before loading. I'm using antigen, this is my working config:

SPACESHIP_CHAR_SYMBOL='%6{🌿🦥🍃%} '
antigen apply

@henc0
Copy link

henc0 commented Jun 28, 2023

any solution? im have same problem
have the same problem fix with this "change CHAR to PROMPT

SPACESHIP_PROMPT_SYMBOL=

@Nannk
Copy link

Nannk commented Jul 20, 2023

My workaround is: set SPACESHIP_CHAR_SYMBOL before loading. I'm using antigen, this is my working config:

SPACESHIP_CHAR_SYMBOL='%6{🌿🦥🍃%} '
antigen apply

Can confirm this solution does help.
in my case:

SPACESHIP_PROMPT_SYMBOL=">>"
SPACESHIP_CHAR_SYMBOL=">>"
... 
prompt spaceship

@phocean
Copy link

phocean commented Jul 21, 2023

I am not using antigen, and I found no workaround so far.
Before or after source, or in the config file, nothing works.

@lucasmatsui
Copy link

lucasmatsui commented Aug 31, 2023

It's not a bug i think, you need create a custom spaceship.zsh file and put your config in it.

Follow this docs:

Use the first method with "touch", the other didn't work for me.

After, open this file that you create.
$ open ~/.spaceshiprc.zsh

and put your SPACESHIP_* configuration in it

reload your terminal and that's it.

For me, it worked. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug related to code base, behavior, displaying, etc.
Development

No branches or pull requests

8 participants