Git Product home page Git Product logo

spaceship-prompt's Issues

Tests for Spaceship

Currently, there aren't tests for Spaceship. Would be great if we find a way to lint or test this theme somehow.

Open for discussion.

Custom prompt ordering

There should be an option for custom prompt ordering, like:

SPACESHIP_PROMPT_ORDER=(
  user
  host
  dir
  git
  hg
  # so on
)

A useful feature for those, who wants to prompt character at the beginning, time before prompt character and so on.

Probable implementation:

spaceship_prompt() {
  # ...

  for segment in $SPACESHIP_PROMPT_ORDER; do
    spaceship_$segment
  done

  # ...
}

Install via Homebrew

Would be great if users will have ability to install Spaceship using Homebrew. Don't know how to do this. Can anyone help?

✘ Exit code of previous command

Might be useful to implement a showing of exit code, when previous command fails.

For example:

~/Projects/Repos
(127) βž”
~/Projects/Repos
✘127 βž”
~/Projects/Repos
(✘ 127) βž” 
~/Projects/Repos
(✘127) βž” 
~/Projects/Repos
[✘127] βž” 

The examples above are just for instance. Maybe there is a better way to show this segment. Also, will be useful with #71.

Icon: ✘

Extra quotes with the symbols.

I am not sure whether this is a problem local to me or not, but I had to do the following to get the special symbols to show without overlapping quotation marks:

export SPACESHIP_RUBY_SYMBOL=πŸ’Ž
export SPACESHIP_NVM_SYMBOL=β¬’
export SPACESHIP_PROMPT_SYMBOL=βž”
antigen theme https://github.com/denysdovhan/spaceship-zsh-theme spaceship

Result:

Workspace/cpp/on master [?$] via β¬’ v5.7.1=> (default)
 via πŸ’Ž  ruby-2.2.1
βž”

Without setting these, the prompt looked like the following (note the extra quote symbol around the icons:

Workspace/cpp on master [?$] via 'β¬’' v5.7.1=> (default)
 via 'πŸ’Ž'  ruby-2.2.1
'βž”'

Version info:

prog/work/github-representation on master [!?'⇑']
βž” zsh --version
zsh 5.0.8 (x86_64-apple-darwin15.0)

I suspect I will need similar changes for the Git pull/push symbols. I need the same change for Git pull/push icons. However, I need it only for the unicode characters, not for the ASCII characters. I guess it might have something to do with my iTerm2's setup.

Colors/Font

I know it's not part of your theme per say, but could you mention the color scheme and font you used in the demo image? It's pretty nice. Thanks!

Git status Update

I've just installed your theme for .oh-my-zsh, I run it throught Babun and I got this error message everytime I browse a folder wich is a git repo :
g/uwamp/www
βž” cd ~/.oh-my-zsh/themes
spaceship_git_satus:24: command not found: git_current_branch

2016-08-13 png

nvm plugin ignores local .nvmrc files

Hi,

like your work here. I might be doing something wrong, but the nvm plugin only checks node -v version for me. I can change it to anyone I want with nvm alias default <NODE_VERSION>, but that doesn't help me that much. :(

I'd be great if it looked at local .nvmrc file to make sure which node is used/preferred for this project. Or, I'm not seeing some option to enable this feature.

I'm using this on Mac OS with oh-my-zsh

β¬’ n support

We need to support n - an interactive node version manager.

Probably, spaceship_nvm_status should be refactored to spaceship_node_status. In that case, we need to care of backward compatibility.

Icon: Maybe better to use different icons for nvm and n i.e ⬒ and ⬑
Related: #33

Documentation issue.

I think descriptions for SPACESHIP_PROMPT_ADD_NEWLINE and SPACESHIP_PROMPT_SEPARATE_LINE in README are other way around.

Add customization

Add ability to costomize the theme. Add special variables and hooks.

I think every variable should have SPACESHIP_* prefix.

Is Ruby version shown everywhere?

Hey @Zeotyn, @robbl, @gillchristian I need your help, guys.

Usually, I use nvm and that's works well for me with this flow:

  • nvm install 4 β€” install Node.js 4
  • nvm use 4 β€” use this version of Node.js (Spaceship shows version that isn't equal to system)
  • nvm use system β€” use global version of Node.js (Spaceship hides version)

Recently, I've installed rbenv and found that system version is shown everywhere:

image

When I do rbenv global 2.4.0, it shows current version:

image

Maybe we should check if Ruby's version is equal system too. In other case, Ruby version is shown everywhere and everytime, which is not spaceship-way.

Maybe I'm doing something wrong. Need your help.

Pyenv support

Hi there, thanks for the awesome theme. Is it possible to add support for pyenv alongside with virtualenv ? If you're busy I can help with PR too.

Hide user and machine name? Prompt Symbol not working either.

Should be very straight forward but, can't get mine to go away.

I've tried:

SPACESHIP_USER_SHOW=false

SPACESHIP_PREFIX_SHOW=false

DEFAULT_USER=""

Prompt line:

SPACESHIP_PROMPT_SYMBOL='βž”'

Time still displays as well:

SPACESHIP_TIME_SHOW=false

screenshot

Logo ideas

Woo-hoo! Spaceship is going to get 200 stars! I think it's time to make a logo for theme. I will be grad if anybody can help me with that, so I'm looking for volontiers.

I think it have to be something simple, clean and expressive. Something that can reflect the essence and idea of the theme itself.

Examples

Bullet Train:

image

Hide username if not root

How to hide username if the user is not root via SSH?

I am using vagrant-box Ubuntu with zsh.
SSH into Ubuntu via 127.0.0.1:2222 and the username is vagrant

vagrant in vm at ~ via ⬒ v7.8.0 on 🐳  v1.13.1
βž” whoami                                                                                                                                                                               
vagrant

vagrant in vm at ~ via ⬒ v7.8.0 on 🐳  v1.13.1
βž” echo $LOGNAME                                                                                                                                                                        vagrant

I didn't see any setting in Readme.md.

antigen wrong name in README.md

Taken from README.md

antigen theme https://github.com/denysdovhan/spaceship-zsh-theme spaceship-zsh-theme

The spaceship-zsh-theme should match the filename of the theme, which is spaceship(.zsh-theme).

I had to change the command to the below to get it works.

antigen theme https://github.com/denysdovhan/spaceship-zsh-theme spaceship

Hostname displayed out of a SSH session

root at /home/userA on 🐳 v17.03.1-ce viaγ€”localhost〕

I'm not even in a SSH session, why do I have the hostname displayed?
I'm on Ubuntu 16.04 LTS.

Hide user in termux

I would like a config option to hide the user. In termux, I just get

 at ~
βž” 

The user is blank, one space, then at ~. I have tried setting SPACESHIP_USER_SHOW=false like #60 (though I don't see this option in the README). I have also tried DEFAULT_USER=\whoami``. Can we get a config setting to hide the user?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.