akhilman / fish-prompt-hline

Fish re-implementation of the Adam2 shell prompt from zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Fisherman

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

License:MIT License


Languages

Language:Shell 100.0%