Compare commits
No commits in common. "61522c82c3d6ff80fa18641570fa816cee339f4a" and "b479be406522cf4718bdba45a0c0a4c095552787" have entirely different histories.
61522c82c3
...
b479be4065
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,8 +1 @@
|
|||||||
fish_variables
|
fish_variables
|
||||||
test/
|
|
||||||
completions/alacritty.fish
|
|
||||||
completions/adu.fish
|
|
||||||
conf.d/49_aliases_mycompany.fish
|
|
||||||
conf.d/48_aliases_desktop.fish
|
|
||||||
conf.d/90_local.fish
|
|
||||||
conf.d/90_desktop_startx.fish
|
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
# History
|
# History
|
||||||
|
|
||||||
|
# Save immediately.
|
||||||
|
set -g fish_history default
|
||||||
|
|
||||||
# Keep a large history.
|
# Keep a large history.
|
||||||
set -g fish_history_max 100000
|
set -g fish_history_max 100000
|
||||||
@ -1,20 +1,13 @@
|
|||||||
# Minimaline theme
|
# Minimaline theme
|
||||||
# A minimal Powerline-style prompt
|
# Low budget Powerline style prompt
|
||||||
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
|
|
||||||
|
|
||||||
function __fish_theme_prompt
|
function __fish_theme_prompt
|
||||||
set -l exit_status $status
|
set -l exit_status $status
|
||||||
|
|
||||||
# Colours
|
# Colours
|
||||||
set -l bg1 44bfaa
|
set -l bg1 2ca2dd
|
||||||
set -l fg1 232323
|
set -l fg1 ffffff
|
||||||
set -l bg2 171717
|
set -l bg2 303030
|
||||||
set -l bg3 272727
|
|
||||||
|
|
||||||
# Set status colour
|
|
||||||
if test $exit_status -ne 0
|
|
||||||
set bg3 d64444
|
|
||||||
end
|
|
||||||
|
|
||||||
# Prompt symbol
|
# Prompt symbol
|
||||||
set -l prompt_symbol '$'
|
set -l prompt_symbol '$'
|
||||||
@ -22,28 +15,41 @@ function __fish_theme_prompt
|
|||||||
set prompt_symbol '#'
|
set prompt_symbol '#'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Segment 1: User@Host
|
#
|
||||||
set_color --background $bg1 --bold $fg1
|
# Segment 1
|
||||||
|
#
|
||||||
|
|
||||||
|
set_color --background $bg1 $fg1
|
||||||
printf " %s@%s " "$USER" (prompt_hostname)
|
printf " %s@%s " "$USER" (prompt_hostname)
|
||||||
|
|
||||||
# Separator 1
|
#
|
||||||
|
# Separator
|
||||||
|
#
|
||||||
|
|
||||||
set_color --background $bg2 $bg1
|
set_color --background $bg2 $bg1
|
||||||
#set_color $bg1
|
|
||||||
printf ""
|
printf ""
|
||||||
|
|
||||||
# Segment 2: Current directory
|
#
|
||||||
# prettyprompt-pwd handles its own foreground colour
|
# Segment 2
|
||||||
prettyprompt-pwd
|
#
|
||||||
|
|
||||||
# End separators
|
# prettyprompt-pwd handles its own foreground colour.
|
||||||
|
# We only provide the background.
|
||||||
set_color --background $bg2
|
set_color --background $bg2
|
||||||
printf " "
|
printf " "
|
||||||
set_color --background $bg3 $bg2
|
prettyprompt-pwd
|
||||||
printf ""
|
printf " "
|
||||||
set_color --background normal $bg3
|
|
||||||
|
#
|
||||||
|
# End separator
|
||||||
|
#
|
||||||
|
|
||||||
|
set_color --background normal $bg2
|
||||||
printf " "
|
printf " "
|
||||||
|
|
||||||
# Reset and add trailing space
|
#
|
||||||
|
# Reset terminal colours
|
||||||
|
#
|
||||||
|
|
||||||
set_color normal
|
set_color normal
|
||||||
printf " "
|
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user