Set background to macOS on cd
parent
460346ba2b
commit
fd2f8bd752
|
@ -68,7 +68,8 @@
|
|||
# Set `$term_background` based on whether macOS is light or dark mode. Other Fish functions
|
||||
# trigger when this variable changes. We use a universal variable so that all instances of Fish
|
||||
# have the same value for the variable.
|
||||
set-background-to-macOS.body = ''
|
||||
set-background-to-macOS = {
|
||||
body = ''
|
||||
# Returns 'Dark' if in dark mode fails otherwise.
|
||||
if defaults read -g AppleInterfaceStyle &>/dev/null
|
||||
set -U term_background dark
|
||||
|
@ -76,6 +77,8 @@
|
|||
set -U term_background light
|
||||
end
|
||||
'';
|
||||
onVariable = "PWD";
|
||||
};
|
||||
|
||||
# Sets Fish Shell to light or dark colorscheme based on `$term_background`.
|
||||
set-shell-colors = {
|
||||
|
|
Loading…
Reference in New Issue