Skip to content

Fish re-implementation of the Adam2 shell prompt from zsh

License

Notifications You must be signed in to change notification settings

akhilman/fish-prompt-hline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HLine prompt for Fish shell

Fish re-implementation of the Adam2 shell prompt from zsh

This prompt can also generate unique (almost) colors for the current directory, username, host, branch, virtual environment, and horizontal line. The horizontal line color is generated from the username and hostname.

Screenshot

Installation

fisher add akhilman/fish-prompt-hline

Then restart fish or call source ~/.config/fish/conf.d/prompt_hline_init.fish

Configuration

# Setup some colorscheme in fish's web app
fish_config

# Setup right prompt colors
set -U fish_color_duration blue
set -U fish_color_hline grey  # if not generated
set -U fish_color_njobs green
set -U fish_color_status --background red white
set -U fish_color_time white
set -U fish_color_vcs yellow  # if not generated
set -U fish_color_venv magenta  # if not generated

# Enable generated colors
set -U hline_generate_color_cwd 1
set -U hline_generate_color_hline 1
set -U hline_generate_color_host 1
set -U hline_generate_color_user 1
set -U hline_generate_color_vcs 1
set -U hline_generate_color_venv 1

# Unset variable to disable generated colors
# set -eU hline_generate_color_hline

# Adjust generated colors
set -U hline_generated_color_hue_offset 0  # 0 <= H <= 360
set -U hline_generated_color_saturation 25  # 0 <= S <= 100
set -U hline_generated_color_value 80  # 0 <= V <= 100

About

Fish re-implementation of the Adam2 shell prompt from zsh

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages