All Projects โ†’ denysdovhan โ†’ Spaceship Prompt

denysdovhan / Spaceship Prompt

Licence: mit
๐Ÿš€โญ A Zsh prompt for Astronauts

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Spaceship Prompt

guri
A simple and fast Oh-My-Zsh theme
Stars: โœญ 19 (-99.88%)
Mutual labels:  oh-my-zsh, prompt, zsh-theme, shell-prompt, shell-theme
Pure
Pretty, minimal and fast ZSH prompt
Stars: โœญ 10,891 (-30.84%)
Mutual labels:  terminal, zsh, prompt, shell-prompt, shell-theme
Starship
โ˜„๐ŸŒŒ๏ธ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: โœญ 20,504 (+30.2%)
Mutual labels:  zsh, oh-my-zsh, zsh-theme, shell-prompt
apollo-zsh-theme
Heavily customizable, compatible, and fast ZSH theme framework.
Stars: โœญ 64 (-99.59%)
Mutual labels:  zsh, prompt, zsh-theme, shell-theme
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: โœญ 182 (-98.84%)
Mutual labels:  zsh, prompt, zsh-theme
Typewritten
A minimal, lightweight, informative zsh prompt theme
Stars: โœญ 442 (-97.19%)
Mutual labels:  terminal, zsh, prompt
Common
A simple, clean and minimal prompt.
Stars: โœญ 213 (-98.65%)
Mutual labels:  zsh, prompt, zsh-theme
Zsh Vi Mode
๐Ÿ’ป A better and friendly vi(vim) mode plugin for ZSH.
Stars: โœญ 181 (-98.85%)
Mutual labels:  terminal, zsh, oh-my-zsh
Dotfiles
What tools and plugins I use for web development?
Stars: โœญ 73 (-99.54%)
Mutual labels:  zsh, oh-my-zsh, zsh-theme
Pi
A minimalist zsh theme with git status decorations
Stars: โœญ 76 (-99.52%)
Mutual labels:  zsh, oh-my-zsh, zsh-theme
Polyglot
Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, dash, and busybox ash
Stars: โœญ 118 (-99.25%)
Mutual labels:  zsh, prompt, zsh-theme
Purify
๐ŸŒˆ Clean & vibrant color schemes for Vim, Terminals...
Stars: โœญ 142 (-99.1%)
Mutual labels:  terminal, zsh, oh-my-zsh
Zsh In Docker
Install Zsh, Oh-My-Zsh and plugins inside a Docker container with one line!
Stars: โœญ 169 (-98.93%)
Mutual labels:  zsh, oh-my-zsh
Dotfiles Win
๐Ÿ™ˆ oh-my-zsh on bash on windows configuration files
Stars: โœญ 167 (-98.94%)
Mutual labels:  zsh, oh-my-zsh
Alien
An asynchronous zsh prompt
Stars: โœญ 218 (-98.62%)
Mutual labels:  zsh, zsh-theme
Zsh Proxy
๐Ÿ”ฉ An oh-my-zsh plugin to configure proxy
Stars: โœญ 162 (-98.97%)
Mutual labels:  zsh, oh-my-zsh
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: โœญ 12,989 (-17.52%)
Mutual labels:  zsh, prompt
Dotfiles
~/.dotfiles
Stars: โœญ 177 (-98.88%)
Mutual labels:  terminal, zsh
Powerlevel9k
Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
Stars: โœญ 13,268 (-15.75%)
Mutual labels:  terminal, zsh
Promptless
๐Ÿš€ A super fast and extremely minimal shell prompt.
Stars: โœญ 155 (-99.02%)
Mutual labels:  zsh, prompt

spaceship โ†’~ prompt
๐Ÿš€โญ Spaceship ZSH

Zsh prompt for Astronauts.

NPM Version GitHub Workflow Status Zsh Version Spaceship Twitter Chat on Discord Donate

Built with โค๏ธŽ by Denys Dovhan and contributors

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.

Spaceship with Hyper and One Dark

Visit Troubleshooting for similar setup and find more examples with different color schemes in Screenshots wiki-page.

Features

  • Clever hostname and username displaying.
  • Prompt character turns red if the last command exits with non-zero code.
  • Current Git branch and rich repo status:
    • ? โ€” 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.
  • Current Mercurial bookmark/branch and rich repo status:
    • ? โ€” untracked changes;
    • + โ€” uncommitted changes in the index;
    • ! โ€” unstaged changes;
    • โœ˜ โ€” deleted files;
  • Indicator for jobs in the background (โœฆ).
  • Current Node.js version, through fnm/nvm/nodenv/n (โฌข).
  • Current Ruby version, through rvm/rbenv/chruby/asdf (๐Ÿ’Ž).
  • Current Elm version (๐ŸŒณ)
  • Current Elixir version, through kiex/exenv/elixir (๐Ÿ’ง).
  • Current Swift version, through swiftenv (๐Ÿฆ).
  • Current Xcode version, through xenv (๐Ÿ› ).
  • Current Go version (๐Ÿน).
  • Current PHP version (๐Ÿ˜).
  • Current Rust version (๐Ÿฆ€).
  • Current version of Haskell GHC Compiler, defined in stack.yaml file (ฮป).
  • Current Julia version (เฎƒ).
  • Current Docker version and connected machine (๐Ÿณ).
  • Current Amazon Web Services (AWS) profile (โ˜๏ธ) (Using named profiles).
  • Current Google Cloud Platform gcloud active configuration (โ˜๏ธ).
  • Current Python virtualenv.
  • Current Conda virtualenv (๐Ÿ…’).
  • Current Python pyenv (๐Ÿ).
  • Current .NET SDK version, through dotnet-cli (.NET).
  • Current Ember.js version, through ember-cli (๐Ÿน).
  • Current Kubectl context (โ˜ธ๏ธ).
  • Current Terraform workspace (๐Ÿ› ).
  • Current IBM Cloud account (๐Ÿ‘”).
  • Package version, if there's is a package in current directory (๐Ÿ“ฆ).
  • Current battery level and status:
    • โ‡ก - charging;
    • โ‡ฃ - discharging;
    • โ€ข - fully charged.
  • Current Vi-mode mode (with handy aliases for temporarily enabling).
  • Optional exit-code of last command (how to enable).
  • Optional time stamps 12/24hr in format (how to enable).
  • Execution time of the last command if it exceeds the set threshold.
  • Optional AWS now supports aws-vault (aws-vault)

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.

Requirements

To work correctly, you will first need:

  • zsh (v5.2 or recent) must be installed.
  • Powerline Font must be installed and used in your terminal (for example, switch font to Fira Code).

Installing

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:

Become a patron

Homebrew

brew install spaceship

You can also add the following to your Brewfile:

brew "spaceship"

npm

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. Ensure that you have enabled post-scripts in npm by npm config set ignore-scripts false before starting installation.

๐Ÿ’ก Tip: Update Spaceship to new versions as you would any other package.

oh-my-zsh

Clone this repo:

git clone https://github.com/spaceship-prompt/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

  • Follow prezto-contrib#usage to clone prezto-contrib to the proper location.
  • Enable the contrib-prompt module (before the prompt module).
  • Set zstyle ':prezto:module:prompt' theme 'spaceship' in your .zpreztorc.

zim

Add zmodule spaceship-prompt/spaceship-prompt --name spaceship to your .zimrc and run zimfw install.

antigen

Add the following snippet in your .zshrc:

antigen theme spaceship-prompt/spaceship-prompt

antibody

Update your .zshrc file with the following line:

antibody bundle spaceship-prompt/spaceship-prompt

zinit

Add the following line to your .zshrc where you're adding your other Zsh plugins:

zinit light spaceship-prompt/spaceship-prompt

zgen

Add the following line to your .zshrc where you're adding your other Zsh plugins:

zgen load spaceship-prompt/spaceship-prompt spaceship

zplug

Use this command in your .zshrc to load Spaceship as prompt theme:

zplug "spaceship-prompt/spaceship-prompt", use:spaceship.zsh, from:github, as:theme

Linux package manager

Arch Linux

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

Manual

If you have problems with approaches above, follow these instructions:

  • Clone this repo git clone https://github.com/spaceship-prompt/spaceship-prompt.git --depth=1
  • Symlink spaceship.zsh to somewhere in $fpath as prompt_spaceship_setup.
  • Initialize prompt system and choose spaceship.

Example

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=( "${ZDOTDIR:-$HOME}/.zfunctions" $fpath )

Then install the theme like this:

$ ln -sf "$PWD/spaceship.zsh" "${ZDOTDIR:-$HOME}/.zfunctions/prompt_spaceship_setup"

For initializing prompt system add this to your .zshrc:

# .zshrc
autoload -U promptinit; promptinit
prompt spaceship

Customization

Spaceship works well out of the box, but you can customize almost everything if you want.

  • Options โ€” Tweak section's behavior with tons of options.
  • API โ€” Define a custom section that will do exactly what you want.

You have the ability to customize or disable specific elements of Spaceship. Set options and define new sections in your .zshrc file, after the theme. To include a custom section you have defined in your prompt, add it to the SPACESHIP_PROMPT_ORDER.

For example:

# .zshrc

# add Spaceship (differs by setup, see Installating above)

section_mysection() {
  # ...
}

SPACESHIP_PROMPT_ORDER=(<any preceding sections> mysection <any following sections>)

To append custom sections to the default Spaceship prompt, follow the form:

SPACESHIP_PROMPT_ORDER=($SPACESHIP_PROMPT_ORDER mysection)

To prepend custom sections to the default Spaceship prompt, follow the form:

SPACESHIP_PROMPT_ORDER=(mysection $SPACESHIP_PROMPT_ORDER)

๐Ÿ’ก Tip: Take a look at popular option presets or share your own configuration on Presets wiki page.

Troubleshooting

Having trouble? Take a look at out Troubleshooting page.

Still struggling? Please, file an issue, describe your problem and we will gladly help you.

Related Projects

Here's a list of related projects that have been inspired by Spaceship ZSH.

  • matchai/spacefish - A port of Spaceship ZSH for fish shell intending to achieve complete feature parity.
  • starship/starship - A blazing-fast, cross-shell prompt written in Rust, heavily inspired by Spaceship ZSH.

Team

Denys Dovhan Salmanul Farzy Maxim Baz Runrioter Wung
Denys Dovhan Salmanul Farzy Maxim Baz Runrioter Wung

Donate

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!

License

MIT ยฉ Denys Dovhan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].