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