Zsh
prompt for Astronauts.
Spaceship is a minimalistic, powerful and extremely customizable Zsh prompt. It combines everything you may need for convenient work, without unnecessary complications, like a real spaceship.
Visit Troubleshooting for similar setup and find more examples with different color schemes in Screenshots wiki-page.
?
— untracked changes;+
— uncommitted changes in the index;!
— unstaged changes;»
— renamed files;✘
— deleted files;$
— stashed changes;=
— unmerged changes;⇡
— ahead of remote branch;⇣
— behind of remote branch;⇕
— diverged changes.?
— untracked changes;+
— uncommitted changes in the index;!
— unstaged changes;✘
— deleted files;✦
).⬢
).💎
).🌳
)💧
).🐦
).🛠
).🐹
).🐘
).𝗥
).λ
).ஃ
).🐳
).☁️
) (Using named profiles).☁️
).🅒
).🐍
)..NET
).🐹
).☸️
).🛠
).📦
).⇡
- charging;⇣
- discharging;•
- fully charged.Want more features? Please, open an issue or send pull request.
💡 Tip: Follow our Twitter to keep yourself updated about new features, improvements, and bugfixes.
To work correctly, you will first need:
zsh
(v5.2 or recent) must be installed.Now that the requirements are satisfied, you can install Spaceship ZSH via any of the following tools.
💡 Tip: If you like this project and want to get some stickers and postcards, consider becoming a patron:
npm install -g spaceship-prompt
Done. This command should link spaceship.zsh
as prompt_spaceship_setup
to your $fpath
and set prompt spaceship
in .zshrc
. Just reload your terminal.
💡 Tip: Update Spaceship to new versions as you would any other package.
Clone this repo:
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
Symlink spaceship.zsh-theme
to your oh-my-zsh custom themes directory:
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
Set ZSH_THEME="spaceship"
in your .zshrc
.
prezto-contrib
to the proper location.contrib-prompt
module (before the prompt
module).zstyle ':prezto:module:prompt' theme 'spaceship'
in your .zpreztorc
.Add zmodule denysdovhan/spaceship-prompt --name spaceship
to your .zimrc
and run zimfw install
.
Add the following snippet in your ~/.zshrc
:
antigen theme denysdovhan/spaceship-prompt
Update your .zshrc
file with the following line:
antibody bundle denysdovhan/spaceship-prompt
Add the following line to your ~/.zshrc
where you're adding your other Zsh plugins:
zinit light denysdovhan/spaceship-prompt
Add the following line to your ~/.zshrc
where you're adding your other Zsh plugins:
zgen load denysdovhan/spaceship-prompt spaceship
Use this command in your .zshrc
to load Spaceship as prompt theme:
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
Install the latest master from the AUR package spaceship-prompt-git
:
git clone https://aur.archlinux.org/spaceship-prompt-git.git --depth=1
cd spaceship-prompt-git
makepkg -si
If you have problems with approaches above, follow these instructions:
git clone https://github.com/denysdovhan/spaceship-prompt.git --depth=1
spaceship.zsh
to somewhere in $fpath
as prompt_spaceship_setup
.spaceship
.Run echo $fpath
to see possible location and link spaceship.zsh
there, like:
$ ln -sf "$PWD/spaceship.zsh" "/usr/local/share/zsh/site-functions/prompt_spaceship_setup"
For a user-specific installation, simply add a directory to $fpath
for that user in .zshrc
:
fpath=( "$HOME/.zfunctions" $fpath )
Then install the theme like this:
$ ln -sf "$PWD/spaceship.zsh" "$HOME/.zfunctions/prompt_spaceship_setup"
For initializing prompt system add this to your .zshrc
:
# .zshrc
autoload -U promptinit; promptinit
prompt spaceship
Spaceship works well out of the box, but you can customize almost everything if you want.
You have ability to customize or disable specific elements of Spaceship. All options must be overridden in your .zshrc
file after the theme.
💡 Tip: Take a look at popular option presets or share your own configuration on Presets wiki page.
Having trouble? Take a look at out Troubleshooting page.
Still struggling? Please, file an issue, describe your problem and we will gladly help you.
Here's a list of related projects that have been inspired by Spaceship ZSH.
Denys Dovhan | Salmanul Farzy | Maxim Baz | Runrioter Wung |
Hi! I work on this project in my spare time, in addition to my primary job. I hope you enjoy using Spaceship ZSH. If you do, please, become my patron 🤝.
Patreon | Bitcoin | Ethereum |
---|---|---|
Become a patron | 1FrPrQb6ACTkbSBAz9PduJWrDFfq41Ggb4 |
0x6aF39C917359897ae6969Ad682C14110afe1a0a1 |
This is your way make a clear statement: My work is valued.
I would appreciate your support! Thank you!
MIT © Denys Dovhan
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。