Update Minimaline theme
This commit is contained in:
parent
be4a5f8b15
commit
3afc95ee3d
@ -1,4 +1,5 @@
|
||||
# Compact Theme
|
||||
# Author: Candifloss https://candifloss.cc
|
||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
||||
|
||||
# Left prompt: Minimal prompt with color indicators
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
# Compact Theme
|
||||
# Author: Candifloss https://candifloss.cc
|
||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
||||
|
||||
# Right prompt: pwd and git
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
# Default theme
|
||||
# Shell prompt: Left side
|
||||
# Author: Candifloss https://candifloss.cc
|
||||
|
||||
function fish_prompt
|
||||
set -l exit_status $status
|
||||
|
||||
@ -1,46 +1,53 @@
|
||||
# Minimaline theme
|
||||
# A minimal Powerline-style prompt
|
||||
# Author: Candifloss https://candifloss.cc
|
||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
||||
|
||||
function fish_prompt
|
||||
set -l exit_status $status
|
||||
|
||||
# Colours
|
||||
set -l bg1 44bfaa
|
||||
set -l fg1 232323
|
||||
set -l bg2 171717
|
||||
set -l bg3 272727
|
||||
# Colour palette
|
||||
set -l colour_user_bg 4cc954
|
||||
set -l colour_pwd_bg 171717
|
||||
set -l colour_status_bg 272727
|
||||
set -l colour_host_bg 4cc992
|
||||
set -l colour_error_bg d64444
|
||||
|
||||
# Set status colour
|
||||
# Set status colour (override if error)
|
||||
if test $exit_status -ne 0
|
||||
set bg3 d64444
|
||||
set colour_status_bg $colour_error_bg
|
||||
end
|
||||
|
||||
# Prompt symbol
|
||||
# Prompt symbol for root user
|
||||
set -l prompt_symbol '$'
|
||||
if fish_is_root_user
|
||||
set prompt_symbol '#'
|
||||
end
|
||||
|
||||
# Segment 1: User@Host
|
||||
set_color --background $bg1 --bold $fg1
|
||||
printf " %s@%s " "$USER" (prompt_hostname)
|
||||
# --- Segment 1: User@Host ---
|
||||
# User part
|
||||
set_color --background $colour_user_bg --bold $colour_pwd_bg
|
||||
printf " %s" "$USER"
|
||||
|
||||
# Separator 1
|
||||
set_color --background $bg2 $bg1
|
||||
#set_color $bg1
|
||||
# Host part
|
||||
set_color normal
|
||||
set_color --background $colour_host_bg $colour_pwd_bg
|
||||
printf "@%s " (prompt_hostname)
|
||||
|
||||
# Separator after Segment 1
|
||||
set_color --background $colour_pwd_bg $colour_host_bg
|
||||
printf " "
|
||||
|
||||
# Segment 2: Current directory
|
||||
# --- Segment 2: Current Directory ---
|
||||
# prettyprompt-pwd handles its own foreground colour
|
||||
prettyprompt-pwd
|
||||
|
||||
# End separators
|
||||
set_color --background $bg2
|
||||
# --- End separators ---
|
||||
set_color --background $colour_pwd_bg
|
||||
printf " "
|
||||
set_color --background $bg3 $bg2
|
||||
set_color --background $colour_status_bg $colour_pwd_bg
|
||||
printf ""
|
||||
set_color --background normal $bg3
|
||||
set_color --background normal $colour_status_bg
|
||||
printf ""
|
||||
|
||||
# Reset and add trailing space
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user