Compare commits
1 Commits
ba3d8bc5f9
...
041519c682
Author | SHA1 | Date | |
---|---|---|---|
041519c682 |
@ -1,5 +1,5 @@
|
|||||||
if test -z "$SYSTEM_PROFILE"
|
if test -z "$SYSTEM_PROFILE"
|
||||||
set -gx SYSTEM_PROFILE SLIM
|
set -gx SYSTEM_PROFILE slim
|
||||||
end
|
end
|
||||||
|
|
||||||
source ~/.config/fish/aliases.fish
|
source ~/.config/fish/aliases.fish
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
function fish_right_prompt
|
function fish_right_prompt
|
||||||
if test $SYSTEM_PROFILE = "MINIMAL"
|
if test $SYSTEM_PROFILE != "DEFAULT"
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l usercolor (set_color $fish_color_cwd)
|
set -l usercolor (set_color $fish_color_cwd)
|
||||||
if command -sq cksum
|
if command -sq cksum
|
||||||
# randomised color for user/hostname based on disco.fish
|
# randomised color for user/hostname based on disco.fish
|
||||||
set -l shas (echo $USER$hostname | cksum | string split -f1 ' ' | math --base=hex | string sub -s 3 | string pad -c 0 -w 6 | string match -ra ..)
|
set -l shas (echo $USER@$hostname | cksum | string split -f1 ' ' | math --base=hex | string sub -s 3 | string pad -c 0 -w 6 | string match -ra ..)
|
||||||
set -l col 0x$shas[1..3]
|
set -l col 0x$shas[1..3]
|
||||||
|
|
||||||
# ensure luminance is readable
|
# ensure luminance is readable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user