Skip to content

Commit

Permalink
Update .config/nushell/scripts/theme.nu
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Mar 19, 2024
1 parent 1a2459e commit 53b2a23
Showing 1 changed file with 44 additions and 7 deletions.
51 changes: 44 additions & 7 deletions dot_config/nushell/scripts/theme.nu
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
}

0 comments on commit 53b2a23

Please sign in to comment.