diff --git a/themes/README.md b/themes/README.md index eb447f4..9da692b 100644 --- a/themes/README.md +++ b/themes/README.md @@ -2,24 +2,96 @@ Credit to @lemnos and [all contributors](https://github.com/lemnos/theme.sh/blob/master/CREDITS.md). -## Use a colorscheme -### Without Nupm +Note: -To list all the themes, from the root of the repository run: +* If using Nupm, or the `/themes` directory of this package/repository is in your `$env.NU_LIB_DIRS`, then most of the commands below can be run from anywhere on your system. +* Otherwise, all examples assume they are run from the `/themes` directory. -```rust -ls ./themes/nu-themes +## Basic usage +### Activate a colorscheme + +```nu +source nu-themes/.nu ``` -To use the `dracula` theme for instance, please run: +For example, to use the `dracula` theme: -```rust -source ./themes/nu-themes/dracula.nu +```nu +source nu-themes/dracula.nu ``` The theme should be activated! -### Using Nupm +Note that these settings are for the current shell only. + +### Making changes permanent + +Add the command above to your `config.nu` file as shown in [the Configuration chapter of The Book](https://www.nushell.sh/book/configuration.html). + +Note that, if not using Nupm or a `NU_LIB_DIR` path, you should use the fully qualified path to the themes directory on your system. For example: + +```nu +source ~/nu_scripts/themes/nu-themes/dracula.nu +``` + +### List all themes + +Currently, this is done by simply manually listing the contents of the `nu-themes` directory: + +```nu +ls /themes/nu-themes +``` + +## Advanced + +Themes are composed of two parts: + +* A Nushell `color_config` record which is used to set `$env.config.color_config` +* A command to update your terminal's foreground, background, and cursor colors. While this assumes that your terminal supports the appropriate OSC codes, the codes need are very basic and should be supported by most any terminal. + +You may wish to set the Nushell `color_config` without changing your terminal's colors, or vice-versa. These themes provide additional commands that allow you to accomplish this. + +**Important:** Notice that while the "Basic usage" above uses `source` to activate the theme, the following examples *import* the theme module with a `use` statement. + +### Load a color_config + +For example, to load and use the `tokyo-night` theme's colors without changing the terminal settings: + +#### Display a theme's `color_config` settings + +```nu +> use nu-themes/tokyo-night.nu +> tokyo-night +``` + +#### Activate a Nushell `color_config` + +```nu +> use nu-themes/tokyo-night.nu +> tokyo-night set color_config +``` + +or + +```nu +> use nu-themes/tokyo-night.nu +> $env.config.color_config = (tokyo-night) +``` + +### Set terminal colors + +Or you can change the terminal settings to use the theme's foreground/background/cursor colors without changing the Nushell `color_config`. + +Again, using the `tokyo-night` theme as an example: + +```nushell +> use nu-themes/tokyo-night.nu +> tokyo-night update terminal +``` + +## Using Nupm + +The parent `nu_scripts` package can be installed and updated using [Nupm]. 1. Install [Nupm] by following the [Nupm instructions] 2. Download the `nu_scripts` repository @@ -38,44 +110,6 @@ The theme should be activated! > **Note** > installing the `nu-scripts` package will install `nu-themes` and other modules -5. Add the following in your config, substituting the `theme_name` as desired: - - ```nushell - source nu-themes/.nu - ``` - -## Loading a theme's color_config - -When sourcing the theme, as above, the theme will: - -* Set Nushell's `$env.config.color_config` to the appropriate theme colors -* If supported, set your terminal's foreground, background, and cursor colors to match the theme - -If you would like to do *just* one or the other, you can load a theme's color definition and terminal settings separately. - -### Load a color_config - -For example, to load and use the `tokyo-night` theme's colors: - -```nushell -> use nu-themes/tokyo-night.nu * - # Display the values -> tokyo-night - # Set the color_config to that scheme -> tokyo-night set color_config - # Or -> $env.config.color_config = (tokyo-night) -``` - -### Set terminal colors - -Again, using the `tokyo-night` theme as an example: - -```nushell -> use nu-themes/tokyo-night.nu * -> tokyo-night update terminal -``` - ## Screenshots Here are [screenshots](./screenshots/README.md) of our themes. diff --git a/themes/make.nu b/themes/make.nu deleted file mode 100755 index e0e09a7..0000000 --- a/themes/make.nu +++ /dev/null @@ -1,177 +0,0 @@ -#!/usr/bin/env nu -use ../stdlib-candidate/std-rfc str - -let current_dir = ($env.CURRENT_FILE | path dirname) - -let SOURCE = { - dir: ($current_dir | path join "lemnos" "themes") - local: ($current_dir | path join "lemnos") - remote: "https://github.com/lemnos/theme.sh" -} -let themes_dir = ($current_dir | path join "nu-themes") - -def make_theme [ name: string ] { - let colors = ( - open ($SOURCE.dir | path join $name) - | lines --skip-empty - | find --invert --regex '^#' - | split column " " - | rename name rgb - | transpose -r - | into record - ) - - $" - # Update terminal colors - export def \"update terminal\" [] { - let theme = \(main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $\" - \(ansi -o $osc_screen_foreground_color)\($theme.foreground)\(char bel) - \(ansi -o $osc_screen_background_color)\($theme.background)\(char bel) - \(ansi -o $osc_cursor_color)\($theme.cursor)\(char bel) - \" - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all \"\\n\" '' - | print $in - } - - # Update the Nushell configuration - export def --env \"set color_config\" [] { - $env.config.color_config = \(main) - } - - # Retrieve the theme settings - export def main [] { - return { - separator: '($colors.color7)' - leading_trailing_space_bg: { attr: 'n' } - header: { fg: '($colors.color2)' attr: 'b' } - empty: '($colors.color4)' - bool: {|| if $in { '($colors.color14)' } else { 'light_gray' } } - int: '($colors.color7)' - filesize: {|e| - if $e == 0b { - '($colors.color7)' - } else if $e < 1mb { - '($colors.color6)' - } else {{ fg: '($colors.color4)' }} - } - duration: '($colors.color7)' - date: {|| (char lparen)date now(char rparen) - $in | - if $in < 1hr { - { fg: '($colors.color1)' attr: 'b' } - } else if $in < 6hr { - '($colors.color1)' - } else if $in < 1day { - '($colors.color3)' - } else if $in < 3day { - '($colors.color2)' - } else if $in < 1wk { - { fg: '($colors.color2)' attr: 'b' } - } else if $in < 6wk { - '($colors.color6)' - } else if $in < 52wk { - '($colors.color4)' - } else { 'dark_gray' } - } - range: '($colors.color7)' - float: '($colors.color7)' - string: '($colors.color7)' - nothing: '($colors.color7)' - binary: '($colors.color7)' - cellpath: '($colors.color7)' - row_index: { fg: '($colors.color2)' attr: 'b' } - record: '($colors.color7)' - list: '($colors.color7)' - block: '($colors.color7)' - hints: 'dark_gray' - search_result: { fg: '($colors.color1)' bg: '($colors.color7)' } - - shape_and: { fg: '($colors.color5)' attr: 'b' } - shape_binary: { fg: '($colors.color5)' attr: 'b' } - shape_block: { fg: '($colors.color4)' attr: 'b' } - shape_bool: '($colors.color14)' - shape_custom: '($colors.color2)' - shape_datetime: { fg: '($colors.color6)' attr: 'b' } - shape_directory: '($colors.color6)' - shape_external: '($colors.color6)' - shape_externalarg: { fg: '($colors.color2)' attr: 'b' } - shape_filepath: '($colors.color6)' - shape_flag: { fg: '($colors.color4)' attr: 'b' } - shape_float: { fg: '($colors.color5)' attr: 'b' } - shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' } - shape_globpattern: { fg: '($colors.color6)' attr: 'b' } - shape_int: { fg: '($colors.color5)' attr: 'b' } - shape_internalcall: { fg: '($colors.color6)' attr: 'b' } - shape_list: { fg: '($colors.color6)' attr: 'b' } - shape_literal: '($colors.color4)' - shape_match_pattern: '($colors.color2)' - shape_matching_brackets: { attr: 'u' } - shape_nothing: '($colors.color14)' - shape_operator: '($colors.color3)' - shape_or: { fg: '($colors.color5)' attr: 'b' } - shape_pipe: { fg: '($colors.color5)' attr: 'b' } - shape_range: { fg: '($colors.color3)' attr: 'b' } - shape_record: { fg: '($colors.color6)' attr: 'b' } - shape_redirection: { fg: '($colors.color5)' attr: 'b' } - shape_signature: { fg: '($colors.color2)' attr: 'b' } - shape_string: '($colors.color2)' - shape_string_interpolation: { fg: '($colors.color6)' attr: 'b' } - shape_table: { fg: '($colors.color4)' attr: 'b' } - shape_variable: '($colors.color5)' - - background: '($colors.background)' - foreground: '($colors.foreground)' - cursor: '($colors.cursor)' - } - } - - export module activate { - export-env { - set color_config - update terminal - } - } - - # Activate the theme when sourced - use activate - " - | str dedent - | save --force ({ - parent: $themes_dir - stem: $"($name)" - extension: "nu" - } | path join) - -} - -def main [] { - mkdir $themes_dir - - try { git clone $SOURCE.remote $SOURCE.local } - - ls $SOURCE.dir - | get name - | path parse - | get stem - | each {|theme| - print $"Converting ($theme)" - try { - make_theme $theme - } catch {|e| - print -e $"Error converting ($theme)" - print -e $e.debug - } - } - | ignore - - print "all done" -} diff --git a/themes/nu-themes/3024-day.nu b/themes/nu-themes/3024-day.nu index e22f570..31251ca 100644 --- a/themes/nu-themes/3024-day.nu +++ b/themes/nu-themes/3024-day.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/3024-night.nu b/themes/nu-themes/3024-night.nu index f1354f7..bbbca59 100644 --- a/themes/nu-themes/3024-night.nu +++ b/themes/nu-themes/3024-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/3024.nu b/themes/nu-themes/3024.nu index ae9e63e..8d5064e 100644 --- a/themes/nu-themes/3024.nu +++ b/themes/nu-themes/3024.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/abyss.nu b/themes/nu-themes/abyss.nu index dfffac3..ffda6c4 100644 --- a/themes/nu-themes/abyss.nu +++ b/themes/nu-themes/abyss.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/aci.nu b/themes/nu-themes/aci.nu index c4ffb7b..ae6d792 100644 --- a/themes/nu-themes/aci.nu +++ b/themes/nu-themes/aci.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/aco.nu b/themes/nu-themes/aco.nu index c6c1af0..8ecd716 100644 --- a/themes/nu-themes/aco.nu +++ b/themes/nu-themes/aco.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/adventuretime.nu b/themes/nu-themes/adventuretime.nu index dd4e733..076b6de 100644 --- a/themes/nu-themes/adventuretime.nu +++ b/themes/nu-themes/adventuretime.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/afterglow.nu b/themes/nu-themes/afterglow.nu index 60e2034..1de891c 100644 --- a/themes/nu-themes/afterglow.nu +++ b/themes/nu-themes/afterglow.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/alien-blood.nu b/themes/nu-themes/alien-blood.nu index 2162115..b961118 100644 --- a/themes/nu-themes/alien-blood.nu +++ b/themes/nu-themes/alien-blood.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/alucard.nu b/themes/nu-themes/alucard.nu index e549936..7e98b34 100644 --- a/themes/nu-themes/alucard.nu +++ b/themes/nu-themes/alucard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/amora.nu b/themes/nu-themes/amora.nu index 061a1d2..dc067a6 100644 --- a/themes/nu-themes/amora.nu +++ b/themes/nu-themes/amora.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/apathy.nu b/themes/nu-themes/apathy.nu index 5db747e..369580a 100644 --- a/themes/nu-themes/apathy.nu +++ b/themes/nu-themes/apathy.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/apprentice.nu b/themes/nu-themes/apprentice.nu index 9af338e..e391a83 100644 --- a/themes/nu-themes/apprentice.nu +++ b/themes/nu-themes/apprentice.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/argonaut.nu b/themes/nu-themes/argonaut.nu index e449340..5607726 100644 --- a/themes/nu-themes/argonaut.nu +++ b/themes/nu-themes/argonaut.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/arthur.nu b/themes/nu-themes/arthur.nu index ea57bdf..e2dac1a 100644 --- a/themes/nu-themes/arthur.nu +++ b/themes/nu-themes/arthur.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ashes.nu b/themes/nu-themes/ashes.nu index 565e537..bb18ed6 100644 --- a/themes/nu-themes/ashes.nu +++ b/themes/nu-themes/ashes.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-cave-light.nu b/themes/nu-themes/atelier-cave-light.nu index 620b07a..7deac71 100644 --- a/themes/nu-themes/atelier-cave-light.nu +++ b/themes/nu-themes/atelier-cave-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-cave.nu b/themes/nu-themes/atelier-cave.nu index 47bd6d7..cbd30b6 100644 --- a/themes/nu-themes/atelier-cave.nu +++ b/themes/nu-themes/atelier-cave.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-dune-light.nu b/themes/nu-themes/atelier-dune-light.nu index 848494b..bc398f9 100644 --- a/themes/nu-themes/atelier-dune-light.nu +++ b/themes/nu-themes/atelier-dune-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-dune.nu b/themes/nu-themes/atelier-dune.nu index 18a46d2..eefc66d 100644 --- a/themes/nu-themes/atelier-dune.nu +++ b/themes/nu-themes/atelier-dune.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-estuary-light.nu b/themes/nu-themes/atelier-estuary-light.nu index 421064f..0d24482 100644 --- a/themes/nu-themes/atelier-estuary-light.nu +++ b/themes/nu-themes/atelier-estuary-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-estuary.nu b/themes/nu-themes/atelier-estuary.nu index e52e217..c4ff550 100644 --- a/themes/nu-themes/atelier-estuary.nu +++ b/themes/nu-themes/atelier-estuary.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-forest-light.nu b/themes/nu-themes/atelier-forest-light.nu index 7b16452..0132050 100644 --- a/themes/nu-themes/atelier-forest-light.nu +++ b/themes/nu-themes/atelier-forest-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-forest.nu b/themes/nu-themes/atelier-forest.nu index 3c378a8..90fdb18 100644 --- a/themes/nu-themes/atelier-forest.nu +++ b/themes/nu-themes/atelier-forest.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-heath-light.nu b/themes/nu-themes/atelier-heath-light.nu index 9ef55c3..ab7a851 100644 --- a/themes/nu-themes/atelier-heath-light.nu +++ b/themes/nu-themes/atelier-heath-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-heath.nu b/themes/nu-themes/atelier-heath.nu index 2115206..d8b6ad8 100644 --- a/themes/nu-themes/atelier-heath.nu +++ b/themes/nu-themes/atelier-heath.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-lakeside-light.nu b/themes/nu-themes/atelier-lakeside-light.nu index 4ca2b16..ffe96fe 100644 --- a/themes/nu-themes/atelier-lakeside-light.nu +++ b/themes/nu-themes/atelier-lakeside-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-lakeside.nu b/themes/nu-themes/atelier-lakeside.nu index 2426ebe..8f25d7c 100644 --- a/themes/nu-themes/atelier-lakeside.nu +++ b/themes/nu-themes/atelier-lakeside.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-plateau-light.nu b/themes/nu-themes/atelier-plateau-light.nu index 594ba26..ae7cd6e 100644 --- a/themes/nu-themes/atelier-plateau-light.nu +++ b/themes/nu-themes/atelier-plateau-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-plateau.nu b/themes/nu-themes/atelier-plateau.nu index 9e7eb57..8e124ff 100644 --- a/themes/nu-themes/atelier-plateau.nu +++ b/themes/nu-themes/atelier-plateau.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-savanna-light.nu b/themes/nu-themes/atelier-savanna-light.nu index 17e0d39..94e413d 100644 --- a/themes/nu-themes/atelier-savanna-light.nu +++ b/themes/nu-themes/atelier-savanna-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-savanna.nu b/themes/nu-themes/atelier-savanna.nu index 5c71107..6ddecd1 100644 --- a/themes/nu-themes/atelier-savanna.nu +++ b/themes/nu-themes/atelier-savanna.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-seaside-light.nu b/themes/nu-themes/atelier-seaside-light.nu index 9493d3f..acebc5e 100644 --- a/themes/nu-themes/atelier-seaside-light.nu +++ b/themes/nu-themes/atelier-seaside-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-seaside.nu b/themes/nu-themes/atelier-seaside.nu index df0832c..344c731 100644 --- a/themes/nu-themes/atelier-seaside.nu +++ b/themes/nu-themes/atelier-seaside.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-sulphurpool-light.nu b/themes/nu-themes/atelier-sulphurpool-light.nu index a0f6fbb..c69cdb5 100644 --- a/themes/nu-themes/atelier-sulphurpool-light.nu +++ b/themes/nu-themes/atelier-sulphurpool-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atelier-sulphurpool.nu b/themes/nu-themes/atelier-sulphurpool.nu index 54f7f54..4d985e9 100644 --- a/themes/nu-themes/atelier-sulphurpool.nu +++ b/themes/nu-themes/atelier-sulphurpool.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atlas.nu b/themes/nu-themes/atlas.nu index 4617242..564db9c 100644 --- a/themes/nu-themes/atlas.nu +++ b/themes/nu-themes/atlas.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atom-one-light.nu b/themes/nu-themes/atom-one-light.nu index e8a6cb9..52822ae 100644 --- a/themes/nu-themes/atom-one-light.nu +++ b/themes/nu-themes/atom-one-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/atom.nu b/themes/nu-themes/atom.nu index 29b2b5b..b950d18 100644 --- a/themes/nu-themes/atom.nu +++ b/themes/nu-themes/atom.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ayu-light.nu b/themes/nu-themes/ayu-light.nu index 696d6e6..a1c7105 100644 --- a/themes/nu-themes/ayu-light.nu +++ b/themes/nu-themes/ayu-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ayu-mirage-simple-cursor.nu b/themes/nu-themes/ayu-mirage-simple-cursor.nu index 57e2640..c18d671 100644 --- a/themes/nu-themes/ayu-mirage-simple-cursor.nu +++ b/themes/nu-themes/ayu-mirage-simple-cursor.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ayu-mirage.nu b/themes/nu-themes/ayu-mirage.nu index df1927c..380a68e 100644 --- a/themes/nu-themes/ayu-mirage.nu +++ b/themes/nu-themes/ayu-mirage.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ayu.nu b/themes/nu-themes/ayu.nu index f7ce41e..6c882a1 100644 --- a/themes/nu-themes/ayu.nu +++ b/themes/nu-themes/ayu.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/azu.nu b/themes/nu-themes/azu.nu index 16867e7..bb0a82a 100644 --- a/themes/nu-themes/azu.nu +++ b/themes/nu-themes/azu.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/batman.nu b/themes/nu-themes/batman.nu index 3fd99b6..fa0a2ce 100644 --- a/themes/nu-themes/batman.nu +++ b/themes/nu-themes/batman.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/belafonte-day.nu b/themes/nu-themes/belafonte-day.nu index 6515a4d..4fd9ec2 100644 --- a/themes/nu-themes/belafonte-day.nu +++ b/themes/nu-themes/belafonte-day.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/belafonte-night.nu b/themes/nu-themes/belafonte-night.nu index 8e9ed54..f0f8b88 100644 --- a/themes/nu-themes/belafonte-night.nu +++ b/themes/nu-themes/belafonte-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/bespin.nu b/themes/nu-themes/bespin.nu index b11d4a0..2c4f7d1 100644 --- a/themes/nu-themes/bespin.nu +++ b/themes/nu-themes/bespin.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/bim.nu b/themes/nu-themes/bim.nu index 4c20bd3..adc4667 100644 --- a/themes/nu-themes/bim.nu +++ b/themes/nu-themes/bim.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/birds-of-paradise.nu b/themes/nu-themes/birds-of-paradise.nu index 4da1c90..8d2d4f2 100644 --- a/themes/nu-themes/birds-of-paradise.nu +++ b/themes/nu-themes/birds-of-paradise.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-bathory.nu b/themes/nu-themes/black-metal-bathory.nu index 1db86af..81c2ac4 100644 --- a/themes/nu-themes/black-metal-bathory.nu +++ b/themes/nu-themes/black-metal-bathory.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-burzum.nu b/themes/nu-themes/black-metal-burzum.nu index 951f78f..aeb7392 100644 --- a/themes/nu-themes/black-metal-burzum.nu +++ b/themes/nu-themes/black-metal-burzum.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-dark-funeral.nu b/themes/nu-themes/black-metal-dark-funeral.nu index 2d934a9..81f1a47 100644 --- a/themes/nu-themes/black-metal-dark-funeral.nu +++ b/themes/nu-themes/black-metal-dark-funeral.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-gorgoroth.nu b/themes/nu-themes/black-metal-gorgoroth.nu index 65ead61..d9af80b 100644 --- a/themes/nu-themes/black-metal-gorgoroth.nu +++ b/themes/nu-themes/black-metal-gorgoroth.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-immortal.nu b/themes/nu-themes/black-metal-immortal.nu index fcedb79..152b51d 100644 --- a/themes/nu-themes/black-metal-immortal.nu +++ b/themes/nu-themes/black-metal-immortal.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-khold.nu b/themes/nu-themes/black-metal-khold.nu index c08e142..1a0b8be 100644 --- a/themes/nu-themes/black-metal-khold.nu +++ b/themes/nu-themes/black-metal-khold.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-marduk.nu b/themes/nu-themes/black-metal-marduk.nu index 0abf6eb..eaf6c81 100644 --- a/themes/nu-themes/black-metal-marduk.nu +++ b/themes/nu-themes/black-metal-marduk.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-mayhem.nu b/themes/nu-themes/black-metal-mayhem.nu index 48ae46d..3a32f13 100644 --- a/themes/nu-themes/black-metal-mayhem.nu +++ b/themes/nu-themes/black-metal-mayhem.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-nile.nu b/themes/nu-themes/black-metal-nile.nu index f75f749..020ef78 100644 --- a/themes/nu-themes/black-metal-nile.nu +++ b/themes/nu-themes/black-metal-nile.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal-venom.nu b/themes/nu-themes/black-metal-venom.nu index 603eee4..7a74ada 100644 --- a/themes/nu-themes/black-metal-venom.nu +++ b/themes/nu-themes/black-metal-venom.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/black-metal.nu b/themes/nu-themes/black-metal.nu index 7aa096e..b099ee5 100644 --- a/themes/nu-themes/black-metal.nu +++ b/themes/nu-themes/black-metal.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/blazer.nu b/themes/nu-themes/blazer.nu index 260bde7..270610c 100644 --- a/themes/nu-themes/blazer.nu +++ b/themes/nu-themes/blazer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/borland.nu b/themes/nu-themes/borland.nu index e9b9769..78fb5c1 100644 --- a/themes/nu-themes/borland.nu +++ b/themes/nu-themes/borland.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/brewer.nu b/themes/nu-themes/brewer.nu index 1fdd41e..b116eaf 100644 --- a/themes/nu-themes/brewer.nu +++ b/themes/nu-themes/brewer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/bright-lights.nu b/themes/nu-themes/bright-lights.nu index 43b2ced..2444a58 100644 --- a/themes/nu-themes/bright-lights.nu +++ b/themes/nu-themes/bright-lights.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/bright.nu b/themes/nu-themes/bright.nu index 7175e33..4e92f7f 100644 --- a/themes/nu-themes/bright.nu +++ b/themes/nu-themes/bright.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/broadcast.nu b/themes/nu-themes/broadcast.nu index c93c4e3..d54a8cf 100644 --- a/themes/nu-themes/broadcast.nu +++ b/themes/nu-themes/broadcast.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/brogrammer.nu b/themes/nu-themes/brogrammer.nu index 6e0fdc8..fe4a57d 100644 --- a/themes/nu-themes/brogrammer.nu +++ b/themes/nu-themes/brogrammer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/brushtrees-dark.nu b/themes/nu-themes/brushtrees-dark.nu index fc64cb3..56f2a90 100644 --- a/themes/nu-themes/brushtrees-dark.nu +++ b/themes/nu-themes/brushtrees-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/brushtrees.nu b/themes/nu-themes/brushtrees.nu index d5227df..d0bf191 100644 --- a/themes/nu-themes/brushtrees.nu +++ b/themes/nu-themes/brushtrees.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/c64.nu b/themes/nu-themes/c64.nu index e67ab8d..2ee12ef 100644 --- a/themes/nu-themes/c64.nu +++ b/themes/nu-themes/c64.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/cai.nu b/themes/nu-themes/cai.nu index 5251b7f..cb32967 100644 --- a/themes/nu-themes/cai.nu +++ b/themes/nu-themes/cai.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/catppuccin-latte.nu b/themes/nu-themes/catppuccin-latte.nu new file mode 100644 index 0000000..659c7f0 --- /dev/null +++ b/themes/nu-themes/catppuccin-latte.nu @@ -0,0 +1,150 @@ +# Retrieve the theme settings +export def main [] { return { + const color_palette = { + rosewater: "#dc8a78" + flamingo: "#dd7878" + pink: "#ea76cb" + mauve: "#8839ef" + red: "#d20f39" + maroon: "#e64553" + peach: "#fe640b" + yellow: "#df8e1d" + green: "#40a02b" + teal: "#179299" + sky: "#04a5e5" + sapphire: "#209fb5" + blue: "#1e66f5" + lavender: "#7287fd" + text: "#4c4f69" + subtext1: "#5c5f77" + subtext0: "#6c6f85" + overlay2: "#7c7f93" + overlay1: "#8c8fa1" + overlay0: "#9ca0b0" + surface2: "#acb0be" + surface1: "#bcc0cc" + surface0: "#ccd0da" + crust: "#dce0e8" + mantle: "#e6e9ef" + base: "#eff1f5" + } + + separator: $color_palette.overlay0 + leading_trailing_space_bg: { attr: "n" } + header: { fg: $color_palette.blue attr: "b" } + empty: $color_palette.lavender + bool: $color_palette.lavender + int: $color_palette.peach + duration: $color_palette.text + filesize: {|e| + if $e < 1mb { + $color_palette.green + } else if $e < 100mb { + $color_palette.yellow + } else if $e < 500mb { + $color_palette.peach + } else if $e < 800mb { + $color_palette.maroon + } else if $e > 800mb { + $color_palette.red + } + } + date: {|| (date now) - $in | + if $in < 1hr { + $color_palette.green + } else if $in < 1day { + $color_palette.yellow + } else if $in < 3day { + $color_palette.peach + } else if $in < 1wk { + $color_palette.maroon + } else if $in > 1wk { + $color_palette.red + } + } + range: $color_palette.text + float: $color_palette.text + string: $color_palette.text + nothing: $color_palette.text + binary: $color_palette.text + cellpath: $color_palette.text + row_index: { fg: $color_palette.mauve attr: "b" } + record: $color_palette.text + list: $color_palette.text + block: $color_palette.text + hints: $color_palette.overlay1 + search_result: { fg: $color_palette.red bg: $color_palette.text } + + shape_and: { fg: $color_palette.pink attr: "b" } + shape_binary: { fg: $color_palette.pink attr: "b" } + shape_block: { fg: $color_palette.blue attr: "b" } + shape_bool: $color_palette.teal + shape_custom: $color_palette.green + shape_datetime: { fg: $color_palette.teal attr: "b" } + shape_directory: $color_palette.teal + shape_external: $color_palette.teal + shape_externalarg: { fg: $color_palette.green attr: "b" } + shape_filepath: $color_palette.teal + shape_flag: { fg: $color_palette.blue attr: "b" } + shape_float: { fg: $color_palette.pink attr: "b" } + shape_garbage: { fg: $color_palette.text bg: $color_palette.red attr: "b" } + shape_globpattern: { fg: $color_palette.teal attr: "b" } + shape_int: { fg: $color_palette.pink attr: "b" } + shape_internalcall: { fg: $color_palette.teal attr: "b" } + shape_list: { fg: $color_palette.teal attr: "b" } + shape_literal: $color_palette.blue + shape_match_pattern: $color_palette.green + shape_matching_brackets: { attr: "u" } + shape_nothing: $color_palette.teal + shape_operator: $color_palette.peach + shape_or: { fg: $color_palette.pink attr: "b" } + shape_pipe: { fg: $color_palette.pink attr: "b" } + shape_range: { fg: $color_palette.peach attr: "b" } + shape_record: { fg: $color_palette.teal attr: "b" } + shape_redirection: { fg: $color_palette.pink attr: "b" } + shape_signature: { fg: $color_palette.green attr: "b" } + shape_string: $color_palette.green + shape_string_interpolation: { fg: $color_palette.teal attr: "b" } + shape_table: { fg: $color_palette.blue attr: "b" } + shape_variable: $color_palette.pink + + background: $color_palette.base + foreground: $color_palette.text + cursor: $color_palette.blue +}} + +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + +export module activate { + export-env { + set color_config + update terminal + } +} + +# Activate the theme when sourced +use activate \ No newline at end of file diff --git a/themes/nu-themes/catppuccin-mocha.nu b/themes/nu-themes/catppuccin-mocha.nu new file mode 100644 index 0000000..e096a62 --- /dev/null +++ b/themes/nu-themes/catppuccin-mocha.nu @@ -0,0 +1,150 @@ +# Retrieve the theme settings +export def main [] { return { + const color_palette = { + rosewater: "#f5e0dc" + flamingo: "#f2cdcd" + pink: "#f5c2e7" + mauve: "#cba6f7" + red: "#f38ba8" + maroon: "#eba0ac" + peach: "#fab387" + yellow: "#f9e2af" + green: "#a6e3a1" + teal: "#94e2d5" + sky: "#89dceb" + sapphire: "#74c7ec" + blue: "#89b4fa" + lavender: "#b4befe" + text: "#cdd6f4" + subtext1: "#bac2de" + subtext0: "#a6adc8" + overlay2: "#9399b2" + overlay1: "#7f849c" + overlay0: "#6c7086" + surface2: "#585b70" + surface1: "#45475a" + surface0: "#313244" + base: "#1e1e2e" + mantle: "#181825" + crust: "#11111b" + } + + separator: $color_palette.overlay0 + leading_trailing_space_bg: { attr: "n" } + header: { fg: $color_palette.blue attr: "b" } + empty: $color_palette.lavender + bool: $color_palette.lavender + int: $color_palette.peach + duration: $color_palette.text + filesize: {|e| + if $e < 1mb { + $color_palette.green + } else if $e < 100mb { + $color_palette.yellow + } else if $e < 500mb { + $color_palette.peach + } else if $e < 800mb { + $color_palette.maroon + } else if $e > 800mb { + $color_palette.red + } + } + date: {|| (date now) - $in | + if $in < 1hr { + $color_palette.green + } else if $in < 1day { + $color_palette.yellow + } else if $in < 3day { + $color_palette.peach + } else if $in < 1wk { + $color_palette.maroon + } else if $in > 1wk { + $color_palette.red + } + } + range: $color_palette.text + float: $color_palette.text + string: $color_palette.text + nothing: $color_palette.text + binary: $color_palette.text + cellpath: $color_palette.text + row_index: { fg: $color_palette.mauve attr: "b" } + record: $color_palette.text + list: $color_palette.text + block: $color_palette.text + hints: $color_palette.overlay1 + search_result: { fg: $color_palette.red bg: $color_palette.text } + + shape_and: { fg: $color_palette.pink attr: "b" } + shape_binary: { fg: $color_palette.pink attr: "b" } + shape_block: { fg: $color_palette.blue attr: "b" } + shape_bool: $color_palette.teal + shape_custom: $color_palette.green + shape_datetime: { fg: $color_palette.teal attr: "b" } + shape_directory: $color_palette.teal + shape_external: $color_palette.teal + shape_externalarg: { fg: $color_palette.green attr: "b" } + shape_filepath: $color_palette.teal + shape_flag: { fg: $color_palette.blue attr: "b" } + shape_float: { fg: $color_palette.pink attr: "b" } + shape_garbage: { fg: $color_palette.text bg: $color_palette.red attr: "b" } + shape_globpattern: { fg: $color_palette.teal attr: "b" } + shape_int: { fg: $color_palette.pink attr: "b" } + shape_internalcall: { fg: $color_palette.teal attr: "b" } + shape_list: { fg: $color_palette.teal attr: "b" } + shape_literal: $color_palette.blue + shape_match_pattern: $color_palette.green + shape_matching_brackets: { attr: "u" } + shape_nothing: $color_palette.teal + shape_operator: $color_palette.peach + shape_or: { fg: $color_palette.pink attr: "b" } + shape_pipe: { fg: $color_palette.pink attr: "b" } + shape_range: { fg: $color_palette.peach attr: "b" } + shape_record: { fg: $color_palette.teal attr: "b" } + shape_redirection: { fg: $color_palette.pink attr: "b" } + shape_signature: { fg: $color_palette.green attr: "b" } + shape_string: $color_palette.green + shape_string_interpolation: { fg: $color_palette.teal attr: "b" } + shape_table: { fg: $color_palette.blue attr: "b" } + shape_variable: $color_palette.pink + + background: $color_palette.base + foreground: $color_palette.text + cursor: $color_palette.blue +}} + +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + +export module activate { + export-env { + set color_config + update terminal + } +} + +# Activate the theme when sourced +use activate \ No newline at end of file diff --git a/themes/nu-themes/chalk.nu b/themes/nu-themes/chalk.nu index 7e4414b..b39c226 100644 --- a/themes/nu-themes/chalk.nu +++ b/themes/nu-themes/chalk.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/chalkboard.nu b/themes/nu-themes/chalkboard.nu index 73fcc2c..402ac10 100644 --- a/themes/nu-themes/chalkboard.nu +++ b/themes/nu-themes/chalkboard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/challenger-deep.nu b/themes/nu-themes/challenger-deep.nu index 4a35611..00c47fd 100644 --- a/themes/nu-themes/challenger-deep.nu +++ b/themes/nu-themes/challenger-deep.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ciapre.nu b/themes/nu-themes/ciapre.nu index 5a55bfc..5c01691 100644 --- a/themes/nu-themes/ciapre.nu +++ b/themes/nu-themes/ciapre.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/circus.nu b/themes/nu-themes/circus.nu index 07f5043..d2fa777 100644 --- a/themes/nu-themes/circus.nu +++ b/themes/nu-themes/circus.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/classic-dark.nu b/themes/nu-themes/classic-dark.nu index 431b893..f578eb5 100644 --- a/themes/nu-themes/classic-dark.nu +++ b/themes/nu-themes/classic-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/classic-light.nu b/themes/nu-themes/classic-light.nu index dc2d133..b635e1b 100644 --- a/themes/nu-themes/classic-light.nu +++ b/themes/nu-themes/classic-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/clone-of-ubuntu.nu b/themes/nu-themes/clone-of-ubuntu.nu index f89c7cc..d08917e 100644 --- a/themes/nu-themes/clone-of-ubuntu.nu +++ b/themes/nu-themes/clone-of-ubuntu.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/clrs.nu b/themes/nu-themes/clrs.nu index 9d2e285..af499f8 100644 --- a/themes/nu-themes/clrs.nu +++ b/themes/nu-themes/clrs.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/cobalt-neon.nu b/themes/nu-themes/cobalt-neon.nu index d4cc2a8..ebca6ab 100644 --- a/themes/nu-themes/cobalt-neon.nu +++ b/themes/nu-themes/cobalt-neon.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/cobalt2.nu b/themes/nu-themes/cobalt2.nu index 0f9564a..e83e18b 100644 --- a/themes/nu-themes/cobalt2.nu +++ b/themes/nu-themes/cobalt2.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/codeschool.nu b/themes/nu-themes/codeschool.nu index 355ecf2..b4cba89 100644 --- a/themes/nu-themes/codeschool.nu +++ b/themes/nu-themes/codeschool.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/corvine.nu b/themes/nu-themes/corvine.nu index 49bc904..595e21a 100644 --- a/themes/nu-themes/corvine.nu +++ b/themes/nu-themes/corvine.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/crayon-pony-fish.nu b/themes/nu-themes/crayon-pony-fish.nu index 85e167e..3573fbf 100644 --- a/themes/nu-themes/crayon-pony-fish.nu +++ b/themes/nu-themes/crayon-pony-fish.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/cupcake.nu b/themes/nu-themes/cupcake.nu index 80809a3..4683312 100644 --- a/themes/nu-themes/cupcake.nu +++ b/themes/nu-themes/cupcake.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/cupertino.nu b/themes/nu-themes/cupertino.nu index edec4b6..8e0155c 100644 --- a/themes/nu-themes/cupertino.nu +++ b/themes/nu-themes/cupertino.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/danqing.nu b/themes/nu-themes/danqing.nu index ae0abf9..5e20d4b 100644 --- a/themes/nu-themes/danqing.nu +++ b/themes/nu-themes/danqing.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/darcula.nu b/themes/nu-themes/darcula.nu index cd93c52..bc935b9 100644 --- a/themes/nu-themes/darcula.nu +++ b/themes/nu-themes/darcula.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/dark-pastel.nu b/themes/nu-themes/dark-pastel.nu index 6eeed7a..771aa25 100644 --- a/themes/nu-themes/dark-pastel.nu +++ b/themes/nu-themes/dark-pastel.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/darkmoss.nu b/themes/nu-themes/darkmoss.nu index 94af5be..50465a9 100644 --- a/themes/nu-themes/darkmoss.nu +++ b/themes/nu-themes/darkmoss.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/darkside.nu b/themes/nu-themes/darkside.nu index 7470387..541cf60 100644 --- a/themes/nu-themes/darkside.nu +++ b/themes/nu-themes/darkside.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/darktooth.nu b/themes/nu-themes/darktooth.nu index 24e8609..205040a 100644 --- a/themes/nu-themes/darktooth.nu +++ b/themes/nu-themes/darktooth.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/darkviolet.nu b/themes/nu-themes/darkviolet.nu index bc497af..c967527 100644 --- a/themes/nu-themes/darkviolet.nu +++ b/themes/nu-themes/darkviolet.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/decaf.nu b/themes/nu-themes/decaf.nu index 0d21385..f086ce5 100644 --- a/themes/nu-themes/decaf.nu +++ b/themes/nu-themes/decaf.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/default-dark.nu b/themes/nu-themes/default-dark.nu index 80b8219..89797e0 100644 --- a/themes/nu-themes/default-dark.nu +++ b/themes/nu-themes/default-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/default-light.nu b/themes/nu-themes/default-light.nu index ffd2b90..5504e2e 100644 --- a/themes/nu-themes/default-light.nu +++ b/themes/nu-themes/default-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/desert-night.nu b/themes/nu-themes/desert-night.nu index 214006d..b6e3630 100644 --- a/themes/nu-themes/desert-night.nu +++ b/themes/nu-themes/desert-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/desert.nu b/themes/nu-themes/desert.nu index cb61db4..97e666f 100644 --- a/themes/nu-themes/desert.nu +++ b/themes/nu-themes/desert.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/dimmed-monokai.nu b/themes/nu-themes/dimmed-monokai.nu index 7d609ad..e0716ad 100644 --- a/themes/nu-themes/dimmed-monokai.nu +++ b/themes/nu-themes/dimmed-monokai.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/dirtysea.nu b/themes/nu-themes/dirtysea.nu index e48169f..beedbf1 100644 --- a/themes/nu-themes/dirtysea.nu +++ b/themes/nu-themes/dirtysea.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/dot-gov.nu b/themes/nu-themes/dot-gov.nu index 098be64..e070e8e 100644 --- a/themes/nu-themes/dot-gov.nu +++ b/themes/nu-themes/dot-gov.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/dracula.nu b/themes/nu-themes/dracula.nu index db783ed..0c02749 100644 --- a/themes/nu-themes/dracula.nu +++ b/themes/nu-themes/dracula.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/dumbledore.nu b/themes/nu-themes/dumbledore.nu index 0380f3b..5e70ea6 100644 --- a/themes/nu-themes/dumbledore.nu +++ b/themes/nu-themes/dumbledore.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/duotone-dark.nu b/themes/nu-themes/duotone-dark.nu index d5be708..7784a80 100644 --- a/themes/nu-themes/duotone-dark.nu +++ b/themes/nu-themes/duotone-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/e-n-c-o-m.nu b/themes/nu-themes/e-n-c-o-m.nu index 6f77d38..8de80ae 100644 --- a/themes/nu-themes/e-n-c-o-m.nu +++ b/themes/nu-themes/e-n-c-o-m.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/earthsong.nu b/themes/nu-themes/earthsong.nu index 5ef48f9..60409f4 100644 --- a/themes/nu-themes/earthsong.nu +++ b/themes/nu-themes/earthsong.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/edge-dark.nu b/themes/nu-themes/edge-dark.nu index 022ea94..fb4e309 100644 --- a/themes/nu-themes/edge-dark.nu +++ b/themes/nu-themes/edge-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/edge-light.nu b/themes/nu-themes/edge-light.nu index 6153ab0..08d768d 100644 --- a/themes/nu-themes/edge-light.nu +++ b/themes/nu-themes/edge-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/eighties.nu b/themes/nu-themes/eighties.nu index f746ea8..784bf33 100644 --- a/themes/nu-themes/eighties.nu +++ b/themes/nu-themes/eighties.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/elemental.nu b/themes/nu-themes/elemental.nu index 6307319..dfe8f37 100644 --- a/themes/nu-themes/elemental.nu +++ b/themes/nu-themes/elemental.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/elementary.nu b/themes/nu-themes/elementary.nu index 4dfc785..937cda9 100644 --- a/themes/nu-themes/elementary.nu +++ b/themes/nu-themes/elementary.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/elic.nu b/themes/nu-themes/elic.nu index c584157..dd1632e 100644 --- a/themes/nu-themes/elic.nu +++ b/themes/nu-themes/elic.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/elio.nu b/themes/nu-themes/elio.nu index ace4613..98eebc5 100644 --- a/themes/nu-themes/elio.nu +++ b/themes/nu-themes/elio.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/embark.nu b/themes/nu-themes/embark.nu index e1d1ebb..d0148ed 100644 --- a/themes/nu-themes/embark.nu +++ b/themes/nu-themes/embark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/embers.nu b/themes/nu-themes/embers.nu index 6909cdb..a3deb7a 100644 --- a/themes/nu-themes/embers.nu +++ b/themes/nu-themes/embers.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/equilibrium-dark.nu b/themes/nu-themes/equilibrium-dark.nu index c0c6f6b..0bc7d98 100644 --- a/themes/nu-themes/equilibrium-dark.nu +++ b/themes/nu-themes/equilibrium-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/equilibrium-gray-dark.nu b/themes/nu-themes/equilibrium-gray-dark.nu index c7f6c04..dda54dc 100644 --- a/themes/nu-themes/equilibrium-gray-dark.nu +++ b/themes/nu-themes/equilibrium-gray-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/equilibrium-gray-light.nu b/themes/nu-themes/equilibrium-gray-light.nu index 930270d..b3d57e9 100644 --- a/themes/nu-themes/equilibrium-gray-light.nu +++ b/themes/nu-themes/equilibrium-gray-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/equilibrium-light.nu b/themes/nu-themes/equilibrium-light.nu index afe0719..8767ee5 100644 --- a/themes/nu-themes/equilibrium-light.nu +++ b/themes/nu-themes/equilibrium-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/espresso-libre.nu b/themes/nu-themes/espresso-libre.nu index 692619c..4c5552f 100644 --- a/themes/nu-themes/espresso-libre.nu +++ b/themes/nu-themes/espresso-libre.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/espresso.nu b/themes/nu-themes/espresso.nu index 87ff7ac..bab44e1 100644 --- a/themes/nu-themes/espresso.nu +++ b/themes/nu-themes/espresso.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/eva-dim.nu b/themes/nu-themes/eva-dim.nu index 18e5715..dfe4a4b 100644 --- a/themes/nu-themes/eva-dim.nu +++ b/themes/nu-themes/eva-dim.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/eva.nu b/themes/nu-themes/eva.nu index 23220f9..89f259c 100644 --- a/themes/nu-themes/eva.nu +++ b/themes/nu-themes/eva.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/everforest-light.nu b/themes/nu-themes/everforest-light.nu index 6346ba9..88ebc49 100644 --- a/themes/nu-themes/everforest-light.nu +++ b/themes/nu-themes/everforest-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/everforest.nu b/themes/nu-themes/everforest.nu index fab5136..78d2b32 100644 --- a/themes/nu-themes/everforest.nu +++ b/themes/nu-themes/everforest.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/falcon.nu b/themes/nu-themes/falcon.nu index 535f0ef..7c41f1c 100644 --- a/themes/nu-themes/falcon.nu +++ b/themes/nu-themes/falcon.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/farin.nu b/themes/nu-themes/farin.nu index 0c767e9..9cfe4fb 100644 --- a/themes/nu-themes/farin.nu +++ b/themes/nu-themes/farin.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ffive.nu b/themes/nu-themes/ffive.nu index c465d43..9a325d3 100644 --- a/themes/nu-themes/ffive.nu +++ b/themes/nu-themes/ffive.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/fideloper.nu b/themes/nu-themes/fideloper.nu index fdd7777..f53cfaf 100644 --- a/themes/nu-themes/fideloper.nu +++ b/themes/nu-themes/fideloper.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/fishtank.nu b/themes/nu-themes/fishtank.nu index 4cda439..dd3a31a 100644 --- a/themes/nu-themes/fishtank.nu +++ b/themes/nu-themes/fishtank.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/flat.nu b/themes/nu-themes/flat.nu index 7165777..cd69b9d 100644 --- a/themes/nu-themes/flat.nu +++ b/themes/nu-themes/flat.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/flatland.nu b/themes/nu-themes/flatland.nu index 8aa00d1..2723fb1 100644 --- a/themes/nu-themes/flatland.nu +++ b/themes/nu-themes/flatland.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/floraverse.nu b/themes/nu-themes/floraverse.nu index cfd4374..ee601bd 100644 --- a/themes/nu-themes/floraverse.nu +++ b/themes/nu-themes/floraverse.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/forest-night.nu b/themes/nu-themes/forest-night.nu index 745ade3..98c14c9 100644 --- a/themes/nu-themes/forest-night.nu +++ b/themes/nu-themes/forest-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/foxnightly.nu b/themes/nu-themes/foxnightly.nu index 5681f59..e60e5c0 100644 --- a/themes/nu-themes/foxnightly.nu +++ b/themes/nu-themes/foxnightly.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/framer.nu b/themes/nu-themes/framer.nu index 607f047..51914b2 100644 --- a/themes/nu-themes/framer.nu +++ b/themes/nu-themes/framer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/freya.nu b/themes/nu-themes/freya.nu index a786944..804996f 100644 --- a/themes/nu-themes/freya.nu +++ b/themes/nu-themes/freya.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/frontend-delight.nu b/themes/nu-themes/frontend-delight.nu index 39a214c..8e8709b 100644 --- a/themes/nu-themes/frontend-delight.nu +++ b/themes/nu-themes/frontend-delight.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/frontend-fun-forrest.nu b/themes/nu-themes/frontend-fun-forrest.nu index 7e6a170..9846637 100644 --- a/themes/nu-themes/frontend-fun-forrest.nu +++ b/themes/nu-themes/frontend-fun-forrest.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/frontend-galaxy.nu b/themes/nu-themes/frontend-galaxy.nu index 31bb237..c07cc35 100644 --- a/themes/nu-themes/frontend-galaxy.nu +++ b/themes/nu-themes/frontend-galaxy.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/fruit-soda.nu b/themes/nu-themes/fruit-soda.nu index 8926e23..465c8dc 100644 --- a/themes/nu-themes/fruit-soda.nu +++ b/themes/nu-themes/fruit-soda.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gigavolt.nu b/themes/nu-themes/gigavolt.nu index 5b97d38..612bdbf 100644 --- a/themes/nu-themes/gigavolt.nu +++ b/themes/nu-themes/gigavolt.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-dark-colorblind.nu b/themes/nu-themes/github-dark-colorblind.nu index fe178a4..7af2e9c 100644 --- a/themes/nu-themes/github-dark-colorblind.nu +++ b/themes/nu-themes/github-dark-colorblind.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-dark-default.nu b/themes/nu-themes/github-dark-default.nu index fe178a4..7af2e9c 100644 --- a/themes/nu-themes/github-dark-default.nu +++ b/themes/nu-themes/github-dark-default.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-dark.nu b/themes/nu-themes/github-dark.nu index 45d35bb..9982778 100644 --- a/themes/nu-themes/github-dark.nu +++ b/themes/nu-themes/github-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-dimmed.nu b/themes/nu-themes/github-dimmed.nu index 3982517..56cd57b 100644 --- a/themes/nu-themes/github-dimmed.nu +++ b/themes/nu-themes/github-dimmed.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-light-colorblind.nu b/themes/nu-themes/github-light-colorblind.nu index 4d47d32..2c41784 100644 --- a/themes/nu-themes/github-light-colorblind.nu +++ b/themes/nu-themes/github-light-colorblind.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-light-default.nu b/themes/nu-themes/github-light-default.nu index 20c7b7e..b4a8bba 100644 --- a/themes/nu-themes/github-light-default.nu +++ b/themes/nu-themes/github-light-default.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github-light.nu b/themes/nu-themes/github-light.nu index 4277c33..daf30bf 100644 --- a/themes/nu-themes/github-light.nu +++ b/themes/nu-themes/github-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/github.nu b/themes/nu-themes/github.nu index daecc4a..51383e7 100644 --- a/themes/nu-themes/github.nu +++ b/themes/nu-themes/github.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/glacier.nu b/themes/nu-themes/glacier.nu index 38b02da..2d285da 100644 --- a/themes/nu-themes/glacier.nu +++ b/themes/nu-themes/glacier.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/goa-base.nu b/themes/nu-themes/goa-base.nu index 885e1a2..4fee970 100644 --- a/themes/nu-themes/goa-base.nu +++ b/themes/nu-themes/goa-base.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gooey.nu b/themes/nu-themes/gooey.nu index 7d1ccb4..2134847 100644 --- a/themes/nu-themes/gooey.nu +++ b/themes/nu-themes/gooey.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/google-dark.nu b/themes/nu-themes/google-dark.nu index 2b0351f..f3cf91f 100644 --- a/themes/nu-themes/google-dark.nu +++ b/themes/nu-themes/google-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/google-light.nu b/themes/nu-themes/google-light.nu index 3476032..eb99dd0 100644 --- a/themes/nu-themes/google-light.nu +++ b/themes/nu-themes/google-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/grape.nu b/themes/nu-themes/grape.nu index 9b6f9ba..d7d3f0c 100644 --- a/themes/nu-themes/grape.nu +++ b/themes/nu-themes/grape.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/grass.nu b/themes/nu-themes/grass.nu index f7dcc02..18a1b03 100644 --- a/themes/nu-themes/grass.nu +++ b/themes/nu-themes/grass.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/grayscale-dark.nu b/themes/nu-themes/grayscale-dark.nu index 4c45d3c..2507798 100644 --- a/themes/nu-themes/grayscale-dark.nu +++ b/themes/nu-themes/grayscale-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/grayscale-light.nu b/themes/nu-themes/grayscale-light.nu index 3cbcfae..9e23e0d 100644 --- a/themes/nu-themes/grayscale-light.nu +++ b/themes/nu-themes/grayscale-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/green-screen.nu b/themes/nu-themes/green-screen.nu index ca89843..c03d7bf 100644 --- a/themes/nu-themes/green-screen.nu +++ b/themes/nu-themes/green-screen.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/greenscreen.nu b/themes/nu-themes/greenscreen.nu index ca89843..c03d7bf 100644 --- a/themes/nu-themes/greenscreen.nu +++ b/themes/nu-themes/greenscreen.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbit.nu b/themes/nu-themes/gruvbit.nu index 009f3d1..6bcdd4e 100644 --- a/themes/nu-themes/gruvbit.nu +++ b/themes/nu-themes/gruvbit.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-dark-hard.nu b/themes/nu-themes/gruvbox-dark-hard.nu index 6154dc9..27ed565 100644 --- a/themes/nu-themes/gruvbox-dark-hard.nu +++ b/themes/nu-themes/gruvbox-dark-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-dark-medium.nu b/themes/nu-themes/gruvbox-dark-medium.nu index b0e6e4f..9f20b9d 100644 --- a/themes/nu-themes/gruvbox-dark-medium.nu +++ b/themes/nu-themes/gruvbox-dark-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-dark-pale.nu b/themes/nu-themes/gruvbox-dark-pale.nu index 2399733..2f52579 100644 --- a/themes/nu-themes/gruvbox-dark-pale.nu +++ b/themes/nu-themes/gruvbox-dark-pale.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-dark-soft.nu b/themes/nu-themes/gruvbox-dark-soft.nu index ef91211..da8d8d8 100644 --- a/themes/nu-themes/gruvbox-dark-soft.nu +++ b/themes/nu-themes/gruvbox-dark-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-dark.nu b/themes/nu-themes/gruvbox-dark.nu index cbfc264..c5dd4ff 100644 --- a/themes/nu-themes/gruvbox-dark.nu +++ b/themes/nu-themes/gruvbox-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-light-hard.nu b/themes/nu-themes/gruvbox-light-hard.nu index f305c0a..a21a356 100644 --- a/themes/nu-themes/gruvbox-light-hard.nu +++ b/themes/nu-themes/gruvbox-light-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-light-medium.nu b/themes/nu-themes/gruvbox-light-medium.nu index 8f6c3ce..fcab405 100644 --- a/themes/nu-themes/gruvbox-light-medium.nu +++ b/themes/nu-themes/gruvbox-light-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-light-soft.nu b/themes/nu-themes/gruvbox-light-soft.nu index 55e2b2a..cb8b747 100644 --- a/themes/nu-themes/gruvbox-light-soft.nu +++ b/themes/nu-themes/gruvbox-light-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-material-dark-hard.nu b/themes/nu-themes/gruvbox-material-dark-hard.nu index 52ea0d7..4e49b85 100644 --- a/themes/nu-themes/gruvbox-material-dark-hard.nu +++ b/themes/nu-themes/gruvbox-material-dark-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-material-dark-medium.nu b/themes/nu-themes/gruvbox-material-dark-medium.nu index 79f4954..300aa45 100644 --- a/themes/nu-themes/gruvbox-material-dark-medium.nu +++ b/themes/nu-themes/gruvbox-material-dark-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-material-dark-soft.nu b/themes/nu-themes/gruvbox-material-dark-soft.nu index 4960af1..ed28733 100644 --- a/themes/nu-themes/gruvbox-material-dark-soft.nu +++ b/themes/nu-themes/gruvbox-material-dark-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-material-light-hard.nu b/themes/nu-themes/gruvbox-material-light-hard.nu index 36ada08..e2b76ac 100644 --- a/themes/nu-themes/gruvbox-material-light-hard.nu +++ b/themes/nu-themes/gruvbox-material-light-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-material-light-medium.nu b/themes/nu-themes/gruvbox-material-light-medium.nu index 2254133..05ae541 100644 --- a/themes/nu-themes/gruvbox-material-light-medium.nu +++ b/themes/nu-themes/gruvbox-material-light-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-material-light-soft.nu b/themes/nu-themes/gruvbox-material-light-soft.nu index 072e631..11e4f1f 100644 --- a/themes/nu-themes/gruvbox-material-light-soft.nu +++ b/themes/nu-themes/gruvbox-material-light-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-mix-dark-hard.nu b/themes/nu-themes/gruvbox-mix-dark-hard.nu index f29e789..a307133 100644 --- a/themes/nu-themes/gruvbox-mix-dark-hard.nu +++ b/themes/nu-themes/gruvbox-mix-dark-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-mix-dark-medium.nu b/themes/nu-themes/gruvbox-mix-dark-medium.nu index e8f92f9..6dc0614 100644 --- a/themes/nu-themes/gruvbox-mix-dark-medium.nu +++ b/themes/nu-themes/gruvbox-mix-dark-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-mix-dark-soft.nu b/themes/nu-themes/gruvbox-mix-dark-soft.nu index 86693a6..165c669 100644 --- a/themes/nu-themes/gruvbox-mix-dark-soft.nu +++ b/themes/nu-themes/gruvbox-mix-dark-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-mix-light-hard.nu b/themes/nu-themes/gruvbox-mix-light-hard.nu index 3aad7d0..9e8b96f 100644 --- a/themes/nu-themes/gruvbox-mix-light-hard.nu +++ b/themes/nu-themes/gruvbox-mix-light-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-mix-light-medium.nu b/themes/nu-themes/gruvbox-mix-light-medium.nu index 7663dce..c90c430 100644 --- a/themes/nu-themes/gruvbox-mix-light-medium.nu +++ b/themes/nu-themes/gruvbox-mix-light-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-mix-light-soft.nu b/themes/nu-themes/gruvbox-mix-light-soft.nu index 9ae3fbe..9e2839e 100644 --- a/themes/nu-themes/gruvbox-mix-light-soft.nu +++ b/themes/nu-themes/gruvbox-mix-light-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-original-dark-hard.nu b/themes/nu-themes/gruvbox-original-dark-hard.nu index 7609980..f30b595 100644 --- a/themes/nu-themes/gruvbox-original-dark-hard.nu +++ b/themes/nu-themes/gruvbox-original-dark-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-original-dark-medium.nu b/themes/nu-themes/gruvbox-original-dark-medium.nu index 15932e1..be6c8c7 100644 --- a/themes/nu-themes/gruvbox-original-dark-medium.nu +++ b/themes/nu-themes/gruvbox-original-dark-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-original-dark-soft.nu b/themes/nu-themes/gruvbox-original-dark-soft.nu index 1ef84cb..b8227c2 100644 --- a/themes/nu-themes/gruvbox-original-dark-soft.nu +++ b/themes/nu-themes/gruvbox-original-dark-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-original-light-hard.nu b/themes/nu-themes/gruvbox-original-light-hard.nu index fa4c80c..462284c 100644 --- a/themes/nu-themes/gruvbox-original-light-hard.nu +++ b/themes/nu-themes/gruvbox-original-light-hard.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-original-light-medium.nu b/themes/nu-themes/gruvbox-original-light-medium.nu index 9f2eb7b..510ec9d 100644 --- a/themes/nu-themes/gruvbox-original-light-medium.nu +++ b/themes/nu-themes/gruvbox-original-light-medium.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox-original-light-soft.nu b/themes/nu-themes/gruvbox-original-light-soft.nu index dd45b68..8f01647 100644 --- a/themes/nu-themes/gruvbox-original-light-soft.nu +++ b/themes/nu-themes/gruvbox-original-light-soft.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/gruvbox.nu b/themes/nu-themes/gruvbox.nu index f3ed850..2973076 100644 --- a/themes/nu-themes/gruvbox.nu +++ b/themes/nu-themes/gruvbox.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hardcore.nu b/themes/nu-themes/hardcore.nu index 4e6f805..827deff 100644 --- a/themes/nu-themes/hardcore.nu +++ b/themes/nu-themes/hardcore.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/harmonic-dark.nu b/themes/nu-themes/harmonic-dark.nu index 4a5388d..a1a131e 100644 --- a/themes/nu-themes/harmonic-dark.nu +++ b/themes/nu-themes/harmonic-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/harmonic-light.nu b/themes/nu-themes/harmonic-light.nu index 878d37e..d11a80d 100644 --- a/themes/nu-themes/harmonic-light.nu +++ b/themes/nu-themes/harmonic-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/harmonic16-dark.nu b/themes/nu-themes/harmonic16-dark.nu index 4a5388d..a1a131e 100644 --- a/themes/nu-themes/harmonic16-dark.nu +++ b/themes/nu-themes/harmonic16-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/harmonic16-light.nu b/themes/nu-themes/harmonic16-light.nu index 878d37e..d11a80d 100644 --- a/themes/nu-themes/harmonic16-light.nu +++ b/themes/nu-themes/harmonic16-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/harper.nu b/themes/nu-themes/harper.nu index 89056be..3b7fe21 100644 --- a/themes/nu-themes/harper.nu +++ b/themes/nu-themes/harper.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/heetch-light.nu b/themes/nu-themes/heetch-light.nu index 74f305c..63263e0 100644 --- a/themes/nu-themes/heetch-light.nu +++ b/themes/nu-themes/heetch-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/heetch.nu b/themes/nu-themes/heetch.nu index c1bf149..b88f753 100644 --- a/themes/nu-themes/heetch.nu +++ b/themes/nu-themes/heetch.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/helios.nu b/themes/nu-themes/helios.nu index 1df0f9f..fbba252 100644 --- a/themes/nu-themes/helios.nu +++ b/themes/nu-themes/helios.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hemisu-dark.nu b/themes/nu-themes/hemisu-dark.nu index e8b6540..4228036 100644 --- a/themes/nu-themes/hemisu-dark.nu +++ b/themes/nu-themes/hemisu-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hemisu-light.nu b/themes/nu-themes/hemisu-light.nu index 41c99dd..46ad8e0 100644 --- a/themes/nu-themes/hemisu-light.nu +++ b/themes/nu-themes/hemisu-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/highway.nu b/themes/nu-themes/highway.nu index 3abea87..882ffc1 100644 --- a/themes/nu-themes/highway.nu +++ b/themes/nu-themes/highway.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hipster-green.nu b/themes/nu-themes/hipster-green.nu index c1f4a96..25a847a 100644 --- a/themes/nu-themes/hipster-green.nu +++ b/themes/nu-themes/hipster-green.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/homebrew.nu b/themes/nu-themes/homebrew.nu index 157e701..5c36ada 100644 --- a/themes/nu-themes/homebrew.nu +++ b/themes/nu-themes/homebrew.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hopscotch.nu b/themes/nu-themes/hopscotch.nu index 5bdd646..63a687c 100644 --- a/themes/nu-themes/hopscotch.nu +++ b/themes/nu-themes/hopscotch.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/horizon-dark.nu b/themes/nu-themes/horizon-dark.nu index 254015a..f301021 100644 --- a/themes/nu-themes/horizon-dark.nu +++ b/themes/nu-themes/horizon-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/horizon-light.nu b/themes/nu-themes/horizon-light.nu index 978db12..a626040 100644 --- a/themes/nu-themes/horizon-light.nu +++ b/themes/nu-themes/horizon-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/horizon-terminal-dark.nu b/themes/nu-themes/horizon-terminal-dark.nu index a7f0547..cdaff2b 100644 --- a/themes/nu-themes/horizon-terminal-dark.nu +++ b/themes/nu-themes/horizon-terminal-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/horizon-terminal-light.nu b/themes/nu-themes/horizon-terminal-light.nu index 032b003..f835d04 100644 --- a/themes/nu-themes/horizon-terminal-light.nu +++ b/themes/nu-themes/horizon-terminal-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/humanoid-dark.nu b/themes/nu-themes/humanoid-dark.nu index 4b49cbf..49a8382 100644 --- a/themes/nu-themes/humanoid-dark.nu +++ b/themes/nu-themes/humanoid-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/humanoid-light.nu b/themes/nu-themes/humanoid-light.nu index 2c10778..bd77738 100644 --- a/themes/nu-themes/humanoid-light.nu +++ b/themes/nu-themes/humanoid-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hurtado.nu b/themes/nu-themes/hurtado.nu index f25270d..68a0ee8 100644 --- a/themes/nu-themes/hurtado.nu +++ b/themes/nu-themes/hurtado.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/hybrid.nu b/themes/nu-themes/hybrid.nu index 4d19967..d3a0a4c 100644 --- a/themes/nu-themes/hybrid.nu +++ b/themes/nu-themes/hybrid.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ia-dark.nu b/themes/nu-themes/ia-dark.nu index ad87374..cd49f85 100644 --- a/themes/nu-themes/ia-dark.nu +++ b/themes/nu-themes/ia-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ia-light.nu b/themes/nu-themes/ia-light.nu index 6d45199..ce57809 100644 --- a/themes/nu-themes/ia-light.nu +++ b/themes/nu-themes/ia-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ibm3270.nu b/themes/nu-themes/ibm3270.nu index 2968b13..36790f5 100644 --- a/themes/nu-themes/ibm3270.nu +++ b/themes/nu-themes/ibm3270.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ic-green-ppl.nu b/themes/nu-themes/ic-green-ppl.nu index de38e4d..1b76305 100644 --- a/themes/nu-themes/ic-green-ppl.nu +++ b/themes/nu-themes/ic-green-ppl.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ic-orange-ppl.nu b/themes/nu-themes/ic-orange-ppl.nu index 164b786..ae80761 100644 --- a/themes/nu-themes/ic-orange-ppl.nu +++ b/themes/nu-themes/ic-orange-ppl.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/iceberg-light.nu b/themes/nu-themes/iceberg-light.nu index e6d1fcc..0a6dd03 100644 --- a/themes/nu-themes/iceberg-light.nu +++ b/themes/nu-themes/iceberg-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/icy.nu b/themes/nu-themes/icy.nu index 3181410..20ff9ab 100644 --- a/themes/nu-themes/icy.nu +++ b/themes/nu-themes/icy.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/idle-toes.nu b/themes/nu-themes/idle-toes.nu index 516e583..b92ffb3 100644 --- a/themes/nu-themes/idle-toes.nu +++ b/themes/nu-themes/idle-toes.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/idm_3b.nu b/themes/nu-themes/idm_3b.nu index 1011a6e..3b6df2a 100644 --- a/themes/nu-themes/idm_3b.nu +++ b/themes/nu-themes/idm_3b.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ir-black.nu b/themes/nu-themes/ir-black.nu index 0cc3f61..dcf7afb 100644 --- a/themes/nu-themes/ir-black.nu +++ b/themes/nu-themes/ir-black.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/irblack.nu b/themes/nu-themes/irblack.nu index 0cc3f61..dcf7afb 100644 --- a/themes/nu-themes/irblack.nu +++ b/themes/nu-themes/irblack.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/isotope.nu b/themes/nu-themes/isotope.nu index dcb71ad..ebea3d1 100644 --- a/themes/nu-themes/isotope.nu +++ b/themes/nu-themes/isotope.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/jackie-brown.nu b/themes/nu-themes/jackie-brown.nu index e3042bb..714ea2d 100644 --- a/themes/nu-themes/jackie-brown.nu +++ b/themes/nu-themes/jackie-brown.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/japanesque.nu b/themes/nu-themes/japanesque.nu index 5b637b3..e0f63c3 100644 --- a/themes/nu-themes/japanesque.nu +++ b/themes/nu-themes/japanesque.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/jellybeans.nu b/themes/nu-themes/jellybeans.nu index 3f956b0..30622b2 100644 --- a/themes/nu-themes/jellybeans.nu +++ b/themes/nu-themes/jellybeans.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/jet-brains-darcula.nu b/themes/nu-themes/jet-brains-darcula.nu index c71b92b..ffc4361 100644 --- a/themes/nu-themes/jet-brains-darcula.nu +++ b/themes/nu-themes/jet-brains-darcula.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/jup.nu b/themes/nu-themes/jup.nu index 94bdef5..22865ec 100644 --- a/themes/nu-themes/jup.nu +++ b/themes/nu-themes/jup.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/kibble.nu b/themes/nu-themes/kibble.nu index 4a4d165..d0c59e0 100644 --- a/themes/nu-themes/kibble.nu +++ b/themes/nu-themes/kibble.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/kimber.nu b/themes/nu-themes/kimber.nu index 4d7dd29..c0d75c3 100644 --- a/themes/nu-themes/kimber.nu +++ b/themes/nu-themes/kimber.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/later-this-evening.nu b/themes/nu-themes/later-this-evening.nu index 95aa55a..6512ca5 100644 --- a/themes/nu-themes/later-this-evening.nu +++ b/themes/nu-themes/later-this-evening.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/lavandula.nu b/themes/nu-themes/lavandula.nu index 660606c..5fe989e 100644 --- a/themes/nu-themes/lavandula.nu +++ b/themes/nu-themes/lavandula.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/liquid-carbon-transparent.nu b/themes/nu-themes/liquid-carbon-transparent.nu index b63ee81..fd8f5e7 100644 --- a/themes/nu-themes/liquid-carbon-transparent.nu +++ b/themes/nu-themes/liquid-carbon-transparent.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/liquid-carbon.nu b/themes/nu-themes/liquid-carbon.nu index 78de2c9..144a714 100644 --- a/themes/nu-themes/liquid-carbon.nu +++ b/themes/nu-themes/liquid-carbon.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/london-tube.nu b/themes/nu-themes/london-tube.nu index f1fa698..03c0ad9 100644 --- a/themes/nu-themes/london-tube.nu +++ b/themes/nu-themes/london-tube.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/macintosh.nu b/themes/nu-themes/macintosh.nu index ae091da..b414a2d 100644 --- a/themes/nu-themes/macintosh.nu +++ b/themes/nu-themes/macintosh.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/maia.nu b/themes/nu-themes/maia.nu index b191ea2..d91909b 100644 --- a/themes/nu-themes/maia.nu +++ b/themes/nu-themes/maia.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/man-page.nu b/themes/nu-themes/man-page.nu index e577e48..4a9518e 100644 --- a/themes/nu-themes/man-page.nu +++ b/themes/nu-themes/man-page.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mar.nu b/themes/nu-themes/mar.nu index be80fd7..dff5076 100644 --- a/themes/nu-themes/mar.nu +++ b/themes/nu-themes/mar.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/marrakesh.nu b/themes/nu-themes/marrakesh.nu index 0fc584a..ab1ddda 100644 --- a/themes/nu-themes/marrakesh.nu +++ b/themes/nu-themes/marrakesh.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/materia.nu b/themes/nu-themes/materia.nu index a6bb018..181ddf4 100644 --- a/themes/nu-themes/materia.nu +++ b/themes/nu-themes/materia.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/material-dark.nu b/themes/nu-themes/material-dark.nu index 6f568b7..1121e48 100644 --- a/themes/nu-themes/material-dark.nu +++ b/themes/nu-themes/material-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/material-darker.nu b/themes/nu-themes/material-darker.nu index daa1ff7..b7b47fb 100644 --- a/themes/nu-themes/material-darker.nu +++ b/themes/nu-themes/material-darker.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/material-lighter.nu b/themes/nu-themes/material-lighter.nu index 6fada8e..9c97344 100644 --- a/themes/nu-themes/material-lighter.nu +++ b/themes/nu-themes/material-lighter.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/material-palenight.nu b/themes/nu-themes/material-palenight.nu index 5c8611f..d0c441b 100644 --- a/themes/nu-themes/material-palenight.nu +++ b/themes/nu-themes/material-palenight.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/material-vivid.nu b/themes/nu-themes/material-vivid.nu index f9f5367..2f756a4 100644 --- a/themes/nu-themes/material-vivid.nu +++ b/themes/nu-themes/material-vivid.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/material.nu b/themes/nu-themes/material.nu index 0b6c14a..a2ec02d 100644 --- a/themes/nu-themes/material.nu +++ b/themes/nu-themes/material.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mathias.nu b/themes/nu-themes/mathias.nu index cdd444f..8879b6c 100644 --- a/themes/nu-themes/mathias.nu +++ b/themes/nu-themes/mathias.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/medallion.nu b/themes/nu-themes/medallion.nu index 54142f6..ef77437 100644 --- a/themes/nu-themes/medallion.nu +++ b/themes/nu-themes/medallion.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mellow-purple.nu b/themes/nu-themes/mellow-purple.nu index 398edfd..ac61979 100644 --- a/themes/nu-themes/mellow-purple.nu +++ b/themes/nu-themes/mellow-purple.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mexico-light.nu b/themes/nu-themes/mexico-light.nu index 6f56a17..7aeb47d 100644 --- a/themes/nu-themes/mexico-light.nu +++ b/themes/nu-themes/mexico-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/miramare.nu b/themes/nu-themes/miramare.nu index 05cf62e..57928e5 100644 --- a/themes/nu-themes/miramare.nu +++ b/themes/nu-themes/miramare.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/misterioso.nu b/themes/nu-themes/misterioso.nu index 36e4d47..025e325 100644 --- a/themes/nu-themes/misterioso.nu +++ b/themes/nu-themes/misterioso.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/miu.nu b/themes/nu-themes/miu.nu index 260bde7..270610c 100644 --- a/themes/nu-themes/miu.nu +++ b/themes/nu-themes/miu.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mocha.nu b/themes/nu-themes/mocha.nu index 90cdf52..500fb6d 100644 --- a/themes/nu-themes/mocha.nu +++ b/themes/nu-themes/mocha.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/molokai.nu b/themes/nu-themes/molokai.nu index c4d7d4d..3f849a4 100644 --- a/themes/nu-themes/molokai.nu +++ b/themes/nu-themes/molokai.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mona-lisa.nu b/themes/nu-themes/mona-lisa.nu index 9168d6e..6142931 100644 --- a/themes/nu-themes/mona-lisa.nu +++ b/themes/nu-themes/mona-lisa.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mono-amber.nu b/themes/nu-themes/mono-amber.nu index 4f8ed4a..7ed3f8a 100644 --- a/themes/nu-themes/mono-amber.nu +++ b/themes/nu-themes/mono-amber.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mono-cyan.nu b/themes/nu-themes/mono-cyan.nu index 8566b4b..fbc4ad4 100644 --- a/themes/nu-themes/mono-cyan.nu +++ b/themes/nu-themes/mono-cyan.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mono-green.nu b/themes/nu-themes/mono-green.nu index 48e4a63..242e1e0 100644 --- a/themes/nu-themes/mono-green.nu +++ b/themes/nu-themes/mono-green.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mono-red.nu b/themes/nu-themes/mono-red.nu index 1634aa7..9f12ca3 100644 --- a/themes/nu-themes/mono-red.nu +++ b/themes/nu-themes/mono-red.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mono-white.nu b/themes/nu-themes/mono-white.nu index 544c19f..a5bfcfb 100644 --- a/themes/nu-themes/mono-white.nu +++ b/themes/nu-themes/mono-white.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mono-yellow.nu b/themes/nu-themes/mono-yellow.nu index b72feaf..2318a9a 100644 --- a/themes/nu-themes/mono-yellow.nu +++ b/themes/nu-themes/mono-yellow.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/monokai-dark.nu b/themes/nu-themes/monokai-dark.nu index f9b83a8..976ac28 100644 --- a/themes/nu-themes/monokai-dark.nu +++ b/themes/nu-themes/monokai-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/monokai-soda.nu b/themes/nu-themes/monokai-soda.nu index eda9dc2..e1dea7b 100644 --- a/themes/nu-themes/monokai-soda.nu +++ b/themes/nu-themes/monokai-soda.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/monokai.nu b/themes/nu-themes/monokai.nu index 5bac590..96a3402 100644 --- a/themes/nu-themes/monokai.nu +++ b/themes/nu-themes/monokai.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mountaineer-grey.nu b/themes/nu-themes/mountaineer-grey.nu index b8658a5..32f5fc7 100644 --- a/themes/nu-themes/mountaineer-grey.nu +++ b/themes/nu-themes/mountaineer-grey.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/mountaineer.nu b/themes/nu-themes/mountaineer.nu index 5e5f67d..4bae9d8 100644 --- a/themes/nu-themes/mountaineer.nu +++ b/themes/nu-themes/mountaineer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/n0tch2k.nu b/themes/nu-themes/n0tch2k.nu index 13d2e5a..8e0a89f 100644 --- a/themes/nu-themes/n0tch2k.nu +++ b/themes/nu-themes/n0tch2k.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nebula.nu b/themes/nu-themes/nebula.nu index e6cc65a..2e4ceae 100644 --- a/themes/nu-themes/nebula.nu +++ b/themes/nu-themes/nebula.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/neon-night.nu b/themes/nu-themes/neon-night.nu index 8defe41..f83beb9 100644 --- a/themes/nu-themes/neon-night.nu +++ b/themes/nu-themes/neon-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/neopolitan.nu b/themes/nu-themes/neopolitan.nu index 03819fb..324d463 100644 --- a/themes/nu-themes/neopolitan.nu +++ b/themes/nu-themes/neopolitan.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nep.nu b/themes/nu-themes/nep.nu index cde24d8..2cf9acc 100644 --- a/themes/nu-themes/nep.nu +++ b/themes/nu-themes/nep.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/neutron.nu b/themes/nu-themes/neutron.nu index a9cc0e0..3525e1c 100644 --- a/themes/nu-themes/neutron.nu +++ b/themes/nu-themes/neutron.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nightfly.nu b/themes/nu-themes/nightfly.nu index 8eb4946..dfdc3a9 100644 --- a/themes/nu-themes/nightfly.nu +++ b/themes/nu-themes/nightfly.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nightlion-v1.nu b/themes/nu-themes/nightlion-v1.nu index 25ba583..32658d4 100644 --- a/themes/nu-themes/nightlion-v1.nu +++ b/themes/nu-themes/nightlion-v1.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nightlion-v2.nu b/themes/nu-themes/nightlion-v2.nu index 7da17e6..f9c9fa3 100644 --- a/themes/nu-themes/nightlion-v2.nu +++ b/themes/nu-themes/nightlion-v2.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nighty.nu b/themes/nu-themes/nighty.nu index 181c09e..484d681 100644 --- a/themes/nu-themes/nighty.nu +++ b/themes/nu-themes/nighty.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nord-alt.nu b/themes/nu-themes/nord-alt.nu index 4502d25..bcbe14e 100644 --- a/themes/nu-themes/nord-alt.nu +++ b/themes/nu-themes/nord-alt.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nord-light.nu b/themes/nu-themes/nord-light.nu index f50e2ad..187b52a 100644 --- a/themes/nu-themes/nord-light.nu +++ b/themes/nu-themes/nord-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nord.nu b/themes/nu-themes/nord.nu index 7490f40..9788bab 100644 --- a/themes/nu-themes/nord.nu +++ b/themes/nu-themes/nord.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nova.nu b/themes/nu-themes/nova.nu index d4fdd7c..4b2dd45 100644 --- a/themes/nu-themes/nova.nu +++ b/themes/nu-themes/nova.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/novel.nu b/themes/nu-themes/novel.nu index 2b8a21d..830fac5 100644 --- a/themes/nu-themes/novel.nu +++ b/themes/nu-themes/novel.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/nushell-dark.nu b/themes/nu-themes/nushell-dark.nu new file mode 100644 index 0000000..5d1d0e0 --- /dev/null +++ b/themes/nu-themes/nushell-dark.nu @@ -0,0 +1,125 @@ +# Retrieve the theme settings +export def main [] { return { + # color for nushell primitives + separator: white + leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off + header: green_bold + empty: blue + # Closures can be used to choose colors for specific values. + # The value (in this case, a bool) is piped into the closure. + bool: {|| if $in { 'light_cyan' } else { 'light_gray' } } + int: white + filesize: {|e| + if $e == 0b { + 'white' + } else if $e < 1mb { + 'cyan' + } else { 'blue' } + } + duration: white + date: {|| (date now) - $in | + if $in < 1hr { + 'purple' + } else if $in < 6hr { + 'red' + } else if $in < 1day { + 'yellow' + } else if $in < 3day { + 'green' + } else if $in < 1wk { + 'light_green' + } else if $in < 6wk { + 'cyan' + } else if $in < 52wk { + 'blue' + } else { 'dark_gray' } + } + range: white + float: white + string: white + nothing: white + binary: white + cellpath: white + row_index: green_bold + record: white + list: white + block: white + hints: dark_gray + search_result: {bg: red fg: white} + + shape_and: purple_bold + shape_binary: purple_bold + shape_block: blue_bold + shape_bool: light_cyan + shape_closure: green_bold + shape_custom: green + shape_datetime: cyan_bold + shape_directory: cyan + shape_external: cyan + shape_externalarg: green_bold + shape_filepath: cyan + shape_flag: blue_bold + shape_float: purple_bold + # shapes are used to change the cli syntax highlighting + shape_garbage: { fg: white bg: red attr: b} + shape_globpattern: cyan_bold + shape_int: purple_bold + shape_internalcall: cyan_bold + shape_list: cyan_bold + shape_literal: blue + shape_match_pattern: green + shape_matching_brackets: { attr: u } + shape_nothing: light_cyan + shape_operator: yellow + shape_or: purple_bold + shape_pipe: purple_bold + shape_range: yellow_bold + shape_record: cyan_bold + shape_redirection: purple_bold + shape_signature: green_bold + shape_string: green + shape_string_interpolation: cyan_bold + shape_table: blue_bold + shape_variable: purple + shape_vardecl: purple + + background: dark_gray + foreground: default + cursor: red +}} + +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + +export module activate { + export-env { + set color_config + update terminal + } +} + +# Activate the theme when sourced +use activate \ No newline at end of file diff --git a/themes/nu-themes/nushell-light.nu b/themes/nu-themes/nushell-light.nu new file mode 100644 index 0000000..0f1133d --- /dev/null +++ b/themes/nu-themes/nushell-light.nu @@ -0,0 +1,125 @@ +# Retrieve the theme settings +export def main [] { return { + # color for nushell primitives + separator: dark_gray + leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off + header: green_bold + empty: blue + # Closures can be used to choose colors for specific values. + # The value (in this case, a bool) is piped into the closure. + bool: {|| if $in { 'dark_cyan' } else { 'dark_gray' } } + int: dark_gray + filesize: {|e| + if $e == 0b { + 'dark_gray' + } else if $e < 1mb { + 'cyan_bold' + } else { 'blue_bold' } + } + duration: dark_gray + date: {|| (date now) - $in | + if $in < 1hr { + 'purple' + } else if $in < 6hr { + 'red' + } else if $in < 1day { + 'yellow' + } else if $in < 3day { + 'green' + } else if $in < 1wk { + 'light_green' + } else if $in < 6wk { + 'cyan' + } else if $in < 52wk { + 'blue' + } else { 'dark_gray' } + } + range: dark_gray + float: dark_gray + string: dark_gray + nothing: dark_gray + binary: dark_gray + cellpath: dark_gray + row_index: green_bold + record: white + list: white + block: white + hints: dark_gray + search_result: {fg: white bg: red} + + shape_and: purple_bold + shape_binary: purple_bold + shape_block: blue_bold + shape_bool: light_cyan + shape_closure: green_bold + shape_custom: green + shape_datetime: cyan_bold + shape_directory: cyan + shape_external: cyan + shape_externalarg: green_bold + shape_filepath: cyan + shape_flag: blue_bold + shape_float: purple_bold + # shapes are used to change the cli syntax highlighting + shape_garbage: { fg: white bg: red attr: b} + shape_globpattern: cyan_bold + shape_int: purple_bold + shape_internalcall: cyan_bold + shape_list: cyan_bold + shape_literal: blue + shape_match_pattern: green + shape_matching_brackets: { attr: u } + shape_nothing: light_cyan + shape_operator: yellow + shape_or: purple_bold + shape_pipe: purple_bold + shape_range: yellow_bold + shape_record: cyan_bold + shape_redirection: purple_bold + shape_signature: green_bold + shape_string: green + shape_string_interpolation: cyan_bold + shape_table: blue_bold + shape_variable: purple + shape_vardecl: purple + + background: light_gray + foreground: default + cursor: red +}} + +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + +export module activate { + export-env { + set color_config + update terminal + } +} + +# Activate the theme when sourced +use activate \ No newline at end of file diff --git a/themes/nu-themes/obsidian.nu b/themes/nu-themes/obsidian.nu index d91d395..e66e4cf 100644 --- a/themes/nu-themes/obsidian.nu +++ b/themes/nu-themes/obsidian.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ocean-dark.nu b/themes/nu-themes/ocean-dark.nu index 628c024..90de84e 100644 --- a/themes/nu-themes/ocean-dark.nu +++ b/themes/nu-themes/ocean-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ocean.nu b/themes/nu-themes/ocean.nu index 8d0822d..27fd4c4 100644 --- a/themes/nu-themes/ocean.nu +++ b/themes/nu-themes/ocean.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/oceanic-material.nu b/themes/nu-themes/oceanic-material.nu index 97c3c56..a0141ba 100644 --- a/themes/nu-themes/oceanic-material.nu +++ b/themes/nu-themes/oceanic-material.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/oceanic-next.nu b/themes/nu-themes/oceanic-next.nu index b9874f4..23f35af 100644 --- a/themes/nu-themes/oceanic-next.nu +++ b/themes/nu-themes/oceanic-next.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/oceanicnext.nu b/themes/nu-themes/oceanicnext.nu index 99031d8..4c38fae 100644 --- a/themes/nu-themes/oceanicnext.nu +++ b/themes/nu-themes/oceanicnext.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ollie.nu b/themes/nu-themes/ollie.nu index 75cdcb9..691ff47 100644 --- a/themes/nu-themes/ollie.nu +++ b/themes/nu-themes/ollie.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/one-dark.nu b/themes/nu-themes/one-dark.nu index 4b6fea8..5e6a0a1 100644 --- a/themes/nu-themes/one-dark.nu +++ b/themes/nu-themes/one-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/one-half-black.nu b/themes/nu-themes/one-half-black.nu index 96871c7..4a51d43 100644 --- a/themes/nu-themes/one-half-black.nu +++ b/themes/nu-themes/one-half-black.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/one-half-light.nu b/themes/nu-themes/one-half-light.nu index 03102d0..558761c 100644 --- a/themes/nu-themes/one-half-light.nu +++ b/themes/nu-themes/one-half-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/one-light.nu b/themes/nu-themes/one-light.nu index c0d292d..3366204 100644 --- a/themes/nu-themes/one-light.nu +++ b/themes/nu-themes/one-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/onedark.nu b/themes/nu-themes/onedark.nu index 98d3042..c0d7187 100644 --- a/themes/nu-themes/onedark.nu +++ b/themes/nu-themes/onedark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/orbital.nu b/themes/nu-themes/orbital.nu index 76a8fd7..78a634e 100644 --- a/themes/nu-themes/orbital.nu +++ b/themes/nu-themes/orbital.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/outrun-dark.nu b/themes/nu-themes/outrun-dark.nu index 973c3e9..58e65a2 100644 --- a/themes/nu-themes/outrun-dark.nu +++ b/themes/nu-themes/outrun-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pali.nu b/themes/nu-themes/pali.nu index 553dd6f..2692d0e 100644 --- a/themes/nu-themes/pali.nu +++ b/themes/nu-themes/pali.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/palmtree.nu b/themes/nu-themes/palmtree.nu index a22b61c..0610052 100644 --- a/themes/nu-themes/palmtree.nu +++ b/themes/nu-themes/palmtree.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/papercolor-dark.nu b/themes/nu-themes/papercolor-dark.nu index 83aba9b..e7b6fac 100644 --- a/themes/nu-themes/papercolor-dark.nu +++ b/themes/nu-themes/papercolor-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/papercolor-light.nu b/themes/nu-themes/papercolor-light.nu index 0856388..eb4beb2 100644 --- a/themes/nu-themes/papercolor-light.nu +++ b/themes/nu-themes/papercolor-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/paraiso-dark.nu b/themes/nu-themes/paraiso-dark.nu index d57c03a..a3fd9d9 100644 --- a/themes/nu-themes/paraiso-dark.nu +++ b/themes/nu-themes/paraiso-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/paraiso.nu b/themes/nu-themes/paraiso.nu index d57c03a..a3fd9d9 100644 --- a/themes/nu-themes/paraiso.nu +++ b/themes/nu-themes/paraiso.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pasque.nu b/themes/nu-themes/pasque.nu index b28da57..5f13400 100644 --- a/themes/nu-themes/pasque.nu +++ b/themes/nu-themes/pasque.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/paul-millr.nu b/themes/nu-themes/paul-millr.nu index 142d254..8482993 100644 --- a/themes/nu-themes/paul-millr.nu +++ b/themes/nu-themes/paul-millr.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pencil-dark.nu b/themes/nu-themes/pencil-dark.nu index d8c4ecf..3bfdcd0 100644 --- a/themes/nu-themes/pencil-dark.nu +++ b/themes/nu-themes/pencil-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pencil-light.nu b/themes/nu-themes/pencil-light.nu index 3c08ecc..6759dec 100644 --- a/themes/nu-themes/pencil-light.nu +++ b/themes/nu-themes/pencil-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/peppermint.nu b/themes/nu-themes/peppermint.nu index 6acd18b..0237c1d 100644 --- a/themes/nu-themes/peppermint.nu +++ b/themes/nu-themes/peppermint.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/phd.nu b/themes/nu-themes/phd.nu index cc54f6f..effbccd 100644 --- a/themes/nu-themes/phd.nu +++ b/themes/nu-themes/phd.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/piatto-light.nu b/themes/nu-themes/piatto-light.nu index cd7679d..699f38d 100644 --- a/themes/nu-themes/piatto-light.nu +++ b/themes/nu-themes/piatto-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pico.nu b/themes/nu-themes/pico.nu index 8bb6055..2d0fb4f 100644 --- a/themes/nu-themes/pico.nu +++ b/themes/nu-themes/pico.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pnevma.nu b/themes/nu-themes/pnevma.nu index eeb5858..8d0e0c2 100644 --- a/themes/nu-themes/pnevma.nu +++ b/themes/nu-themes/pnevma.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pop.nu b/themes/nu-themes/pop.nu index 964983c..0ec2317 100644 --- a/themes/nu-themes/pop.nu +++ b/themes/nu-themes/pop.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/porple.nu b/themes/nu-themes/porple.nu index 1d9daa4..755bc7a 100644 --- a/themes/nu-themes/porple.nu +++ b/themes/nu-themes/porple.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/pro.nu b/themes/nu-themes/pro.nu index d5e472c..192d6b5 100644 --- a/themes/nu-themes/pro.nu +++ b/themes/nu-themes/pro.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/railscasts.nu b/themes/nu-themes/railscasts.nu index 59bd18a..398457d 100644 --- a/themes/nu-themes/railscasts.nu +++ b/themes/nu-themes/railscasts.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/rebecca.nu b/themes/nu-themes/rebecca.nu index e13d875..980baa9 100644 --- a/themes/nu-themes/rebecca.nu +++ b/themes/nu-themes/rebecca.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/red-alert.nu b/themes/nu-themes/red-alert.nu index 73481a4..4120c11 100644 --- a/themes/nu-themes/red-alert.nu +++ b/themes/nu-themes/red-alert.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/red-sands.nu b/themes/nu-themes/red-sands.nu index 4c26454..448d0ae 100644 --- a/themes/nu-themes/red-sands.nu +++ b/themes/nu-themes/red-sands.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/relaxed-afterglow.nu b/themes/nu-themes/relaxed-afterglow.nu index 6541d3f..2611fa7 100644 --- a/themes/nu-themes/relaxed-afterglow.nu +++ b/themes/nu-themes/relaxed-afterglow.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/renault-style-light.nu b/themes/nu-themes/renault-style-light.nu index 34d8458..d6311b6 100644 --- a/themes/nu-themes/renault-style-light.nu +++ b/themes/nu-themes/renault-style-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/rippedcasts.nu b/themes/nu-themes/rippedcasts.nu index b0716d6..37e8f79 100644 --- a/themes/nu-themes/rippedcasts.nu +++ b/themes/nu-themes/rippedcasts.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/rose-pine-dawn.nu b/themes/nu-themes/rose-pine-dawn.nu index 39a0055..e373963 100644 --- a/themes/nu-themes/rose-pine-dawn.nu +++ b/themes/nu-themes/rose-pine-dawn.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/rose-pine-moon.nu b/themes/nu-themes/rose-pine-moon.nu index 798e396..061c556 100644 --- a/themes/nu-themes/rose-pine-moon.nu +++ b/themes/nu-themes/rose-pine-moon.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/rose-pine.nu b/themes/nu-themes/rose-pine.nu index aaf2ca6..b2c92c6 100644 --- a/themes/nu-themes/rose-pine.nu +++ b/themes/nu-themes/rose-pine.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/royal.nu b/themes/nu-themes/royal.nu index c6c9acd..37fb721 100644 --- a/themes/nu-themes/royal.nu +++ b/themes/nu-themes/royal.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sagelight.nu b/themes/nu-themes/sagelight.nu index a972760..f4b3438 100644 --- a/themes/nu-themes/sagelight.nu +++ b/themes/nu-themes/sagelight.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sandcastle.nu b/themes/nu-themes/sandcastle.nu index f3c5123..4505093 100644 --- a/themes/nu-themes/sandcastle.nu +++ b/themes/nu-themes/sandcastle.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sat.nu b/themes/nu-themes/sat.nu index f294d02..0e584f0 100644 --- a/themes/nu-themes/sat.nu +++ b/themes/nu-themes/sat.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sea-shells.nu b/themes/nu-themes/sea-shells.nu index b52cedd..f56f280 100644 --- a/themes/nu-themes/sea-shells.nu +++ b/themes/nu-themes/sea-shells.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/seafoam-pastel.nu b/themes/nu-themes/seafoam-pastel.nu index 838d12c..d28a89f 100644 --- a/themes/nu-themes/seafoam-pastel.nu +++ b/themes/nu-themes/seafoam-pastel.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/selenized-black.nu b/themes/nu-themes/selenized-black.nu index 9e26beb..5e94759 100644 --- a/themes/nu-themes/selenized-black.nu +++ b/themes/nu-themes/selenized-black.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/selenized-dark.nu b/themes/nu-themes/selenized-dark.nu index 13e5b01..56627b1 100644 --- a/themes/nu-themes/selenized-dark.nu +++ b/themes/nu-themes/selenized-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/selenized-light.nu b/themes/nu-themes/selenized-light.nu index 94bf0d7..fa8bda7 100644 --- a/themes/nu-themes/selenized-light.nu +++ b/themes/nu-themes/selenized-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/selenized-white.nu b/themes/nu-themes/selenized-white.nu index 5f64afa..448b05a 100644 --- a/themes/nu-themes/selenized-white.nu +++ b/themes/nu-themes/selenized-white.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/seoul256.nu b/themes/nu-themes/seoul256.nu index 5fda33c..bb3f9af 100644 --- a/themes/nu-themes/seoul256.nu +++ b/themes/nu-themes/seoul256.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/seti-ui.nu b/themes/nu-themes/seti-ui.nu index 225389a..b3519d9 100644 --- a/themes/nu-themes/seti-ui.nu +++ b/themes/nu-themes/seti-ui.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/seti.nu b/themes/nu-themes/seti.nu index 68b154b..6b1048b 100644 --- a/themes/nu-themes/seti.nu +++ b/themes/nu-themes/seti.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/shaman.nu b/themes/nu-themes/shaman.nu index a8f878a..aae9cd7 100644 --- a/themes/nu-themes/shaman.nu +++ b/themes/nu-themes/shaman.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/shapeshifter.nu b/themes/nu-themes/shapeshifter.nu index 6937db3..4fe5cfa 100644 --- a/themes/nu-themes/shapeshifter.nu +++ b/themes/nu-themes/shapeshifter.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/shel.nu b/themes/nu-themes/shel.nu index 9c44a24..037c924 100644 --- a/themes/nu-themes/shel.nu +++ b/themes/nu-themes/shel.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sierra.nu b/themes/nu-themes/sierra.nu index c12c0fa..83beb56 100644 --- a/themes/nu-themes/sierra.nu +++ b/themes/nu-themes/sierra.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/silk-dark.nu b/themes/nu-themes/silk-dark.nu index 5ab0772..2b7f31a 100644 --- a/themes/nu-themes/silk-dark.nu +++ b/themes/nu-themes/silk-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/silk-light.nu b/themes/nu-themes/silk-light.nu index 62250f3..d761e66 100644 --- a/themes/nu-themes/silk-light.nu +++ b/themes/nu-themes/silk-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/slate.nu b/themes/nu-themes/slate.nu index c395703..3cda15d 100644 --- a/themes/nu-themes/slate.nu +++ b/themes/nu-themes/slate.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/smyck.nu b/themes/nu-themes/smyck.nu index b1bb40a..ce6e95e 100644 --- a/themes/nu-themes/smyck.nu +++ b/themes/nu-themes/smyck.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/snazzy.nu b/themes/nu-themes/snazzy.nu index c735263..bf628ea 100644 --- a/themes/nu-themes/snazzy.nu +++ b/themes/nu-themes/snazzy.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/snow-dark.nu b/themes/nu-themes/snow-dark.nu index 6da039d..192af7a 100644 --- a/themes/nu-themes/snow-dark.nu +++ b/themes/nu-themes/snow-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/snow-light.nu b/themes/nu-themes/snow-light.nu index 056d0b6..220fa47 100644 --- a/themes/nu-themes/snow-light.nu +++ b/themes/nu-themes/snow-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/soft-server.nu b/themes/nu-themes/soft-server.nu index 05a4e7c..3317663 100644 --- a/themes/nu-themes/soft-server.nu +++ b/themes/nu-themes/soft-server.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solar-flare.nu b/themes/nu-themes/solar-flare.nu index 7782679..c2d879c 100644 --- a/themes/nu-themes/solar-flare.nu +++ b/themes/nu-themes/solar-flare.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solarflare-light.nu b/themes/nu-themes/solarflare-light.nu index d3ae62f..fb3d82b 100644 --- a/themes/nu-themes/solarflare-light.nu +++ b/themes/nu-themes/solarflare-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solarflare.nu b/themes/nu-themes/solarflare.nu index 433649d..68452f3 100644 --- a/themes/nu-themes/solarflare.nu +++ b/themes/nu-themes/solarflare.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solarized-darcula.nu b/themes/nu-themes/solarized-darcula.nu index df874aa..5be4eff 100644 --- a/themes/nu-themes/solarized-darcula.nu +++ b/themes/nu-themes/solarized-darcula.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solarized-dark-higher-contrast.nu b/themes/nu-themes/solarized-dark-higher-contrast.nu index 7fccbc0..a2e91f5 100644 --- a/themes/nu-themes/solarized-dark-higher-contrast.nu +++ b/themes/nu-themes/solarized-dark-higher-contrast.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solarized-dark.nu b/themes/nu-themes/solarized-dark.nu index 1d40b12..fc6902f 100644 --- a/themes/nu-themes/solarized-dark.nu +++ b/themes/nu-themes/solarized-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/solarized-light.nu b/themes/nu-themes/solarized-light.nu index 470dac9..b1f04c5 100644 --- a/themes/nu-themes/solarized-light.nu +++ b/themes/nu-themes/solarized-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/source-code-x.nu b/themes/nu-themes/source-code-x.nu index 02233d6..d14dd76 100644 --- a/themes/nu-themes/source-code-x.nu +++ b/themes/nu-themes/source-code-x.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sourcerer.nu b/themes/nu-themes/sourcerer.nu index 1d72f9f..e736a7f 100644 --- a/themes/nu-themes/sourcerer.nu +++ b/themes/nu-themes/sourcerer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sourcerer2.nu b/themes/nu-themes/sourcerer2.nu index 1d72f9f..e736a7f 100644 --- a/themes/nu-themes/sourcerer2.nu +++ b/themes/nu-themes/sourcerer2.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spaceduck.nu b/themes/nu-themes/spaceduck.nu index b94e87d..cf5ef32 100644 --- a/themes/nu-themes/spaceduck.nu +++ b/themes/nu-themes/spaceduck.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spacedust.nu b/themes/nu-themes/spacedust.nu index c395445..3b98ad7 100644 --- a/themes/nu-themes/spacedust.nu +++ b/themes/nu-themes/spacedust.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spacegray-eighties-dull.nu b/themes/nu-themes/spacegray-eighties-dull.nu index 33b9c5f..2a0a7ad 100644 --- a/themes/nu-themes/spacegray-eighties-dull.nu +++ b/themes/nu-themes/spacegray-eighties-dull.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spacegray-eighties.nu b/themes/nu-themes/spacegray-eighties.nu index 7387c0e..176a5a4 100644 --- a/themes/nu-themes/spacegray-eighties.nu +++ b/themes/nu-themes/spacegray-eighties.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spacegray.nu b/themes/nu-themes/spacegray.nu index ccca0dc..f3a7838 100644 --- a/themes/nu-themes/spacegray.nu +++ b/themes/nu-themes/spacegray.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spacemacs.nu b/themes/nu-themes/spacemacs.nu index ce03a0d..e37fcd9 100644 --- a/themes/nu-themes/spacemacs.nu +++ b/themes/nu-themes/spacemacs.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spiderman.nu b/themes/nu-themes/spiderman.nu index 6646d46..b541398 100644 --- a/themes/nu-themes/spiderman.nu +++ b/themes/nu-themes/spiderman.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/spring.nu b/themes/nu-themes/spring.nu index 50884c3..de0e76f 100644 --- a/themes/nu-themes/spring.nu +++ b/themes/nu-themes/spring.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/square.nu b/themes/nu-themes/square.nu index e279705..6009abe 100644 --- a/themes/nu-themes/square.nu +++ b/themes/nu-themes/square.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/srcery.nu b/themes/nu-themes/srcery.nu index 55b82ad..0895b44 100644 --- a/themes/nu-themes/srcery.nu +++ b/themes/nu-themes/srcery.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/substrata.nu b/themes/nu-themes/substrata.nu index 1536365..133b0e4 100644 --- a/themes/nu-themes/substrata.nu +++ b/themes/nu-themes/substrata.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/summercamp.nu b/themes/nu-themes/summercamp.nu index 718d2a9..e3d34c1 100644 --- a/themes/nu-themes/summercamp.nu +++ b/themes/nu-themes/summercamp.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/summerfruit-dark.nu b/themes/nu-themes/summerfruit-dark.nu index 4f00b2b..34508f8 100644 --- a/themes/nu-themes/summerfruit-dark.nu +++ b/themes/nu-themes/summerfruit-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/summerfruit-light.nu b/themes/nu-themes/summerfruit-light.nu index adcf531..f3cd81e 100644 --- a/themes/nu-themes/summerfruit-light.nu +++ b/themes/nu-themes/summerfruit-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/sundried.nu b/themes/nu-themes/sundried.nu index 7f57804..296a8ca 100644 --- a/themes/nu-themes/sundried.nu +++ b/themes/nu-themes/sundried.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/symphonic.nu b/themes/nu-themes/symphonic.nu index c54f1d0..dac550b 100644 --- a/themes/nu-themes/symphonic.nu +++ b/themes/nu-themes/symphonic.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/synth-midnight-dark.nu b/themes/nu-themes/synth-midnight-dark.nu index c56d4d4..94c1036 100644 --- a/themes/nu-themes/synth-midnight-dark.nu +++ b/themes/nu-themes/synth-midnight-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/synth-midnight-light.nu b/themes/nu-themes/synth-midnight-light.nu index 5fd6533..f6f7090 100644 --- a/themes/nu-themes/synth-midnight-light.nu +++ b/themes/nu-themes/synth-midnight-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tango-dark.nu b/themes/nu-themes/tango-dark.nu index 60145c2..4eaebba 100644 --- a/themes/nu-themes/tango-dark.nu +++ b/themes/nu-themes/tango-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tango-light.nu b/themes/nu-themes/tango-light.nu index 43c4cf1..5207f4a 100644 --- a/themes/nu-themes/tango-light.nu +++ b/themes/nu-themes/tango-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tango.nu b/themes/nu-themes/tango.nu index 21e8bb3..46b1f12 100644 --- a/themes/nu-themes/tango.nu +++ b/themes/nu-themes/tango.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/teerb.nu b/themes/nu-themes/teerb.nu index eb36077..a19c666 100644 --- a/themes/nu-themes/teerb.nu +++ b/themes/nu-themes/teerb.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-autumn.nu b/themes/nu-themes/tempus-autumn.nu index 70cd7b0..fd05c3e 100644 --- a/themes/nu-themes/tempus-autumn.nu +++ b/themes/nu-themes/tempus-autumn.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-classic.nu b/themes/nu-themes/tempus-classic.nu index 142603c..602c303 100644 --- a/themes/nu-themes/tempus-classic.nu +++ b/themes/nu-themes/tempus-classic.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-dawn.nu b/themes/nu-themes/tempus-dawn.nu index 0f0380d..42b2e54 100644 --- a/themes/nu-themes/tempus-dawn.nu +++ b/themes/nu-themes/tempus-dawn.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-day.nu b/themes/nu-themes/tempus-day.nu index cef0698..161c7d4 100644 --- a/themes/nu-themes/tempus-day.nu +++ b/themes/nu-themes/tempus-day.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-dusk.nu b/themes/nu-themes/tempus-dusk.nu index 6a9cb7d..f69661a 100644 --- a/themes/nu-themes/tempus-dusk.nu +++ b/themes/nu-themes/tempus-dusk.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-fugit.nu b/themes/nu-themes/tempus-fugit.nu index bb305b6..06359dd 100644 --- a/themes/nu-themes/tempus-fugit.nu +++ b/themes/nu-themes/tempus-fugit.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-future.nu b/themes/nu-themes/tempus-future.nu index 612f978..0a736f6 100644 --- a/themes/nu-themes/tempus-future.nu +++ b/themes/nu-themes/tempus-future.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-night.nu b/themes/nu-themes/tempus-night.nu index 313a6e5..1f6d0b0 100644 --- a/themes/nu-themes/tempus-night.nu +++ b/themes/nu-themes/tempus-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-past.nu b/themes/nu-themes/tempus-past.nu index 3e1637e..f93510e 100644 --- a/themes/nu-themes/tempus-past.nu +++ b/themes/nu-themes/tempus-past.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-rift.nu b/themes/nu-themes/tempus-rift.nu index c5c39b4..b80f517 100644 --- a/themes/nu-themes/tempus-rift.nu +++ b/themes/nu-themes/tempus-rift.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-spring.nu b/themes/nu-themes/tempus-spring.nu index d6a3ed9..a8ba5ec 100644 --- a/themes/nu-themes/tempus-spring.nu +++ b/themes/nu-themes/tempus-spring.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-summer.nu b/themes/nu-themes/tempus-summer.nu index d98e431..371a8a3 100644 --- a/themes/nu-themes/tempus-summer.nu +++ b/themes/nu-themes/tempus-summer.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-tempest.nu b/themes/nu-themes/tempus-tempest.nu index 761c2ad..84efbff 100644 --- a/themes/nu-themes/tempus-tempest.nu +++ b/themes/nu-themes/tempus-tempest.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-totus.nu b/themes/nu-themes/tempus-totus.nu index fb2dc83..a29a916 100644 --- a/themes/nu-themes/tempus-totus.nu +++ b/themes/nu-themes/tempus-totus.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-warp.nu b/themes/nu-themes/tempus-warp.nu index eddd8dc..5dc9319 100644 --- a/themes/nu-themes/tempus-warp.nu +++ b/themes/nu-themes/tempus-warp.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tempus-winter.nu b/themes/nu-themes/tempus-winter.nu index 9120eaa..8638cb0 100644 --- a/themes/nu-themes/tempus-winter.nu +++ b/themes/nu-themes/tempus-winter.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tender.nu b/themes/nu-themes/tender.nu index 738fd6c..99bb2fd 100644 --- a/themes/nu-themes/tender.nu +++ b/themes/nu-themes/tender.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/terminal-basic.nu b/themes/nu-themes/terminal-basic.nu index 6b11960..c3f4466 100644 --- a/themes/nu-themes/terminal-basic.nu +++ b/themes/nu-themes/terminal-basic.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/terminix-dark.nu b/themes/nu-themes/terminix-dark.nu index b939857..a1dfe55 100644 --- a/themes/nu-themes/terminix-dark.nu +++ b/themes/nu-themes/terminix-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/thayer-bright.nu b/themes/nu-themes/thayer-bright.nu index 0c1fa48..9262bfc 100644 --- a/themes/nu-themes/thayer-bright.nu +++ b/themes/nu-themes/thayer-bright.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/the-hulk.nu b/themes/nu-themes/the-hulk.nu index 21ca79f..b68cc86 100644 --- a/themes/nu-themes/the-hulk.nu +++ b/themes/nu-themes/the-hulk.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tin.nu b/themes/nu-themes/tin.nu index 1183eef..a15f05a 100644 --- a/themes/nu-themes/tin.nu +++ b/themes/nu-themes/tin.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tokyo-day.nu b/themes/nu-themes/tokyo-day.nu index 05794ea..4168a95 100644 --- a/themes/nu-themes/tokyo-day.nu +++ b/themes/nu-themes/tokyo-day.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tokyo-moon.nu b/themes/nu-themes/tokyo-moon.nu new file mode 100644 index 0000000..f8a7a55 --- /dev/null +++ b/themes/nu-themes/tokyo-moon.nu @@ -0,0 +1,119 @@ +# Retrieve the theme settings +export def main [] { return { + separator: "#a9b1d6" + leading_trailing_space_bg: { attr: "n" } + header: { fg: "#9ece6a" attr: "b" } + empty: "#7aa2f7" + bool: {|| if $in { "#7dcfff" } else { "light_gray" } } + int: "#a9b1d6" + filesize: {|e| + if $e == 0b { + "#a9b1d6" + } else if $e < 1mb { + "#7dcfff" + } else {{ fg: "#7aa2f7" }} + } + duration: "#a9b1d6" + date: {|| (date now) - $in | + if $in < 1hr { + { fg: "#f7768e" attr: "b" } + } else if $in < 6hr { + "#f7768e" + } else if $in < 1day { + "#e0af68" + } else if $in < 3day { + "#9ece6a" + } else if $in < 1wk { + { fg: "#9ece6a" attr: "b" } + } else if $in < 6wk { + "#7dcfff" + } else if $in < 52wk { + "#7aa2f7" + } else { "dark_gray" } + } + range: "#a9b1d6" + float: "#a9b1d6" + string: "#a9b1d6" + nothing: "#a9b1d6" + binary: "#a9b1d6" + cellpath: "#a9b1d6" + row_index: { fg: "#9ece6a" attr: "b" } + record: "#a9b1d6" + list: "#a9b1d6" + block: "#a9b1d6" + hints: "dark_gray" + search_result: { fg: "#f7768e" bg: "#a9b1d6" } + + shape_and: { fg: "#bb9af7" attr: "b" } + shape_binary: { fg: "#bb9af7" attr: "b" } + shape_block: { fg: "#7aa2f7" attr: "b" } + shape_bool: "#7dcfff" + shape_custom: "#9ece6a" + shape_datetime: { fg: "#7dcfff" attr: "b" } + shape_directory: "#7dcfff" + shape_external: "#7dcfff" + shape_externalarg: { fg: "#9ece6a" attr: "b" } + shape_filepath: "#7dcfff" + shape_flag: { fg: "#7aa2f7" attr: "b" } + shape_float: { fg: "#bb9af7" attr: "b" } + shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" } + shape_globpattern: { fg: "#7dcfff" attr: "b" } + shape_int: { fg: "#bb9af7" attr: "b" } + shape_internalcall: { fg: "#7dcfff" attr: "b" } + shape_list: { fg: "#7dcfff" attr: "b" } + shape_literal: "#7aa2f7" + shape_match_pattern: "#9ece6a" + shape_matching_brackets: { attr: "u" } + shape_nothing: "#7dcfff" + shape_operator: "#e0af68" + shape_or: { fg: "#bb9af7" attr: "b" } + shape_pipe: { fg: "#bb9af7" attr: "b" } + shape_range: { fg: "#e0af68" attr: "b" } + shape_record: { fg: "#7dcfff" attr: "b" } + shape_redirection: { fg: "#bb9af7" attr: "b" } + shape_signature: { fg: "#9ece6a" attr: "b" } + shape_string: "#9ece6a" + shape_string_interpolation: { fg: "#7dcfff" attr: "b" } + shape_table: { fg: "#7aa2f7" attr: "b" } + shape_variable: "#bb9af7" + + background: "#1a1b26" + foreground: "#c0caf5" + cursor: "#c0caf5" +}} + +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + +export module activate { + export-env { + set color_config + update terminal + } +} + +# Activate the theme when sourced +use activate \ No newline at end of file diff --git a/themes/nu-themes/tokyo-night.nu b/themes/nu-themes/tokyo-night.nu index 5dae70a..7bd97e6 100644 --- a/themes/nu-themes/tokyo-night.nu +++ b/themes/nu-themes/tokyo-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tokyo-storm.nu b/themes/nu-themes/tokyo-storm.nu index 858de85..02bfe1f 100644 --- a/themes/nu-themes/tokyo-storm.nu +++ b/themes/nu-themes/tokyo-storm.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tomorrow-night-blue.nu b/themes/nu-themes/tomorrow-night-blue.nu index 12063d0..04d412e 100644 --- a/themes/nu-themes/tomorrow-night-blue.nu +++ b/themes/nu-themes/tomorrow-night-blue.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tomorrow-night-bright.nu b/themes/nu-themes/tomorrow-night-bright.nu index d6a3899..607a09b 100644 --- a/themes/nu-themes/tomorrow-night-bright.nu +++ b/themes/nu-themes/tomorrow-night-bright.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tomorrow-night-eighties.nu b/themes/nu-themes/tomorrow-night-eighties.nu index db828c3..fcef9d7 100644 --- a/themes/nu-themes/tomorrow-night-eighties.nu +++ b/themes/nu-themes/tomorrow-night-eighties.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tomorrow-night.nu b/themes/nu-themes/tomorrow-night.nu index 7047c16..4509ecb 100644 --- a/themes/nu-themes/tomorrow-night.nu +++ b/themes/nu-themes/tomorrow-night.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tomorrow.nu b/themes/nu-themes/tomorrow.nu index 3f905bb..d073e6a 100644 --- a/themes/nu-themes/tomorrow.nu +++ b/themes/nu-themes/tomorrow.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/toy-chest.nu b/themes/nu-themes/toy-chest.nu index 652ed1c..cf4fdae 100644 --- a/themes/nu-themes/toy-chest.nu +++ b/themes/nu-themes/toy-chest.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/treehouse.nu b/themes/nu-themes/treehouse.nu index 6b4216f..ab0ede1 100644 --- a/themes/nu-themes/treehouse.nu +++ b/themes/nu-themes/treehouse.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/tube.nu b/themes/nu-themes/tube.nu index f1fa698..03c0ad9 100644 --- a/themes/nu-themes/tube.nu +++ b/themes/nu-themes/tube.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/twilight.nu b/themes/nu-themes/twilight.nu index b8daa38..591c954 100644 --- a/themes/nu-themes/twilight.nu +++ b/themes/nu-themes/twilight.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/two-firewatch.nu b/themes/nu-themes/two-firewatch.nu index da7208f..9ecf2fd 100644 --- a/themes/nu-themes/two-firewatch.nu +++ b/themes/nu-themes/two-firewatch.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/unikitty-dark.nu b/themes/nu-themes/unikitty-dark.nu index 29ed310..a6f28ad 100644 --- a/themes/nu-themes/unikitty-dark.nu +++ b/themes/nu-themes/unikitty-dark.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/unikitty-light.nu b/themes/nu-themes/unikitty-light.nu index 80a7276..e3cd596 100644 --- a/themes/nu-themes/unikitty-light.nu +++ b/themes/nu-themes/unikitty-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/ura.nu b/themes/nu-themes/ura.nu index 7fb7ca3..b64f667 100644 --- a/themes/nu-themes/ura.nu +++ b/themes/nu-themes/ura.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/urple.nu b/themes/nu-themes/urple.nu index 414ec6a..a6a4de2 100644 --- a/themes/nu-themes/urple.nu +++ b/themes/nu-themes/urple.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/vag.nu b/themes/nu-themes/vag.nu index 2d8d75a..809bf32 100644 --- a/themes/nu-themes/vag.nu +++ b/themes/nu-themes/vag.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/vaughn.nu b/themes/nu-themes/vaughn.nu index 49f12ed..5fb1151 100644 --- a/themes/nu-themes/vaughn.nu +++ b/themes/nu-themes/vaughn.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/vibrant-ink.nu b/themes/nu-themes/vibrant-ink.nu index 51dc020..4d21595 100644 --- a/themes/nu-themes/vibrant-ink.nu +++ b/themes/nu-themes/vibrant-ink.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/vs-code-dark-plus.nu b/themes/nu-themes/vs-code-dark-plus.nu index a634b47..17cac63 100644 --- a/themes/nu-themes/vs-code-dark-plus.nu +++ b/themes/nu-themes/vs-code-dark-plus.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/vulcan.nu b/themes/nu-themes/vulcan.nu index f4f79ee..b604fed 100644 --- a/themes/nu-themes/vulcan.nu +++ b/themes/nu-themes/vulcan.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/warm-neon.nu b/themes/nu-themes/warm-neon.nu index dcb753f..574f679 100644 --- a/themes/nu-themes/warm-neon.nu +++ b/themes/nu-themes/warm-neon.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/wez.nu b/themes/nu-themes/wez.nu index a526557..12afa21 100644 --- a/themes/nu-themes/wez.nu +++ b/themes/nu-themes/wez.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/wild-cherry.nu b/themes/nu-themes/wild-cherry.nu index 9d4b343..467a4b9 100644 --- a/themes/nu-themes/wild-cherry.nu +++ b/themes/nu-themes/wild-cherry.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-10-light.nu b/themes/nu-themes/windows-10-light.nu index c9bfde7..f74e5c3 100644 --- a/themes/nu-themes/windows-10-light.nu +++ b/themes/nu-themes/windows-10-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-10.nu b/themes/nu-themes/windows-10.nu index 936c0a8..9887497 100644 --- a/themes/nu-themes/windows-10.nu +++ b/themes/nu-themes/windows-10.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-95-light.nu b/themes/nu-themes/windows-95-light.nu index a45867d..8f7be96 100644 --- a/themes/nu-themes/windows-95-light.nu +++ b/themes/nu-themes/windows-95-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-95.nu b/themes/nu-themes/windows-95.nu index 9359d96..632411a 100644 --- a/themes/nu-themes/windows-95.nu +++ b/themes/nu-themes/windows-95.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-highcontrast-light.nu b/themes/nu-themes/windows-highcontrast-light.nu index ad389ff..98e4dae 100644 --- a/themes/nu-themes/windows-highcontrast-light.nu +++ b/themes/nu-themes/windows-highcontrast-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-highcontrast.nu b/themes/nu-themes/windows-highcontrast.nu index 67a64cf..915ef4f 100644 --- a/themes/nu-themes/windows-highcontrast.nu +++ b/themes/nu-themes/windows-highcontrast.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-nt-light.nu b/themes/nu-themes/windows-nt-light.nu index 6f61b20..196c64c 100644 --- a/themes/nu-themes/windows-nt-light.nu +++ b/themes/nu-themes/windows-nt-light.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/windows-nt.nu b/themes/nu-themes/windows-nt.nu index 9e45498..039b740 100644 --- a/themes/nu-themes/windows-nt.nu +++ b/themes/nu-themes/windows-nt.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/wombat.nu b/themes/nu-themes/wombat.nu index 3889dbd..f43d0d6 100644 --- a/themes/nu-themes/wombat.nu +++ b/themes/nu-themes/wombat.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/woodland.nu b/themes/nu-themes/woodland.nu index e04b5d6..74e3e05 100644 --- a/themes/nu-themes/woodland.nu +++ b/themes/nu-themes/woodland.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/wryan.nu b/themes/nu-themes/wryan.nu index 036cd02..bb54ef3 100644 --- a/themes/nu-themes/wryan.nu +++ b/themes/nu-themes/wryan.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/xcode-dusk.nu b/themes/nu-themes/xcode-dusk.nu index 61dc668..5cc6146 100644 --- a/themes/nu-themes/xcode-dusk.nu +++ b/themes/nu-themes/xcode-dusk.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/yachiyo.nu b/themes/nu-themes/yachiyo.nu index 27a703c..9d84496 100644 --- a/themes/nu-themes/yachiyo.nu +++ b/themes/nu-themes/yachiyo.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nu-themes/zenburn.nu b/themes/nu-themes/zenburn.nu index 3b64e76..fd4aa41 100644 --- a/themes/nu-themes/zenburn.nu +++ b/themes/nu-themes/zenburn.nu @@ -1,29 +1,3 @@ -# Update terminal colors -export def "update terminal" [] { - let theme = (main) - - # Set terminal colors - let osc_screen_foreground_color = '10;' - let osc_screen_background_color = '11;' - let osc_cursor_color = '12;' - - $" - (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) - (ansi -o $osc_screen_background_color)($theme.background)(char bel) - (ansi -o $osc_cursor_color)($theme.cursor)(char bel) - " - # Line breaks above are just for source readability - # but create extra whitespace when activating. Collapse - # to one line - | str replace --all "\n" '' - | print $in -} - -# Update the Nushell configuration -export def --env "set color_config" [] { - $env.config.color_config = (main) -} - # Retrieve the theme settings export def main [] { return { @@ -110,6 +84,32 @@ export def main [] { } } +# Update the Nushell configuration +export def --env "set color_config" [] { + $env.config.color_config = (main) +} + +# Update terminal colors +export def "update terminal" [] { + let theme = (main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $" + (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) + (ansi -o $osc_screen_background_color)($theme.background)(char bel) + (ansi -o $osc_cursor_color)($theme.cursor)(char bel) + " + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all "\n" '' + | print $in +} + export module activate { export-env { set color_config diff --git a/themes/nupm.nuon b/themes/nupm.nuon index 2804bd2..cc79d4e 100644 --- a/themes/nupm.nuon +++ b/themes/nupm.nuon @@ -3,6 +3,6 @@ description: "Officially-supported themes for Nushell" documentation: "https://github.com/nushell/nu_scripts/blob/main/README.md" license: "https://github.com/nushell/nu_scripts/blob/main/LICENSE" - version: 0.1.0 + version: 0.2.1 type: "module" } diff --git a/themes/src/README.md b/themes/src/README.md new file mode 100644 index 0000000..5b8a0b3 --- /dev/null +++ b/themes/src/README.md @@ -0,0 +1,20 @@ +# Scripts and Source + +This directory contains scripts and source files used to generate the `nu-themes` from their original sources. + +## `make.nu` + +Running `./make.nu` from inside the `src` directory will generate/update the main `nu-themes` directory. + +Currently, two sources are used: + +* The Lemnos Themes repository +* Custom Nushell themes located in the `custom-nu-themes` subdirectory + +## Custom themes + +Custom themes may be added to the `custom-nu-themes` directory. Follow the existing examples. + +## Screenshot Preview Scripts + +The `preview-*.nu` scripts are used to generate the screenshot examples. These currently require a Windows system. For instructions on usage, *"Use the Source, Luke"*. More documentation may be provided in a sequel. diff --git a/themes/src/custom-nu-themes/catppuccin-latte.nu b/themes/src/custom-nu-themes/catppuccin-latte.nu new file mode 100644 index 0000000..26c2f9c --- /dev/null +++ b/themes/src/custom-nu-themes/catppuccin-latte.nu @@ -0,0 +1,113 @@ +export def main [] { return { + const color_palette = { + rosewater: "#dc8a78" + flamingo: "#dd7878" + pink: "#ea76cb" + mauve: "#8839ef" + red: "#d20f39" + maroon: "#e64553" + peach: "#fe640b" + yellow: "#df8e1d" + green: "#40a02b" + teal: "#179299" + sky: "#04a5e5" + sapphire: "#209fb5" + blue: "#1e66f5" + lavender: "#7287fd" + text: "#4c4f69" + subtext1: "#5c5f77" + subtext0: "#6c6f85" + overlay2: "#7c7f93" + overlay1: "#8c8fa1" + overlay0: "#9ca0b0" + surface2: "#acb0be" + surface1: "#bcc0cc" + surface0: "#ccd0da" + crust: "#dce0e8" + mantle: "#e6e9ef" + base: "#eff1f5" + } + + separator: $color_palette.overlay0 + leading_trailing_space_bg: { attr: "n" } + header: { fg: $color_palette.blue attr: "b" } + empty: $color_palette.lavender + bool: $color_palette.lavender + int: $color_palette.peach + duration: $color_palette.text + filesize: {|e| + if $e < 1mb { + $color_palette.green + } else if $e < 100mb { + $color_palette.yellow + } else if $e < 500mb { + $color_palette.peach + } else if $e < 800mb { + $color_palette.maroon + } else if $e > 800mb { + $color_palette.red + } + } + date: {|| (date now) - $in | + if $in < 1hr { + $color_palette.green + } else if $in < 1day { + $color_palette.yellow + } else if $in < 3day { + $color_palette.peach + } else if $in < 1wk { + $color_palette.maroon + } else if $in > 1wk { + $color_palette.red + } + } + range: $color_palette.text + float: $color_palette.text + string: $color_palette.text + nothing: $color_palette.text + binary: $color_palette.text + cellpath: $color_palette.text + row_index: { fg: $color_palette.mauve attr: "b" } + record: $color_palette.text + list: $color_palette.text + block: $color_palette.text + hints: $color_palette.overlay1 + search_result: { fg: $color_palette.red bg: $color_palette.text } + + shape_and: { fg: $color_palette.pink attr: "b" } + shape_binary: { fg: $color_palette.pink attr: "b" } + shape_block: { fg: $color_palette.blue attr: "b" } + shape_bool: $color_palette.teal + shape_custom: $color_palette.green + shape_datetime: { fg: $color_palette.teal attr: "b" } + shape_directory: $color_palette.teal + shape_external: $color_palette.teal + shape_externalarg: { fg: $color_palette.green attr: "b" } + shape_filepath: $color_palette.teal + shape_flag: { fg: $color_palette.blue attr: "b" } + shape_float: { fg: $color_palette.pink attr: "b" } + shape_garbage: { fg: $color_palette.text bg: $color_palette.red attr: "b" } + shape_globpattern: { fg: $color_palette.teal attr: "b" } + shape_int: { fg: $color_palette.pink attr: "b" } + shape_internalcall: { fg: $color_palette.teal attr: "b" } + shape_list: { fg: $color_palette.teal attr: "b" } + shape_literal: $color_palette.blue + shape_match_pattern: $color_palette.green + shape_matching_brackets: { attr: "u" } + shape_nothing: $color_palette.teal + shape_operator: $color_palette.peach + shape_or: { fg: $color_palette.pink attr: "b" } + shape_pipe: { fg: $color_palette.pink attr: "b" } + shape_range: { fg: $color_palette.peach attr: "b" } + shape_record: { fg: $color_palette.teal attr: "b" } + shape_redirection: { fg: $color_palette.pink attr: "b" } + shape_signature: { fg: $color_palette.green attr: "b" } + shape_string: $color_palette.green + shape_string_interpolation: { fg: $color_palette.teal attr: "b" } + shape_table: { fg: $color_palette.blue attr: "b" } + shape_variable: $color_palette.pink + + background: $color_palette.base + foreground: $color_palette.text + cursor: $color_palette.blue +}} \ No newline at end of file diff --git a/themes/src/custom-nu-themes/catppuccin-mocha.nu b/themes/src/custom-nu-themes/catppuccin-mocha.nu new file mode 100644 index 0000000..15cd2b5 --- /dev/null +++ b/themes/src/custom-nu-themes/catppuccin-mocha.nu @@ -0,0 +1,113 @@ +export def main [] { return { + const color_palette = { + rosewater: "#f5e0dc" + flamingo: "#f2cdcd" + pink: "#f5c2e7" + mauve: "#cba6f7" + red: "#f38ba8" + maroon: "#eba0ac" + peach: "#fab387" + yellow: "#f9e2af" + green: "#a6e3a1" + teal: "#94e2d5" + sky: "#89dceb" + sapphire: "#74c7ec" + blue: "#89b4fa" + lavender: "#b4befe" + text: "#cdd6f4" + subtext1: "#bac2de" + subtext0: "#a6adc8" + overlay2: "#9399b2" + overlay1: "#7f849c" + overlay0: "#6c7086" + surface2: "#585b70" + surface1: "#45475a" + surface0: "#313244" + base: "#1e1e2e" + mantle: "#181825" + crust: "#11111b" + } + + separator: $color_palette.overlay0 + leading_trailing_space_bg: { attr: "n" } + header: { fg: $color_palette.blue attr: "b" } + empty: $color_palette.lavender + bool: $color_palette.lavender + int: $color_palette.peach + duration: $color_palette.text + filesize: {|e| + if $e < 1mb { + $color_palette.green + } else if $e < 100mb { + $color_palette.yellow + } else if $e < 500mb { + $color_palette.peach + } else if $e < 800mb { + $color_palette.maroon + } else if $e > 800mb { + $color_palette.red + } + } + date: {|| (date now) - $in | + if $in < 1hr { + $color_palette.green + } else if $in < 1day { + $color_palette.yellow + } else if $in < 3day { + $color_palette.peach + } else if $in < 1wk { + $color_palette.maroon + } else if $in > 1wk { + $color_palette.red + } + } + range: $color_palette.text + float: $color_palette.text + string: $color_palette.text + nothing: $color_palette.text + binary: $color_palette.text + cellpath: $color_palette.text + row_index: { fg: $color_palette.mauve attr: "b" } + record: $color_palette.text + list: $color_palette.text + block: $color_palette.text + hints: $color_palette.overlay1 + search_result: { fg: $color_palette.red bg: $color_palette.text } + + shape_and: { fg: $color_palette.pink attr: "b" } + shape_binary: { fg: $color_palette.pink attr: "b" } + shape_block: { fg: $color_palette.blue attr: "b" } + shape_bool: $color_palette.teal + shape_custom: $color_palette.green + shape_datetime: { fg: $color_palette.teal attr: "b" } + shape_directory: $color_palette.teal + shape_external: $color_palette.teal + shape_externalarg: { fg: $color_palette.green attr: "b" } + shape_filepath: $color_palette.teal + shape_flag: { fg: $color_palette.blue attr: "b" } + shape_float: { fg: $color_palette.pink attr: "b" } + shape_garbage: { fg: $color_palette.text bg: $color_palette.red attr: "b" } + shape_globpattern: { fg: $color_palette.teal attr: "b" } + shape_int: { fg: $color_palette.pink attr: "b" } + shape_internalcall: { fg: $color_palette.teal attr: "b" } + shape_list: { fg: $color_palette.teal attr: "b" } + shape_literal: $color_palette.blue + shape_match_pattern: $color_palette.green + shape_matching_brackets: { attr: "u" } + shape_nothing: $color_palette.teal + shape_operator: $color_palette.peach + shape_or: { fg: $color_palette.pink attr: "b" } + shape_pipe: { fg: $color_palette.pink attr: "b" } + shape_range: { fg: $color_palette.peach attr: "b" } + shape_record: { fg: $color_palette.teal attr: "b" } + shape_redirection: { fg: $color_palette.pink attr: "b" } + shape_signature: { fg: $color_palette.green attr: "b" } + shape_string: $color_palette.green + shape_string_interpolation: { fg: $color_palette.teal attr: "b" } + shape_table: { fg: $color_palette.blue attr: "b" } + shape_variable: $color_palette.pink + + background: $color_palette.base + foreground: $color_palette.text + cursor: $color_palette.blue +}} \ No newline at end of file diff --git a/themes/src/custom-nu-themes/nushell-dark.nu b/themes/src/custom-nu-themes/nushell-dark.nu new file mode 100644 index 0000000..94a2ab2 --- /dev/null +++ b/themes/src/custom-nu-themes/nushell-dark.nu @@ -0,0 +1,88 @@ +export def main [] { return { + # color for nushell primitives + separator: white + leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off + header: green_bold + empty: blue + # Closures can be used to choose colors for specific values. + # The value (in this case, a bool) is piped into the closure. + bool: {|| if $in { 'light_cyan' } else { 'light_gray' } } + int: white + filesize: {|e| + if $e == 0b { + 'white' + } else if $e < 1mb { + 'cyan' + } else { 'blue' } + } + duration: white + date: {|| (date now) - $in | + if $in < 1hr { + 'purple' + } else if $in < 6hr { + 'red' + } else if $in < 1day { + 'yellow' + } else if $in < 3day { + 'green' + } else if $in < 1wk { + 'light_green' + } else if $in < 6wk { + 'cyan' + } else if $in < 52wk { + 'blue' + } else { 'dark_gray' } + } + range: white + float: white + string: white + nothing: white + binary: white + cellpath: white + row_index: green_bold + record: white + list: white + block: white + hints: dark_gray + search_result: {bg: red fg: white} + + shape_and: purple_bold + shape_binary: purple_bold + shape_block: blue_bold + shape_bool: light_cyan + shape_closure: green_bold + shape_custom: green + shape_datetime: cyan_bold + shape_directory: cyan + shape_external: cyan + shape_externalarg: green_bold + shape_filepath: cyan + shape_flag: blue_bold + shape_float: purple_bold + # shapes are used to change the cli syntax highlighting + shape_garbage: { fg: white bg: red attr: b} + shape_globpattern: cyan_bold + shape_int: purple_bold + shape_internalcall: cyan_bold + shape_list: cyan_bold + shape_literal: blue + shape_match_pattern: green + shape_matching_brackets: { attr: u } + shape_nothing: light_cyan + shape_operator: yellow + shape_or: purple_bold + shape_pipe: purple_bold + shape_range: yellow_bold + shape_record: cyan_bold + shape_redirection: purple_bold + shape_signature: green_bold + shape_string: green + shape_string_interpolation: cyan_bold + shape_table: blue_bold + shape_variable: purple + shape_vardecl: purple + + background: dark_gray + foreground: default + cursor: red +}} \ No newline at end of file diff --git a/themes/src/custom-nu-themes/nushell-light.nu b/themes/src/custom-nu-themes/nushell-light.nu new file mode 100644 index 0000000..2332819 --- /dev/null +++ b/themes/src/custom-nu-themes/nushell-light.nu @@ -0,0 +1,88 @@ +export def main [] { return { + # color for nushell primitives + separator: dark_gray + leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off + header: green_bold + empty: blue + # Closures can be used to choose colors for specific values. + # The value (in this case, a bool) is piped into the closure. + bool: {|| if $in { 'dark_cyan' } else { 'dark_gray' } } + int: dark_gray + filesize: {|e| + if $e == 0b { + 'dark_gray' + } else if $e < 1mb { + 'cyan_bold' + } else { 'blue_bold' } + } + duration: dark_gray + date: {|| (date now) - $in | + if $in < 1hr { + 'purple' + } else if $in < 6hr { + 'red' + } else if $in < 1day { + 'yellow' + } else if $in < 3day { + 'green' + } else if $in < 1wk { + 'light_green' + } else if $in < 6wk { + 'cyan' + } else if $in < 52wk { + 'blue' + } else { 'dark_gray' } + } + range: dark_gray + float: dark_gray + string: dark_gray + nothing: dark_gray + binary: dark_gray + cellpath: dark_gray + row_index: green_bold + record: white + list: white + block: white + hints: dark_gray + search_result: {fg: white bg: red} + + shape_and: purple_bold + shape_binary: purple_bold + shape_block: blue_bold + shape_bool: light_cyan + shape_closure: green_bold + shape_custom: green + shape_datetime: cyan_bold + shape_directory: cyan + shape_external: cyan + shape_externalarg: green_bold + shape_filepath: cyan + shape_flag: blue_bold + shape_float: purple_bold + # shapes are used to change the cli syntax highlighting + shape_garbage: { fg: white bg: red attr: b} + shape_globpattern: cyan_bold + shape_int: purple_bold + shape_internalcall: cyan_bold + shape_list: cyan_bold + shape_literal: blue + shape_match_pattern: green + shape_matching_brackets: { attr: u } + shape_nothing: light_cyan + shape_operator: yellow + shape_or: purple_bold + shape_pipe: purple_bold + shape_range: yellow_bold + shape_record: cyan_bold + shape_redirection: purple_bold + shape_signature: green_bold + shape_string: green + shape_string_interpolation: cyan_bold + shape_table: blue_bold + shape_variable: purple + shape_vardecl: purple + + background: light_gray + foreground: default + cursor: red +}} \ No newline at end of file diff --git a/themes/src/custom-nu-themes/tokyo-moon.nu b/themes/src/custom-nu-themes/tokyo-moon.nu new file mode 100644 index 0000000..e70cea6 --- /dev/null +++ b/themes/src/custom-nu-themes/tokyo-moon.nu @@ -0,0 +1,82 @@ +export def main [] { return { + separator: "#a9b1d6" + leading_trailing_space_bg: { attr: "n" } + header: { fg: "#9ece6a" attr: "b" } + empty: "#7aa2f7" + bool: {|| if $in { "#7dcfff" } else { "light_gray" } } + int: "#a9b1d6" + filesize: {|e| + if $e == 0b { + "#a9b1d6" + } else if $e < 1mb { + "#7dcfff" + } else {{ fg: "#7aa2f7" }} + } + duration: "#a9b1d6" + date: {|| (date now) - $in | + if $in < 1hr { + { fg: "#f7768e" attr: "b" } + } else if $in < 6hr { + "#f7768e" + } else if $in < 1day { + "#e0af68" + } else if $in < 3day { + "#9ece6a" + } else if $in < 1wk { + { fg: "#9ece6a" attr: "b" } + } else if $in < 6wk { + "#7dcfff" + } else if $in < 52wk { + "#7aa2f7" + } else { "dark_gray" } + } + range: "#a9b1d6" + float: "#a9b1d6" + string: "#a9b1d6" + nothing: "#a9b1d6" + binary: "#a9b1d6" + cellpath: "#a9b1d6" + row_index: { fg: "#9ece6a" attr: "b" } + record: "#a9b1d6" + list: "#a9b1d6" + block: "#a9b1d6" + hints: "dark_gray" + search_result: { fg: "#f7768e" bg: "#a9b1d6" } + + shape_and: { fg: "#bb9af7" attr: "b" } + shape_binary: { fg: "#bb9af7" attr: "b" } + shape_block: { fg: "#7aa2f7" attr: "b" } + shape_bool: "#7dcfff" + shape_custom: "#9ece6a" + shape_datetime: { fg: "#7dcfff" attr: "b" } + shape_directory: "#7dcfff" + shape_external: "#7dcfff" + shape_externalarg: { fg: "#9ece6a" attr: "b" } + shape_filepath: "#7dcfff" + shape_flag: { fg: "#7aa2f7" attr: "b" } + shape_float: { fg: "#bb9af7" attr: "b" } + shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" } + shape_globpattern: { fg: "#7dcfff" attr: "b" } + shape_int: { fg: "#bb9af7" attr: "b" } + shape_internalcall: { fg: "#7dcfff" attr: "b" } + shape_list: { fg: "#7dcfff" attr: "b" } + shape_literal: "#7aa2f7" + shape_match_pattern: "#9ece6a" + shape_matching_brackets: { attr: "u" } + shape_nothing: "#7dcfff" + shape_operator: "#e0af68" + shape_or: { fg: "#bb9af7" attr: "b" } + shape_pipe: { fg: "#bb9af7" attr: "b" } + shape_range: { fg: "#e0af68" attr: "b" } + shape_record: { fg: "#7dcfff" attr: "b" } + shape_redirection: { fg: "#bb9af7" attr: "b" } + shape_signature: { fg: "#9ece6a" attr: "b" } + shape_string: "#9ece6a" + shape_string_interpolation: { fg: "#7dcfff" attr: "b" } + shape_table: { fg: "#7aa2f7" attr: "b" } + shape_variable: "#bb9af7" + + background: "#1a1b26" + foreground: "#c0caf5" + cursor: "#c0caf5" +}} \ No newline at end of file diff --git a/themes/src/make.nu b/themes/src/make.nu new file mode 100755 index 0000000..852b84a --- /dev/null +++ b/themes/src/make.nu @@ -0,0 +1,240 @@ +#!/usr/bin/env nu +use .../stdlib-candidate/std-rfc str + +let current_dir = ($env.CURRENT_FILE | path dirname) + +let LEMNOS_SOURCE = { + dir: ($current_dir | path join "lemnos" "themes") + local_repo: ($current_dir | path join "lemnos") + remote_repo: "https://github.com/lemnos/theme.sh" +} + +let CUSTOM_SOURCE = { + dir: ($current_dir | path join "custom-nu-themes") +} + +let themes_dir = ($current_dir | path join "../nu-themes") + +# For lemnos themes, create the color_config from the lemnos theme +# definition. +# Custom Nushell themes should be defined in themes/src/custom-nu-themes +# and should return a color_config record in the main function. +def make_color_config [ name: string, source: string = "lemnos" ] { + match $source { + "lemnos" => { + let colors = ( + open ($LEMNOS_SOURCE.dir | path join $name) + | lines --skip-empty + | find --invert --regex '^#' + | split column " " + | rename name rgb + | transpose -r + | into record + ) + + return $" + # Retrieve the theme settings + export def main [] { + return { + separator: '($colors.color7)' + leading_trailing_space_bg: { attr: 'n' } + header: { fg: '($colors.color2)' attr: 'b' } + empty: '($colors.color4)' + bool: {|| if $in { '($colors.color14)' } else { 'light_gray' } } + int: '($colors.color7)' + filesize: {|e| + if $e == 0b { + '($colors.color7)' + } else if $e < 1mb { + '($colors.color6)' + } else {{ fg: '($colors.color4)' }} + } + duration: '($colors.color7)' + date: {|| (char lparen)date now(char rparen) - $in | + if $in < 1hr { + { fg: '($colors.color1)' attr: 'b' } + } else if $in < 6hr { + '($colors.color1)' + } else if $in < 1day { + '($colors.color3)' + } else if $in < 3day { + '($colors.color2)' + } else if $in < 1wk { + { fg: '($colors.color2)' attr: 'b' } + } else if $in < 6wk { + '($colors.color6)' + } else if $in < 52wk { + '($colors.color4)' + } else { 'dark_gray' } + } + range: '($colors.color7)' + float: '($colors.color7)' + string: '($colors.color7)' + nothing: '($colors.color7)' + binary: '($colors.color7)' + cellpath: '($colors.color7)' + row_index: { fg: '($colors.color2)' attr: 'b' } + record: '($colors.color7)' + list: '($colors.color7)' + block: '($colors.color7)' + hints: 'dark_gray' + search_result: { fg: '($colors.color1)' bg: '($colors.color7)' } + + shape_and: { fg: '($colors.color5)' attr: 'b' } + shape_binary: { fg: '($colors.color5)' attr: 'b' } + shape_block: { fg: '($colors.color4)' attr: 'b' } + shape_bool: '($colors.color14)' + shape_custom: '($colors.color2)' + shape_datetime: { fg: '($colors.color6)' attr: 'b' } + shape_directory: '($colors.color6)' + shape_external: '($colors.color6)' + shape_externalarg: { fg: '($colors.color2)' attr: 'b' } + shape_filepath: '($colors.color6)' + shape_flag: { fg: '($colors.color4)' attr: 'b' } + shape_float: { fg: '($colors.color5)' attr: 'b' } + shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' } + shape_globpattern: { fg: '($colors.color6)' attr: 'b' } + shape_int: { fg: '($colors.color5)' attr: 'b' } + shape_internalcall: { fg: '($colors.color6)' attr: 'b' } + shape_list: { fg: '($colors.color6)' attr: 'b' } + shape_literal: '($colors.color4)' + shape_match_pattern: '($colors.color2)' + shape_matching_brackets: { attr: 'u' } + shape_nothing: '($colors.color14)' + shape_operator: '($colors.color3)' + shape_or: { fg: '($colors.color5)' attr: 'b' } + shape_pipe: { fg: '($colors.color5)' attr: 'b' } + shape_range: { fg: '($colors.color3)' attr: 'b' } + shape_record: { fg: '($colors.color6)' attr: 'b' } + shape_redirection: { fg: '($colors.color5)' attr: 'b' } + shape_signature: { fg: '($colors.color2)' attr: 'b' } + shape_string: '($colors.color2)' + shape_string_interpolation: { fg: '($colors.color6)' attr: 'b' } + shape_table: { fg: '($colors.color4)' attr: 'b' } + shape_variable: '($colors.color5)' + + background: '($colors.background)' + foreground: '($colors.foreground)' + cursor: '($colors.cursor)' + } + } + " + } + "custom" => { + let original_file = ( + { + parent: $CUSTOM_SOURCE.dir + stem: $name + extension: 'nu' + } + | path join + ) + # Add starting and ending linebreaks for str-dedent + return $"\n# Retrieve the theme settings\n(open $original_file)\n" + } + } +} + +def make_theme [ name: string, origin: string = "lemnos" ] { + + # Generate the theme depending on what type/origin it is + let main_command = ((make_color_config $name $origin) | str dedent) + + let update_terminal_command = $" + # Update terminal colors + export def \"update terminal\" [] { + let theme = \(main) + + # Set terminal colors + let osc_screen_foreground_color = '10;' + let osc_screen_background_color = '11;' + let osc_cursor_color = '12;' + + $\" + \(ansi -o $osc_screen_foreground_color)\($theme.foreground)\(char bel) + \(ansi -o $osc_screen_background_color)\($theme.background)\(char bel) + \(ansi -o $osc_cursor_color)\($theme.cursor)\(char bel) + \" + # Line breaks above are just for source readability + # but create extra whitespace when activating. Collapse + # to one line + | str replace --all \"\\n\" '' + | print $in + } + " + | str dedent + + let set_color_config_command = $" + # Update the Nushell configuration + export def --env \"set color_config\" [] { + $env.config.color_config = \(main) + } + " + | str dedent + + let activate_command = $" + export module activate { + export-env { + set color_config + update terminal + } + } + + # Activate the theme when sourced + use activate + " + | str dedent + + # Combine into the final theme file + [ + $main_command + $set_color_config_command + $update_terminal_command + $activate_command + ] + | str join "\n\n" + #| str dedent + | save --force ({ + parent: $themes_dir + stem: $"($name)" + extension: "nu" + } | path join) + +} + +def main [] { + mkdir $themes_dir + + try { git clone $LEMNOS_SOURCE.remote_repo $LEMNOS_SOURCE.local_repo } + + ls $LEMNOS_SOURCE.dir + | get name + | path parse + | get stem + | each {|theme| + print $"Converting ($theme)" + try { + make_theme $theme + } catch {|e| + print -e $"Error converting ($theme)" + print -e $e.debug + } + } + | ignore + + ls $CUSTOM_SOURCE.dir + | get name + | path parse + | get stem + | each {|theme| + print $"Converting ($theme)" + try { + make_theme $theme "custom" + } catch {|e| + print -e $"Error converting ($theme)" + print -e $e.debug + } + } + + print "all done" +} diff --git a/themes/screenshots/scripts/preview-generate-script.nu b/themes/src/preview-generate-script.nu similarity index 100% rename from themes/screenshots/scripts/preview-generate-script.nu rename to themes/src/preview-generate-script.nu diff --git a/themes/screenshots/scripts/preview-screenshot-script.nu b/themes/src/preview-screenshot-script.nu similarity index 100% rename from themes/screenshots/scripts/preview-screenshot-script.nu rename to themes/src/preview-screenshot-script.nu diff --git a/themes/screenshots/scripts/preview-terminal.nu b/themes/src/preview-terminal.nu similarity index 100% rename from themes/screenshots/scripts/preview-terminal.nu rename to themes/src/preview-terminal.nu diff --git a/themes/screenshots/scripts/preview-theme.nu b/themes/src/preview-theme.nu similarity index 100% rename from themes/screenshots/scripts/preview-theme.nu rename to themes/src/preview-theme.nu