-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .config/nushell/scripts/theme.nu
- Loading branch information
1 parent
1a2459e
commit 53b2a23
Showing
1 changed file
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,46 @@ | ||
module theme { | ||
export def dark [] { | ||
$env.config.color_config = $dark_theme | ||
} | ||
const zellij_dark_theme = ` | ||
themes { | ||
default { | ||
fg 245 | ||
bg 0 | ||
black 0 | ||
red 161 | ||
green 154 | ||
yellow 3 | ||
blue 4 | ||
magenta 5 | ||
cyan 6 | ||
white 231 | ||
orange 202 | ||
} | ||
} | ||
` | ||
|
||
const zellij_light_theme = ` | ||
themes { | ||
default { | ||
fg 248 | ||
bg 16 | ||
black 231 | ||
red 161 | ||
green 40 | ||
yellow 3 | ||
blue 4 | ||
magenta 5 | ||
cyan 6 | ||
white 246 | ||
orange 9 | ||
} | ||
} | ||
` | ||
export def --env dark [] { | ||
$env.config.color_config = $dark_theme | ||
$env.LS_COLORS = (vivid --color-mode 8-bit generate one-dark | str trim) | ||
$zellij_dark_theme | save --force ~/.config/zellij/themes/theme.kdl | ||
} | ||
|
||
export def light [] { | ||
$env.config.color_config = $light_theme | ||
} | ||
export def --env light [] { | ||
$env.config.color_config = $light_theme | ||
$env.LS_COLORS = (vivid --color-mode 8-bit generate one-light | str trim) | ||
$zellij_light_theme | save --force ~/.config/zellij/themes/theme.kdl | ||
} |