Spaceship-prompt: Username & Host not showing

Created on 21 Jun 2017  路  9Comments  路  Source: denysdovhan/spaceship-prompt

term

I just pulled a fresh oh-my-zsh and the spaceship theme via npm. Many information are not showing up and I cannot figure out why :neutral_face:

I did not change any of the theme settings. It looks like this

# USER
SPACESHIP_USER_SHOW="${SPACESHIP_USER_SHOW:=true}"
SPACESHIP_USER_PREFIX="${SPACESHIP_USER_PREFIX:="with "}"
SPACESHIP_USER_SUFFIX="${SPACESHIP_USER_SUFFIX:="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}"
SPACESHIP_USER_COLOR="${SPACESHIP_USER_COLOR:="yellow"}"
SPACESHIP_USER_COLOR_ROOT="${SPACESHIP_USER_COLOR_ROOT:="red"}"

# HOST
SPACESHIP_HOST_SHOW="${SPACESHIP_HOST_SHOW:=true}"
SPACESHIP_HOST_PREFIX="${SPACESHIP_HOST_PREFIX:="at "}"
SPACESHIP_HOST_SUFFIX="${SPACESHIP_HOST_SUFFIX:="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}"
SPACESHIP_HOST_COLOR="${SPACESHIP_HOST_COLOR:="green"}"

Any ideas?

question

Most helpful comment

I made a PR for it and have it running on my machines. However it was said that @denysdovhan wants to implement it differently and thus i closed the pr. Is this open for help again? And if so, what do you want done differently then before?

All 9 comments

In spaceship-zsh-theme most of the sections are shown only when required. Regarding user and host sections,

  • Hostname is displayed only when in an SSH session.
  • Username displayed only when it isn't $LOGNAME.

That's not the first issue about it. Spaceship-way is to show only those things which are needed at the moment. However, probably we need to make new options to force spaceship always show these sections.

So can I activate them to be shown all the time? :thinking:

Currently there are no ways to always show user and host. There are discussions about this at #28 and #118.

I made a PR for it and have it running on my machines. However it was said that @denysdovhan wants to implement it differently and thus i closed the pr. Is this open for help again? And if so, what do you want done differently then before?

I would really appreciate this feature 馃榾

@der-Daniel:

new github account, same person (rjwestman):
Here's my current version: https://github.com/bytefluxio/spaceship-zsh-theme/

I'll create a pr in a second. The README is updated. SPACESHIP_HOST_SHOW can now be always, ssh and never. Same for user. There is also a new color option for the ssh connect for the host SPACESHIP_HOST_SSH_COLOR.

This feature is already implemented by b825de7

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwhipp picture jwhipp  路  3Comments

nfischer picture nfischer  路  3Comments

JounQin picture JounQin  路  3Comments

olets picture olets  路  3Comments

tbekaert picture tbekaert  路  3Comments