fish: make prompt colours a universal variable
This commit is contained in:
parent
fa05bf798d
commit
c6c8674a83
2 changed files with 9 additions and 3 deletions
|
|
@ -28,10 +28,10 @@ if status is-interactive
|
||||||
|
|
||||||
# set prompt colours
|
# set prompt colours
|
||||||
if test -e ~/.cache/zsh_colours.sh
|
if test -e ~/.cache/zsh_colours.sh
|
||||||
posix-source (string replace -fra "{|}|#|\"" "" (cat ~/.cache/zsh_colours.sh) | psub)
|
posix-source-universal (string replace -fra "{|}|#|\"" "" (cat ~/.cache/zsh_colours.sh) | psub)
|
||||||
else
|
else
|
||||||
set PRIMARY_COLOUR blue
|
set -Ux PRIMARY_COLOUR blue
|
||||||
set SECONDARY_COLOUR purple
|
set -Ux SECONDARY_COLOUR purple
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
6
stow/.config/fish/functions/posix-source-universal.fish
Normal file
6
stow/.config/fish/functions/posix-source-universal.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
function posix-source-universal
|
||||||
|
for i in (cat $argv)
|
||||||
|
set arr (echo $i |tr = \n)
|
||||||
|
set -Ux $arr[1] $arr[2]
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue