🌊 The ultimate Fish prompt.
Go to file
2020-05-16 21:43:27 -07:00
conf.d Fixed git_prompt bug, thank god 2020-05-16 21:43:27 -07:00
dev Fixed git_prompt bug, thank god 2020-05-16 21:43:27 -07:00
functions Fixed git_prompt bug, thank god 2020-05-16 21:43:27 -07:00
lean_theme Multi-line right prompt 2020-05-14 21:53:37 -07:00
media/images A lot of work on README 2020-05-12 20:17:03 -07:00
tests Update tests, remove extraneous file 2020-05-15 16:27:26 -07:00
install.fish Fix install 2020-05-15 16:06:01 -07:00
LICENSE Create LICENSE 2020-04-29 09:53:39 -07:00
README.md A lot of work on README 2020-05-12 20:17:03 -07:00

Lean

A minimal Fish theme based on Powerlevel10k's lean style.

Prompt_Connection

Installation

Run the install script:

curl -s https://raw.githubusercontent.com/IlanCosman/lean/master/install.fish | source; and lean_install

Features

  • Reactive superior prompt character
  • Current directory, shortened according to terminal width
  • Git branch and status information
  • Configuration wizard
  • Right Prompt Items:
Item Display
status special exit statuses and pipe status
cmd_duration duration of the last run command
context user@hostname when using SSH or root
jobs presence of background jobs
time current time

Configuration

Note that all lean variables, unless stated otherwise, begin with the string lean_. Thus, for brevity, variables in this section will be denoted as example_variable but will actually be lean_example_variable.

Colors

Left Prompt Items

pwd

Variable Description Default
pwd_shorten_margin number of columns distance to maintain between pwd and edge of terminal 5
pwd_unwritable_icon symbol to display when the current directory is not writable by the user '' #Lock icon

git prompt

Lean's git capabilities are inherited from fish's built-in fish_git_prompt. Modify those variables to configure lean's git prompt.

prompt connection

Variable Description Default
prompt_connection_color color of prompt connection 6C6C6C
prompt_connection_icon repeated symbol that spans gap between left and right sides of prompt ' '

Right Prompt Items

Variable Description Default
right_prompt_items order of right prompt items that will be displayed 'status' 'cmd_duration' 'context' 'jobs'

status

Variable Description Default
status_success_icon symbol to display when the last command in a pipeline succeeds '✔'
status_success_color color of successful pipeline's status 5FAF00
status_failure_icon symbol to display when the last command in a pipeline fails '✘'
status_failure_color color of failed pipeline's status D70000

cmd_duration

Variable Description Default
cmd_duration_color color of cmd_duration output 87875F
cmd_duration_decimals number of decimals to display after seconds place 0
cmd_duration_threshold number of milliseconds that duration must exceed to produce output 3000