Skip to content

schrenker/solarfish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A git-aware two-line fish theme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%