Giter Site home page Giter Site logo

zsh-starship's Introduction

zsh-starship

A zsh plugin to manage the Starship prompt, along with providing a default powerline like theme.

Install

Using the โšก Zap minimal zsh plugin manager, add the following to your .zshrc

# Install plugin
plug "wintermi/zsh-starship"

Prerequisite Checks

A check will be performed to verify that starship has been installed:

  • starship - The minimal, blazing-fast, and infinitely customizable prompt for any shell!

Configure a Custom Theme

This plugin installs its own powerline theme and will default to this unless you override via one of the following two options.

  • Setting the STARSHIP_CONFIG environment variable to the location of your custom Starship theme configuration file.
  • Custom Starship theme configuration file can be found at $HOME/.config/starship.toml.

As shown in the below examples:

# Example override of the STARSHIP_CONFIG environment variable
export STARSHIP_CONFIG="$HOME/custom_config.toml"
plug "wintermi/zsh-starship"

# Custom configuration file has been created using the default STARSHIP
# location of "$HOME/.config/starship.toml"
plug "wintermi/zsh-starship"

License

The zsh-starship plugin is released under the Apache License 2.0 unless explicitly mentioned in the file header.

zsh-starship's People

Contributors

jaredmontoya avatar wintermi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dacarey newacorn

zsh-starship's Issues

Check for default starship file

I'm new to zsh and exploring, but, have previously used starship, so figured this might be a good fit. It took me a bit to figure out why my config was not being picked up, but, I see you expect a STARSHIP_CONFIG variable. I dont use that and use the default ~/.config/starship.toml

It might help others that the default starship file location is also checked before the plugin provided configuration steps in to make it nice right out of the box.

:)

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.