Update theme Minimaline
This commit is contained in:
parent
e5edc67493
commit
699ab8c30b
@ -1,6 +1,8 @@
|
|||||||
# Compact Theme
|
# Compact Theme
|
||||||
# Author: Candifloss https://candifloss.cc
|
# Author: Candifloss https://candifloss.cc
|
||||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
# Dependencies:
|
||||||
|
# 1. Prettyprompt: https://git.candifloss.cc/candifloss/PrettyPrompt
|
||||||
|
# 2. Nerdfonts: https://www.nerdfonts.com/
|
||||||
|
|
||||||
# Left prompt: Minimal prompt with color indicators
|
# Left prompt: Minimal prompt with color indicators
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
# Compact Theme
|
# Compact Theme
|
||||||
# Author: Candifloss https://candifloss.cc
|
# Author: Candifloss https://candifloss.cc
|
||||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
# Dependencies:
|
||||||
|
# 1. Prettyprompt: https://git.candifloss.cc/candifloss/PrettyPrompt
|
||||||
|
# 2. Nerdfonts: https://www.nerdfonts.com/
|
||||||
|
|
||||||
# Right prompt: pwd and git
|
# Right prompt: pwd and git
|
||||||
function fish_right_prompt
|
function fish_right_prompt
|
||||||
|
|||||||
@ -1,53 +1,57 @@
|
|||||||
# Minimaline theme
|
# Minimaline theme
|
||||||
# A minimal Powerline-style prompt
|
# A minimal Powerline-style prompt
|
||||||
# Author: Candifloss https://candifloss.cc
|
# Author: Candifloss https://candifloss.cc
|
||||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
# Dependencies:
|
||||||
|
# 1. Prettyprompt: https://git.candifloss.cc/candifloss/PrettyPrompt
|
||||||
|
# 2. Nerdfonts: https://www.nerdfonts.com/
|
||||||
|
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
set -l exit_status $status
|
set -l exit_status $status
|
||||||
|
|
||||||
# Colour palette
|
# color palette
|
||||||
set -l colour_user_bg 4cc954
|
set -l color_user_bg 4cc954
|
||||||
set -l colour_pwd_bg 171717
|
set -l color_root_bg a89a64
|
||||||
set -l colour_status_bg 272727
|
set -l color_pwd_bg 171717
|
||||||
set -l colour_host_bg 4cc992
|
set -l color_status_bg 272727
|
||||||
set -l colour_error_bg d64444
|
set -l color_host_bg 4cc992
|
||||||
|
set -l color_error_bg d64444
|
||||||
|
|
||||||
# Set status colour (override if error)
|
# Set status color (override if error)
|
||||||
if test $exit_status -ne 0
|
if test $exit_status -ne 0
|
||||||
set colour_status_bg $colour_error_bg
|
set color_status_bg $color_error_bg
|
||||||
end
|
end
|
||||||
|
|
||||||
# Prompt symbol for root user
|
# Prompt symbol for root user
|
||||||
set -l prompt_symbol '$'
|
set -l prompt_symbol '$'
|
||||||
if fish_is_root_user
|
if fish_is_root_user
|
||||||
set prompt_symbol '#'
|
set prompt_symbol '#'
|
||||||
|
set color_user_bg $color_root_bg
|
||||||
end
|
end
|
||||||
|
|
||||||
# --- Segment 1: User@Host ---
|
# --- Segment 1: User@Host ---
|
||||||
# User part
|
# User part
|
||||||
set_color --background $colour_user_bg --bold $colour_pwd_bg
|
set_color --background $color_user_bg --bold $color_pwd_bg
|
||||||
printf " %s" "$USER"
|
printf " %s" "$USER"
|
||||||
|
|
||||||
# Host part
|
# Host part
|
||||||
set_color normal
|
set_color normal
|
||||||
set_color --background $colour_host_bg $colour_pwd_bg
|
set_color --background $color_host_bg $color_pwd_bg
|
||||||
printf "@%s " (prompt_hostname)
|
printf "@%s " (prompt_hostname)
|
||||||
|
|
||||||
# Separator after Segment 1
|
# Separator after Segment 1
|
||||||
set_color --background $colour_pwd_bg $colour_host_bg
|
set_color --background $color_pwd_bg $color_host_bg
|
||||||
printf " "
|
printf " "
|
||||||
|
|
||||||
# --- Segment 2: Current Directory ---
|
# --- Segment 2: Current Directory ---
|
||||||
# prettyprompt-pwd handles its own foreground colour
|
# prettyprompt-pwd handles its own foreground color
|
||||||
prettyprompt-pwd
|
prettyprompt-pwd
|
||||||
|
|
||||||
# --- End separators ---
|
# --- End separators ---
|
||||||
set_color --background $colour_pwd_bg
|
set_color --background $color_pwd_bg
|
||||||
printf " "
|
printf " "
|
||||||
set_color --background $colour_status_bg $colour_pwd_bg
|
set_color --background $color_status_bg $color_pwd_bg
|
||||||
printf ""
|
printf ""
|
||||||
set_color --background normal $colour_status_bg
|
set_color --background normal $color_status_bg
|
||||||
printf ""
|
printf ""
|
||||||
|
|
||||||
# Reset and add trailing space
|
# Reset and add trailing space
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user