spaceship-prompt / spaceship-prompt Goto Github PK
View Code? Open in Web Editor NEW:rocket::star: Minimalistic, powerful and extremely customizable Zsh prompt
Home Page: https://spaceship-prompt.sh
License: MIT License
:rocket::star: Minimalistic, powerful and extremely customizable Zsh prompt
Home Page: https://spaceship-prompt.sh
License: MIT License
Please consider adding vi-mode (bindkey -v) notification.
Thanks.
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.
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
# ...
}
Would be great if users will have ability to install Spaceship using Homebrew. Don't know how to do this. Can anyone help?
SPACESHIP_NVM_SHOW_ON_PROJECT_ONLY
is not working for now.
It doesn't exist in spaceship.zsh-theme.
i like to see the datetime ateach prompt. Could you add an option for this?
I'm sure it's an easy fix, I'm just not sure how to get it working.
I'm running Windows Subsystem for Linux and using Antigen to install.
we use many mercurial repositories (better but "dead" git alternative)
I personally use n
( https://github.com/tj/n ) instead nvm,
Is there any easy fix for that?
If we get the node version by node -v
it should work in my case
Would be useful for brand new Elixir users.
Icon: π§
or π¦
Hi, I have this error when opening a new terminal window :
spaceship.zsh-theme:227: parse error near
]]'`
Thank you.
Right now the node version shows up even if I am not using nvm. Unnecessarily thats an additional item. This might also help solve #24 .
@Zeotyn I've made few changes with Ruby showing. Please update and check if everything is okay.
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: β
In some repositories of mine I just get this error
spaceship_git_status:[:20: too many arguments
I don't know where to look for a fix. Maybe you have a hint.
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.
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!
Icon: πͺ
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
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
I think descriptions for SPACESHIP_PROMPT_ADD_NEWLINE and SPACESHIP_PROMPT_SEPARATE_LINE in README are other way around.
Add ability to costomize the theme. Add special variables and hooks.
I think every variable should have SPACESHIP_*
prefix.
Displays which AWS credentials profile is currently set using aws-cli
.
Icon: βοΈ
, βοΈ
, β
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 4nvm 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:
When I do rbenv global 2.4.0
, it shows current version:
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.
We are already providing a preview of the theme in README. So what about moving other color scheme screen shots to wiki and providing a link to wiki page, Making README easier to navigate.
Like this one, https://github.com/sfarzy/spaceship-zsh-theme/wiki/Screenshots
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.
This is what i see when i reloaded zsh :
__host:6: = not found
__git_status:5: = not found
I really like the look of the window. In the terminal you are using, how are you able to make the menu the same color as the terminal?
please add support for git current sha
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.
Have no idea why I didn't add this before Β―_(γ)_/Β―
Hi, i just followed your instruction and installed theme via curl -o - https://raw.githubusercontent.com/denysdovhan/spaceship-zsh-theme/master/install.sh | zsh
modified my .zshrc file to use "spaceship" theme, but when i reload zsh, i get error mentioned in the subject. What am i missing ?
I just took out some of the extra formatting and stuff. You can still completely tell what is going on without it. If this interests you I could submit a pull request.
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.
Might be useful along with Docker support.
Icon: αΉΎ
or οΌΆ
Hey what font/symbols do i need to get this to print properly on Arch?
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
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.
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?
An indicator for background jobs would be nice.
related commit: 9575bc9
local gofiles=`ls -1 *.go 2>/dev/null | wc -l`
I got error msg: spaceship_golang_version:6: no matches found: *.go
Could anyone make a tutorial on how to get this style? For instance, installing the theme, what terminal they used, what color scheme etc.
https://github.com/denysdovhan/spaceship-zsh-theme/raw/master/preview.gif
I've been trying to mimic the exact look but haven't been able to do it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.