Git Product home page Git Product logo

solarfish's Introduction

solarfish

MIT License Fish Shell Version

A git-aware two-line fish shell theme. Inspired by simple-ass-prompt and the default bash prompt.

shell light theme screenshot shell dark theme screenshot

Features

  • Two-line prompt
  • Git status icons: dirty *, staged +, ahead , behind , diverged
  • Previous command status (prompt turns red on error)
  • Root user indicator (username turns red when running as root)
  • Remote host indicator (hostname turns red when running under a ssh connection)
  • Kubectl context:namespace indicator after first use of kubectl in given shell session. Reacts to following commands/aliases (configurable with theme_kubectl_commands list):
    • kubectl
    • k
    • kg
    • kd
    • kubectx
    • kx
    • kubens
    • kns

Install

Using fisher:

fisher install schrenker/solarfish

Configuration

Add any of the following lines to ~/.config/fish/config.fish

# Display a shortened directory path
set -g theme_short_path yes

# Disable the git indicator
set -g theme_no_git_indicator yes

# Disable kubectl indicator
set -g theme_no_kubectl_indicator yes

# Set your own kubectl commands to trigger context:namespace indicator
set -g theme_kubectl_commands kubectl helm k kn

solarfish's People

Contributors

thesilican avatar mdhs-science avatar schrenker avatar

Stargazers

 avatar

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.