mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-01 20:21:41 +01:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
@@ -0,0 +1 @@
|
||||
lemnos/
|
||||
@@ -0,0 +1,118 @@
|
||||
# Nushell Themes
|
||||
|
||||
Credit to @lemnos and [all contributors](https://github.com/lemnos/theme.sh/blob/master/CREDITS.md).
|
||||
|
||||
Note:
|
||||
|
||||
* If using Nupm, or the `<package_root>/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 `<package_root>/themes` directory.
|
||||
|
||||
## Basic usage
|
||||
### Activate a colorscheme
|
||||
|
||||
```nu
|
||||
source nu-themes/<theme>.nu
|
||||
```
|
||||
|
||||
For example, to use the `dracula` theme:
|
||||
|
||||
```nu
|
||||
source nu-themes/dracula.nu
|
||||
```
|
||||
|
||||
The theme should be activated!
|
||||
|
||||
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 <package_root>/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
|
||||
|
||||
```shell
|
||||
git clone https://github.com/nushell/nu_scripts
|
||||
```
|
||||
|
||||
3. Activate the `nupm` module with `use nupm`
|
||||
4. Install the `nu-scripts` package
|
||||
|
||||
```nushell
|
||||
nupm install --path --force nu_scripts
|
||||
```
|
||||
|
||||
> **Note**
|
||||
> installing the `nu-scripts` package will install `nu-themes` and other modules
|
||||
|
||||
## Screenshots
|
||||
|
||||
Here are [screenshots](./screenshots/README.md) of our themes.
|
||||
|
||||
[Nupm]: https://github.com/nushell/nupm
|
||||
[Nupm instructions]: https://github.com/nushell/nupm#recycle-installation-toc
|
||||
@@ -0,0 +1,347 @@
|
||||
def "ansi_names" [] {
|
||||
[
|
||||
...(ansi --list | get name)
|
||||
...(ansi --list | get 'short name' | range 133..338)
|
||||
]
|
||||
}
|
||||
|
||||
def "color_config" [] {
|
||||
if ($env.config?.color_config? == null) {
|
||||
error make -u {
|
||||
msg: "$env.config.color_config is not defined"
|
||||
}
|
||||
}
|
||||
|
||||
$env.config?.color_config?
|
||||
| transpose key value
|
||||
}
|
||||
|
||||
# Preview the current nushell theme
|
||||
export def "preview theme" [] {
|
||||
let all_ansi_names = (ansi_names)
|
||||
let color_config = (color_config)
|
||||
|
||||
let color_table = ($color_config | each {|row|
|
||||
if ($row.value | describe | str contains 'closure') {
|
||||
# get the closure as a string
|
||||
let source_code = (view source ($env.config.color_config | get $row.key) | str replace -a "'" '')
|
||||
# replace named colors with ansi codes, this will not work for hex colors
|
||||
let source_code_replaced = ($all_ansi_names | reduce -f $source_code {|it, acc| $acc | str replace $"\\b($it)\\b" $"(ansi $it)($it)(ansi reset)"})
|
||||
if $row.key == 'date' {
|
||||
let date_show = ([[dates];[((date now) - 30min)] [((date now) - 3hr)] [((date now) - 23hr)] [((date now) - 2day)] [((date now) - 5day)] [((date now) - 4wk)] [((date now) - 10wk)] [((date now) - 100wk)]])
|
||||
[[key value]; [$row.key $date_show]]
|
||||
} else if $row.key == 'bool' {
|
||||
let bool_show = ([[bools]; [true] [false]])
|
||||
[[key value]; [$row.key $bool_show]]
|
||||
} else if $row.key == 'filesize' {
|
||||
let filesize_show = ([[filesizes]; [0b] [500kb] [1mb]])
|
||||
[[key value]; [$row.key $filesize_show]]
|
||||
} else if $row.key == 'string' {
|
||||
let string_show = ([[strings]; ['#FF0000'] ['#00FF00'] ['#0000FF'] ['some text']])
|
||||
[[key value]; [$row.key $string_show]]
|
||||
} else {
|
||||
[[key value]; [$row.key $source_code_replaced]]
|
||||
}
|
||||
} else if ($row.value | describe | str contains 'record') {
|
||||
[[key value]; [$row.key $"(ansi ($row.value))($row.value)(ansi reset)"]]
|
||||
} else if ($row.value | str starts-with '#') {
|
||||
[[key value]; [$row.key $"(ansi ($row.value))($row.value)(ansi reset)"]]
|
||||
} else {
|
||||
[[key value]; [$row.key $"(ansi ($row.value))($row.value)(ansi reset)"]]
|
||||
}
|
||||
} | flatten)
|
||||
|
||||
# This draws the table with two tables merged
|
||||
# let row_count = ($color_table | length)
|
||||
# let row_count_half = (($color_table | length) / 2 | math floor)
|
||||
# let table1 = ($color_table | range 0..$row_count_half | rename datatypes dtvals)
|
||||
# let table2 = ($color_table | range $row_count_half..$row_count | rename shapes shpvals)
|
||||
# echo $table1 | merge $table2
|
||||
|
||||
# This draws the table with three tables merged
|
||||
let row_count = ($color_table | length)
|
||||
let row_count_third = (($color_table | length) / 3 | math floor)
|
||||
let table1 = ($color_table | range 0..$row_count_third | rename key1 val1)
|
||||
let table2 = ($color_table | range $row_count_third..($row_count_third * 2) | rename key2 val2)
|
||||
let table3 = ($color_table | range ($row_count_third * 2)..$row_count | rename key3 val3)
|
||||
echo $table1 | merge $table2 | merge $table3
|
||||
}
|
||||
|
||||
def "nu-complete list themes" [] {
|
||||
ls themes/themes/ | get name | path parse | get stem
|
||||
}
|
||||
|
||||
# preview completion. For this to work, it should be ran from the nu_scripts folder
|
||||
def preview [theme: string@"nu-complete list themes"] {
|
||||
commandline edit --insert $"use themes/themes/($theme).nu; $env.config.color_config = (char lparen)($theme)(char rparen); preview_theme | table -e"
|
||||
}
|
||||
|
||||
# preview completion. For this to work, it should be ran from the nu_scripts folder
|
||||
def preview_small [theme: string@"nu-complete list themes"] {
|
||||
commandline edit --insert $"use themes/themes/($theme).nu; $env.config.color_config = (char lparen)($theme)(char rparen); preview_theme_small | table -e"
|
||||
}
|
||||
|
||||
def get_type_keys [] {
|
||||
where {|i| $i.key in [
|
||||
binary
|
||||
block
|
||||
bool
|
||||
cell-path
|
||||
closure
|
||||
custom
|
||||
date
|
||||
duration
|
||||
filesize
|
||||
float
|
||||
glob
|
||||
int
|
||||
list
|
||||
nothing
|
||||
range
|
||||
record
|
||||
string
|
||||
]}
|
||||
}
|
||||
|
||||
def get_structure_keys [] {
|
||||
where {|i| $i.key in [
|
||||
foreground
|
||||
cursor
|
||||
empty
|
||||
header
|
||||
hints
|
||||
leading_trailing_space_bg
|
||||
row_index
|
||||
search_result
|
||||
separator
|
||||
]}
|
||||
}
|
||||
|
||||
def get_shape_keys [] {
|
||||
where {|i| $i.key | str starts-with "shape_" }
|
||||
}
|
||||
|
||||
def get_conditional_keys [] {
|
||||
where {|i| ($i.value | describe) == "closure" }
|
||||
}
|
||||
|
||||
# Preview the current nushell theme, small mode
|
||||
export def "preview theme small" [] {
|
||||
let color_config = (color_config)
|
||||
|
||||
let conditionals = ($color_config | get_conditional_keys)
|
||||
let shapes = ($color_config | get_shape_keys)
|
||||
let types = ($color_config | get_type_keys)
|
||||
let structure = ($color_config | get_structure_keys)
|
||||
|
||||
let conditionals_content = (
|
||||
$conditionals
|
||||
| each {|row| format closure --short $row})
|
||||
| str join "\n"
|
||||
|
||||
let types_content = (
|
||||
$types
|
||||
| where $it.key not-in $conditionals.key
|
||||
| each {|row| format basic --short $row }
|
||||
| str join "\n"
|
||||
)
|
||||
|
||||
let structure_content = (
|
||||
$structure
|
||||
| where $it.key not-in $conditionals.key
|
||||
| each {|row|
|
||||
match $row.key {
|
||||
"foreground" => (format foreground_background --short $color_config)
|
||||
_ => (format basic --short $row)
|
||||
}
|
||||
}
|
||||
| str join "\n"
|
||||
)
|
||||
|
||||
let shapes_content = (
|
||||
$shapes
|
||||
| where $it.key not-in $conditionals.key
|
||||
| each {|row| format basic --short $row }
|
||||
| str join "\n"
|
||||
)
|
||||
|
||||
let structure_and_types_content = (
|
||||
[
|
||||
$types_content
|
||||
$structure_content
|
||||
]
|
||||
| str join "\n\n\n\n\n"
|
||||
)
|
||||
|
||||
[
|
||||
{
|
||||
"Shapes": $shapes_content
|
||||
"Other Types and Structure": $structure_and_types_content
|
||||
"Conditionally Defined": $conditionals_content
|
||||
}
|
||||
]
|
||||
| table -i false
|
||||
# Remove header
|
||||
| str replace -r '^([^\n]+)(\n[^\n]+){2}' '$1'
|
||||
}
|
||||
|
||||
# Preview what your terminal theme looks like
|
||||
export def 'preview terminal' [] {
|
||||
def preview [attr: string] {
|
||||
let color = $in
|
||||
$"(ansi -e {fg: $color attr: $attr})($color)(ansi reset)"
|
||||
}
|
||||
|
||||
let colors = [
|
||||
[normal rgb];
|
||||
|
||||
[black '#000000']
|
||||
[red '#FF0000']
|
||||
[green '#00FF00']
|
||||
[yellow '#FFFF00']
|
||||
[blue '#0000FF']
|
||||
[magenta '#FF00FF']
|
||||
[purple '#FF00FF']
|
||||
[cyan '#00FFFF']
|
||||
[white '#FFFFFF']
|
||||
]
|
||||
|
||||
$colors | each {|color| {
|
||||
dimmed: ($color.normal | preview d)
|
||||
normal: ($color.normal | preview n)
|
||||
bold: ($color.normal | preview b)
|
||||
|
||||
rgb_dimmed: ($color.rgb | preview d)
|
||||
rgb_normal: ($color.rgb | preview n)
|
||||
rgb_bold: ($color.rgb | preview b)
|
||||
}}
|
||||
}
|
||||
|
||||
# Updates the terminal colors based on the current color_config
|
||||
export def "update terminal" [] {
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
let foreground = ($env.config?.color_config?.foreground? | default "#0000FF")
|
||||
print $foreground
|
||||
let background = ($env.config?.color_config?.background? | default "#000000")
|
||||
print $background
|
||||
let cursor = ($env.config?.color_config?.cursor? | default "#FFFFFF")
|
||||
print $cursor
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line
|
||||
| str replace --all "\n" ''
|
||||
| print $in
|
||||
|
||||
}
|
||||
|
||||
def no-newline [] string->string {
|
||||
$in | str replace -r '\n$' ''
|
||||
}
|
||||
|
||||
def "format foreground_background" [
|
||||
color_table
|
||||
--short (-s)
|
||||
] {
|
||||
let color_record = ($color_table | transpose -dr)
|
||||
let fg_bg = {
|
||||
fg: $color_record.foreground?
|
||||
bg: $color_record.background?
|
||||
}
|
||||
match $short {
|
||||
false => {
|
||||
key: "Foreground/Background"
|
||||
value: $"($color_record.foreground?) on ($color_record.background?)"
|
||||
}
|
||||
|
||||
true => $"(ansi $fg_bg)foreground/background - ($color_record.foreground?) on ($color_record.background?)(ansi reset)"
|
||||
}
|
||||
}
|
||||
|
||||
def "format basic" [
|
||||
color_item: record
|
||||
--short (-s)
|
||||
] {
|
||||
match $short {
|
||||
false => {
|
||||
key: $color_item.key
|
||||
value: $"(ansi $color_item.value)($color_item.value)(ansi reset)"
|
||||
}
|
||||
|
||||
true => $"(ansi $color_item.value)($color_item.key) - ($color_item.value)(ansi reset)"
|
||||
}
|
||||
}
|
||||
|
||||
def "format closure" [
|
||||
color_item: record
|
||||
--short (-s)
|
||||
] {
|
||||
let demo_value = (
|
||||
match $color_item.key {
|
||||
"bool" => [
|
||||
{"bools": true}
|
||||
{"bools": false}
|
||||
]
|
||||
|
||||
"date" => [
|
||||
{"dates": ((date now) - 30min)}
|
||||
{"dates": ((date now) - 3hr)}
|
||||
{"dates": ((date now) - 23hr)}
|
||||
{"dates": ((date now) - 2day)}
|
||||
{"dates": ((date now) - 5day)}
|
||||
{"dates": ((date now) - 4wk)}
|
||||
{"dates": ((date now) - 10wk)}
|
||||
{"dates": ((date now) - 100wk)}
|
||||
]
|
||||
|
||||
"filesize" => [
|
||||
{"filesizes": 0b}
|
||||
{"filesizes": 500kb}
|
||||
{"filesizes": 1mb}
|
||||
]
|
||||
|
||||
"string" => [
|
||||
{"strings": "#FF0000"}
|
||||
{"strings": "#00FF00"}
|
||||
{"strings": "#0000FF"}
|
||||
{"strings": "other text"}
|
||||
]
|
||||
|
||||
_ => {
|
||||
$"($color_item.key) - \(Depends on closure)"
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
match $short {
|
||||
true => ($demo_value | table | no-newline)
|
||||
false => {
|
||||
key: $color_item.key
|
||||
value: ($demo_value | table | no-newline)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Not used
|
||||
def "format record" [
|
||||
color_rec: record
|
||||
--short (-s)
|
||||
] {
|
||||
match $short {
|
||||
true => {
|
||||
$color_rec
|
||||
| to nuon
|
||||
| str replace -a '"' ''
|
||||
| $"(ansi ($color_rec))($in)(ansi reset)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a16a94'
|
||||
block: '#01a0e4'
|
||||
cell-path: '#a5a2a2'
|
||||
closure: '#b5e4f4'
|
||||
custom: '#f7f7f7'
|
||||
duration: '#fded02'
|
||||
float: '#e8bbd0'
|
||||
glob: '#f7f7f7'
|
||||
int: '#a16a94'
|
||||
list: '#b5e4f4'
|
||||
nothing: '#db2d20'
|
||||
range: '#fded02'
|
||||
record: '#b5e4f4'
|
||||
string: '#01a252'
|
||||
|
||||
bool: {|| if $in { '#cdab53' } else { '#fded02' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#db2d20' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#db2d20'
|
||||
} else if $in < 1day {
|
||||
'#fded02'
|
||||
} else if $in < 3day {
|
||||
'#01a252'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#01a252' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#b5e4f4'
|
||||
} else if $in < 52wk {
|
||||
'#01a0e4'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a5a2a2'
|
||||
} else if $e < 1mb {
|
||||
'#b5e4f4'
|
||||
} else {{ fg: '#01a0e4' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a16a94' attr: 'b' }
|
||||
shape_binary: { fg: '#a16a94' attr: 'b' }
|
||||
shape_block: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_bool: '#cdab53'
|
||||
shape_closure: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_custom: '#01a252'
|
||||
shape_datetime: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_directory: '#b5e4f4'
|
||||
shape_external: '#b5e4f4'
|
||||
shape_external_resolved: '#cdab53'
|
||||
shape_externalarg: { fg: '#01a252' attr: 'b' }
|
||||
shape_filepath: '#b5e4f4'
|
||||
shape_flag: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_float: { fg: '#e8bbd0' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_globpattern: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_int: { fg: '#a16a94' attr: 'b' }
|
||||
shape_internalcall: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_keyword: { fg: '#a16a94' attr: 'b' }
|
||||
shape_list: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_literal: '#01a0e4'
|
||||
shape_match_pattern: '#01a252'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#db2d20'
|
||||
shape_operator: '#fded02'
|
||||
shape_or: { fg: '#a16a94' attr: 'b' }
|
||||
shape_pipe: { fg: '#a16a94' attr: 'b' }
|
||||
shape_range: { fg: '#fded02' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f7f7f7' attr: 'b' }
|
||||
shape_record: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_redirection: { fg: '#a16a94' attr: 'b' }
|
||||
shape_signature: { fg: '#01a252' attr: 'b' }
|
||||
shape_string: '#01a252'
|
||||
shape_string_interpolation: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_table: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_vardecl: { fg: '#01a0e4' attr: 'u' }
|
||||
shape_variable: '#a16a94'
|
||||
|
||||
foreground: '#4a4543'
|
||||
background: '#f7f7f7'
|
||||
cursor: '#4a4543'
|
||||
|
||||
empty: '#01a0e4'
|
||||
header: { fg: '#01a252' attr: 'b' }
|
||||
hints: '#5c5855'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#01a252' attr: 'b' }
|
||||
search_result: { fg: '#db2d20' bg: '#a5a2a2' }
|
||||
separator: '#a5a2a2'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a16a94'
|
||||
block: '#01a0e4'
|
||||
cell-path: '#a5a2a2'
|
||||
closure: '#b5e4f4'
|
||||
custom: '#f7f7f7'
|
||||
duration: '#fded02'
|
||||
float: '#e8bbd0'
|
||||
glob: '#f7f7f7'
|
||||
int: '#a16a94'
|
||||
list: '#b5e4f4'
|
||||
nothing: '#db2d20'
|
||||
range: '#fded02'
|
||||
record: '#b5e4f4'
|
||||
string: '#01a252'
|
||||
|
||||
bool: {|| if $in { '#cdab53' } else { '#fded02' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#db2d20' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#db2d20'
|
||||
} else if $in < 1day {
|
||||
'#fded02'
|
||||
} else if $in < 3day {
|
||||
'#01a252'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#01a252' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#b5e4f4'
|
||||
} else if $in < 52wk {
|
||||
'#01a0e4'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a5a2a2'
|
||||
} else if $e < 1mb {
|
||||
'#b5e4f4'
|
||||
} else {{ fg: '#01a0e4' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a16a94' attr: 'b' }
|
||||
shape_binary: { fg: '#a16a94' attr: 'b' }
|
||||
shape_block: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_bool: '#cdab53'
|
||||
shape_closure: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_custom: '#01a252'
|
||||
shape_datetime: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_directory: '#b5e4f4'
|
||||
shape_external: '#b5e4f4'
|
||||
shape_external_resolved: '#cdab53'
|
||||
shape_externalarg: { fg: '#01a252' attr: 'b' }
|
||||
shape_filepath: '#b5e4f4'
|
||||
shape_flag: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_float: { fg: '#e8bbd0' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_globpattern: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_int: { fg: '#a16a94' attr: 'b' }
|
||||
shape_internalcall: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_keyword: { fg: '#a16a94' attr: 'b' }
|
||||
shape_list: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_literal: '#01a0e4'
|
||||
shape_match_pattern: '#01a252'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#db2d20'
|
||||
shape_operator: '#fded02'
|
||||
shape_or: { fg: '#a16a94' attr: 'b' }
|
||||
shape_pipe: { fg: '#a16a94' attr: 'b' }
|
||||
shape_range: { fg: '#fded02' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f7f7f7' attr: 'b' }
|
||||
shape_record: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_redirection: { fg: '#a16a94' attr: 'b' }
|
||||
shape_signature: { fg: '#01a252' attr: 'b' }
|
||||
shape_string: '#01a252'
|
||||
shape_string_interpolation: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_table: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_vardecl: { fg: '#01a0e4' attr: 'u' }
|
||||
shape_variable: '#a16a94'
|
||||
|
||||
foreground: '#a5a2a2'
|
||||
background: '#090300'
|
||||
cursor: '#a5a2a2'
|
||||
|
||||
empty: '#01a0e4'
|
||||
header: { fg: '#01a252' attr: 'b' }
|
||||
hints: '#5c5855'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#01a252' attr: 'b' }
|
||||
search_result: { fg: '#db2d20' bg: '#a5a2a2' }
|
||||
separator: '#a5a2a2'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a16a94'
|
||||
block: '#01a0e4'
|
||||
cell-path: '#a5a2a2'
|
||||
closure: '#b5e4f4'
|
||||
custom: '#f7f7f7'
|
||||
duration: '#fded02'
|
||||
float: '#db2d20'
|
||||
glob: '#f7f7f7'
|
||||
int: '#a16a94'
|
||||
list: '#b5e4f4'
|
||||
nothing: '#db2d20'
|
||||
range: '#fded02'
|
||||
record: '#b5e4f4'
|
||||
string: '#01a252'
|
||||
|
||||
bool: {|| if $in { '#b5e4f4' } else { '#fded02' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#db2d20' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#db2d20'
|
||||
} else if $in < 1day {
|
||||
'#fded02'
|
||||
} else if $in < 3day {
|
||||
'#01a252'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#01a252' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#b5e4f4'
|
||||
} else if $in < 52wk {
|
||||
'#01a0e4'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a5a2a2'
|
||||
} else if $e < 1mb {
|
||||
'#b5e4f4'
|
||||
} else {{ fg: '#01a0e4' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a16a94' attr: 'b' }
|
||||
shape_binary: { fg: '#a16a94' attr: 'b' }
|
||||
shape_block: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_bool: '#b5e4f4'
|
||||
shape_closure: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_custom: '#01a252'
|
||||
shape_datetime: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_directory: '#b5e4f4'
|
||||
shape_external: '#b5e4f4'
|
||||
shape_external_resolved: '#b5e4f4'
|
||||
shape_externalarg: { fg: '#01a252' attr: 'b' }
|
||||
shape_filepath: '#b5e4f4'
|
||||
shape_flag: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_float: { fg: '#db2d20' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_globpattern: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_int: { fg: '#a16a94' attr: 'b' }
|
||||
shape_internalcall: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_keyword: { fg: '#a16a94' attr: 'b' }
|
||||
shape_list: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_literal: '#01a0e4'
|
||||
shape_match_pattern: '#01a252'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#db2d20'
|
||||
shape_operator: '#fded02'
|
||||
shape_or: { fg: '#a16a94' attr: 'b' }
|
||||
shape_pipe: { fg: '#a16a94' attr: 'b' }
|
||||
shape_range: { fg: '#fded02' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f7f7f7' attr: 'b' }
|
||||
shape_record: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_redirection: { fg: '#a16a94' attr: 'b' }
|
||||
shape_signature: { fg: '#01a252' attr: 'b' }
|
||||
shape_string: '#01a252'
|
||||
shape_string_interpolation: { fg: '#b5e4f4' attr: 'b' }
|
||||
shape_table: { fg: '#01a0e4' attr: 'b' }
|
||||
shape_vardecl: { fg: '#01a0e4' attr: 'u' }
|
||||
shape_variable: '#a16a94'
|
||||
|
||||
foreground: '#a5a2a2'
|
||||
background: '#090300'
|
||||
cursor: '#a5a2a2'
|
||||
|
||||
empty: '#01a0e4'
|
||||
header: { fg: '#01a252' attr: 'b' }
|
||||
hints: '#5c5855'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#01a252' attr: 'b' }
|
||||
search_result: { fg: '#db2d20' bg: '#a5a2a2' }
|
||||
separator: '#a5a2a2'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#4595bd'
|
||||
block: '#277bb1'
|
||||
cell-path: '#a0cce2'
|
||||
closure: '#2592d3'
|
||||
custom: '#a0cce2'
|
||||
duration: '#1f6ca1'
|
||||
float: '#48697e'
|
||||
glob: '#a0cce2'
|
||||
int: '#4595bd'
|
||||
list: '#2592d3'
|
||||
nothing: '#48697e'
|
||||
range: '#1f6ca1'
|
||||
record: '#2592d3'
|
||||
string: '#10598b'
|
||||
|
||||
bool: {|| if $in { '#2592d3' } else { '#1f6ca1' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#48697e' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#48697e'
|
||||
} else if $in < 1day {
|
||||
'#1f6ca1'
|
||||
} else if $in < 3day {
|
||||
'#10598b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#10598b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#2592d3'
|
||||
} else if $in < 52wk {
|
||||
'#277bb1'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a0cce2'
|
||||
} else if $e < 1mb {
|
||||
'#2592d3'
|
||||
} else {{ fg: '#277bb1' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#4595bd' attr: 'b' }
|
||||
shape_binary: { fg: '#4595bd' attr: 'b' }
|
||||
shape_block: { fg: '#277bb1' attr: 'b' }
|
||||
shape_bool: '#2592d3'
|
||||
shape_closure: { fg: '#2592d3' attr: 'b' }
|
||||
shape_custom: '#10598b'
|
||||
shape_datetime: { fg: '#2592d3' attr: 'b' }
|
||||
shape_directory: '#2592d3'
|
||||
shape_external: '#2592d3'
|
||||
shape_external_resolved: '#2592d3'
|
||||
shape_externalarg: { fg: '#10598b' attr: 'b' }
|
||||
shape_filepath: '#2592d3'
|
||||
shape_flag: { fg: '#277bb1' attr: 'b' }
|
||||
shape_float: { fg: '#48697e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#2592d3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#2592d3' attr: 'b' }
|
||||
shape_int: { fg: '#4595bd' attr: 'b' }
|
||||
shape_internalcall: { fg: '#2592d3' attr: 'b' }
|
||||
shape_keyword: { fg: '#4595bd' attr: 'b' }
|
||||
shape_list: { fg: '#2592d3' attr: 'b' }
|
||||
shape_literal: '#277bb1'
|
||||
shape_match_pattern: '#10598b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#48697e'
|
||||
shape_operator: '#1f6ca1'
|
||||
shape_or: { fg: '#4595bd' attr: 'b' }
|
||||
shape_pipe: { fg: '#4595bd' attr: 'b' }
|
||||
shape_range: { fg: '#1f6ca1' attr: 'b' }
|
||||
shape_raw_string: { fg: '#a0cce2' attr: 'b' }
|
||||
shape_record: { fg: '#2592d3' attr: 'b' }
|
||||
shape_redirection: { fg: '#4595bd' attr: 'b' }
|
||||
shape_signature: { fg: '#10598b' attr: 'b' }
|
||||
shape_string: '#10598b'
|
||||
shape_string_interpolation: { fg: '#2592d3' attr: 'b' }
|
||||
shape_table: { fg: '#277bb1' attr: 'b' }
|
||||
shape_vardecl: { fg: '#277bb1' attr: 'u' }
|
||||
shape_variable: '#4595bd'
|
||||
|
||||
foreground: '#c0c7ca'
|
||||
background: '#040f18'
|
||||
cursor: '#10598b'
|
||||
|
||||
empty: '#277bb1'
|
||||
header: { fg: '#10598b' attr: 'b' }
|
||||
hints: '#708e9e'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#10598b' attr: 'b' }
|
||||
search_result: { fg: '#48697e' bg: '#a0cce2' }
|
||||
separator: '#a0cce2'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8308ff'
|
||||
block: '#0883ff'
|
||||
cell-path: '#b6b6b6'
|
||||
closure: '#08ff83'
|
||||
custom: '#c2c2c2'
|
||||
duration: '#ff8308'
|
||||
float: '#ff1e8e'
|
||||
glob: '#c2c2c2'
|
||||
int: '#8308ff'
|
||||
list: '#08ff83'
|
||||
nothing: '#ff0883'
|
||||
range: '#ff8308'
|
||||
record: '#08ff83'
|
||||
string: '#83ff08'
|
||||
|
||||
bool: {|| if $in { '#1eff8e' } else { '#ff8308' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff0883' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff0883'
|
||||
} else if $in < 1day {
|
||||
'#ff8308'
|
||||
} else if $in < 3day {
|
||||
'#83ff08'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#83ff08' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#08ff83'
|
||||
} else if $in < 52wk {
|
||||
'#0883ff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#b6b6b6'
|
||||
} else if $e < 1mb {
|
||||
'#08ff83'
|
||||
} else {{ fg: '#0883ff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8308ff' attr: 'b' }
|
||||
shape_binary: { fg: '#8308ff' attr: 'b' }
|
||||
shape_block: { fg: '#0883ff' attr: 'b' }
|
||||
shape_bool: '#1eff8e'
|
||||
shape_closure: { fg: '#08ff83' attr: 'b' }
|
||||
shape_custom: '#83ff08'
|
||||
shape_datetime: { fg: '#08ff83' attr: 'b' }
|
||||
shape_directory: '#08ff83'
|
||||
shape_external: '#08ff83'
|
||||
shape_external_resolved: '#1eff8e'
|
||||
shape_externalarg: { fg: '#83ff08' attr: 'b' }
|
||||
shape_filepath: '#08ff83'
|
||||
shape_flag: { fg: '#0883ff' attr: 'b' }
|
||||
shape_float: { fg: '#ff1e8e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#08ff83' attr: 'b' }
|
||||
shape_globpattern: { fg: '#08ff83' attr: 'b' }
|
||||
shape_int: { fg: '#8308ff' attr: 'b' }
|
||||
shape_internalcall: { fg: '#08ff83' attr: 'b' }
|
||||
shape_keyword: { fg: '#8308ff' attr: 'b' }
|
||||
shape_list: { fg: '#08ff83' attr: 'b' }
|
||||
shape_literal: '#0883ff'
|
||||
shape_match_pattern: '#83ff08'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff0883'
|
||||
shape_operator: '#ff8308'
|
||||
shape_or: { fg: '#8308ff' attr: 'b' }
|
||||
shape_pipe: { fg: '#8308ff' attr: 'b' }
|
||||
shape_range: { fg: '#ff8308' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c2c2c2' attr: 'b' }
|
||||
shape_record: { fg: '#08ff83' attr: 'b' }
|
||||
shape_redirection: { fg: '#8308ff' attr: 'b' }
|
||||
shape_signature: { fg: '#83ff08' attr: 'b' }
|
||||
shape_string: '#83ff08'
|
||||
shape_string_interpolation: { fg: '#08ff83' attr: 'b' }
|
||||
shape_table: { fg: '#0883ff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#0883ff' attr: 'u' }
|
||||
shape_variable: '#8308ff'
|
||||
|
||||
foreground: '#b4e1fd'
|
||||
background: '#0d1926'
|
||||
cursor: '#b4e1fd'
|
||||
|
||||
empty: '#0883ff'
|
||||
header: { fg: '#83ff08' attr: 'b' }
|
||||
hints: '#424242'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#83ff08' attr: 'b' }
|
||||
search_result: { fg: '#ff0883' bg: '#b6b6b6' }
|
||||
separator: '#b6b6b6'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8308ff'
|
||||
block: '#0883ff'
|
||||
cell-path: '#bebebe'
|
||||
closure: '#08ff83'
|
||||
custom: '#c4c4c4'
|
||||
duration: '#ff8308'
|
||||
float: '#ff1e8e'
|
||||
glob: '#c4c4c4'
|
||||
int: '#8308ff'
|
||||
list: '#08ff83'
|
||||
nothing: '#ff0883'
|
||||
range: '#ff8308'
|
||||
record: '#08ff83'
|
||||
string: '#83ff08'
|
||||
|
||||
bool: {|| if $in { '#1eff8e' } else { '#ff8308' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff0883' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff0883'
|
||||
} else if $in < 1day {
|
||||
'#ff8308'
|
||||
} else if $in < 3day {
|
||||
'#83ff08'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#83ff08' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#08ff83'
|
||||
} else if $in < 52wk {
|
||||
'#0883ff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bebebe'
|
||||
} else if $e < 1mb {
|
||||
'#08ff83'
|
||||
} else {{ fg: '#0883ff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8308ff' attr: 'b' }
|
||||
shape_binary: { fg: '#8308ff' attr: 'b' }
|
||||
shape_block: { fg: '#0883ff' attr: 'b' }
|
||||
shape_bool: '#1eff8e'
|
||||
shape_closure: { fg: '#08ff83' attr: 'b' }
|
||||
shape_custom: '#83ff08'
|
||||
shape_datetime: { fg: '#08ff83' attr: 'b' }
|
||||
shape_directory: '#08ff83'
|
||||
shape_external: '#08ff83'
|
||||
shape_external_resolved: '#1eff8e'
|
||||
shape_externalarg: { fg: '#83ff08' attr: 'b' }
|
||||
shape_filepath: '#08ff83'
|
||||
shape_flag: { fg: '#0883ff' attr: 'b' }
|
||||
shape_float: { fg: '#ff1e8e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#08ff83' attr: 'b' }
|
||||
shape_globpattern: { fg: '#08ff83' attr: 'b' }
|
||||
shape_int: { fg: '#8308ff' attr: 'b' }
|
||||
shape_internalcall: { fg: '#08ff83' attr: 'b' }
|
||||
shape_keyword: { fg: '#8308ff' attr: 'b' }
|
||||
shape_list: { fg: '#08ff83' attr: 'b' }
|
||||
shape_literal: '#0883ff'
|
||||
shape_match_pattern: '#83ff08'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff0883'
|
||||
shape_operator: '#ff8308'
|
||||
shape_or: { fg: '#8308ff' attr: 'b' }
|
||||
shape_pipe: { fg: '#8308ff' attr: 'b' }
|
||||
shape_range: { fg: '#ff8308' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c4c4c4' attr: 'b' }
|
||||
shape_record: { fg: '#08ff83' attr: 'b' }
|
||||
shape_redirection: { fg: '#8308ff' attr: 'b' }
|
||||
shape_signature: { fg: '#83ff08' attr: 'b' }
|
||||
shape_string: '#83ff08'
|
||||
shape_string_interpolation: { fg: '#08ff83' attr: 'b' }
|
||||
shape_table: { fg: '#0883ff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#0883ff' attr: 'u' }
|
||||
shape_variable: '#8308ff'
|
||||
|
||||
foreground: '#b4e1fd'
|
||||
background: '#1f1305'
|
||||
cursor: '#b4e1fd'
|
||||
|
||||
empty: '#0883ff'
|
||||
header: { fg: '#83ff08' attr: 'b' }
|
||||
hints: '#474747'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#83ff08' attr: 'b' }
|
||||
search_result: { fg: '#ff0883' bg: '#bebebe' }
|
||||
separator: '#bebebe'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#665993'
|
||||
block: '#0f4ac6'
|
||||
cell-path: '#f8dcc0'
|
||||
closure: '#70a598'
|
||||
custom: '#f6f5fb'
|
||||
duration: '#e7741e'
|
||||
float: '#fc5f5a'
|
||||
glob: '#f6f5fb'
|
||||
int: '#665993'
|
||||
list: '#70a598'
|
||||
nothing: '#bd0013'
|
||||
range: '#e7741e'
|
||||
record: '#70a598'
|
||||
string: '#4ab118'
|
||||
|
||||
bool: {|| if $in { '#c8faf4' } else { '#e7741e' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#bd0013' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#bd0013'
|
||||
} else if $in < 1day {
|
||||
'#e7741e'
|
||||
} else if $in < 3day {
|
||||
'#4ab118'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#4ab118' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#70a598'
|
||||
} else if $in < 52wk {
|
||||
'#0f4ac6'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#f8dcc0'
|
||||
} else if $e < 1mb {
|
||||
'#70a598'
|
||||
} else {{ fg: '#0f4ac6' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#665993' attr: 'b' }
|
||||
shape_binary: { fg: '#665993' attr: 'b' }
|
||||
shape_block: { fg: '#0f4ac6' attr: 'b' }
|
||||
shape_bool: '#c8faf4'
|
||||
shape_closure: { fg: '#70a598' attr: 'b' }
|
||||
shape_custom: '#4ab118'
|
||||
shape_datetime: { fg: '#70a598' attr: 'b' }
|
||||
shape_directory: '#70a598'
|
||||
shape_external: '#70a598'
|
||||
shape_external_resolved: '#c8faf4'
|
||||
shape_externalarg: { fg: '#4ab118' attr: 'b' }
|
||||
shape_filepath: '#70a598'
|
||||
shape_flag: { fg: '#0f4ac6' attr: 'b' }
|
||||
shape_float: { fg: '#fc5f5a' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#70a598' attr: 'b' }
|
||||
shape_globpattern: { fg: '#70a598' attr: 'b' }
|
||||
shape_int: { fg: '#665993' attr: 'b' }
|
||||
shape_internalcall: { fg: '#70a598' attr: 'b' }
|
||||
shape_keyword: { fg: '#665993' attr: 'b' }
|
||||
shape_list: { fg: '#70a598' attr: 'b' }
|
||||
shape_literal: '#0f4ac6'
|
||||
shape_match_pattern: '#4ab118'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#bd0013'
|
||||
shape_operator: '#e7741e'
|
||||
shape_or: { fg: '#665993' attr: 'b' }
|
||||
shape_pipe: { fg: '#665993' attr: 'b' }
|
||||
shape_range: { fg: '#e7741e' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f6f5fb' attr: 'b' }
|
||||
shape_record: { fg: '#70a598' attr: 'b' }
|
||||
shape_redirection: { fg: '#665993' attr: 'b' }
|
||||
shape_signature: { fg: '#4ab118' attr: 'b' }
|
||||
shape_string: '#4ab118'
|
||||
shape_string_interpolation: { fg: '#70a598' attr: 'b' }
|
||||
shape_table: { fg: '#0f4ac6' attr: 'b' }
|
||||
shape_vardecl: { fg: '#0f4ac6' attr: 'u' }
|
||||
shape_variable: '#665993'
|
||||
|
||||
foreground: '#f8dcc0'
|
||||
background: '#1f1d45'
|
||||
cursor: '#f8dcc0'
|
||||
|
||||
empty: '#0f4ac6'
|
||||
header: { fg: '#4ab118' attr: 'b' }
|
||||
hints: '#4e7cbf'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#4ab118' attr: 'b' }
|
||||
search_result: { fg: '#bd0013' bg: '#f8dcc0' }
|
||||
separator: '#f8dcc0'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#9f4e85'
|
||||
block: '#6c99bb'
|
||||
cell-path: '#d0d0d0'
|
||||
closure: '#7dd6cf'
|
||||
custom: '#f5f5f5'
|
||||
duration: '#d3a04d'
|
||||
float: '#a53c23'
|
||||
glob: '#f5f5f5'
|
||||
int: '#9f4e85'
|
||||
list: '#7dd6cf'
|
||||
nothing: '#a53c23'
|
||||
range: '#d3a04d'
|
||||
record: '#7dd6cf'
|
||||
string: '#7b9246'
|
||||
|
||||
bool: {|| if $in { '#7dd6cf' } else { '#d3a04d' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#a53c23' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#a53c23'
|
||||
} else if $in < 1day {
|
||||
'#d3a04d'
|
||||
} else if $in < 3day {
|
||||
'#7b9246'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7b9246' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#7dd6cf'
|
||||
} else if $in < 52wk {
|
||||
'#6c99bb'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#d0d0d0'
|
||||
} else if $e < 1mb {
|
||||
'#7dd6cf'
|
||||
} else {{ fg: '#6c99bb' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_binary: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_block: { fg: '#6c99bb' attr: 'b' }
|
||||
shape_bool: '#7dd6cf'
|
||||
shape_closure: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_custom: '#7b9246'
|
||||
shape_datetime: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_directory: '#7dd6cf'
|
||||
shape_external: '#7dd6cf'
|
||||
shape_external_resolved: '#7dd6cf'
|
||||
shape_externalarg: { fg: '#7b9246' attr: 'b' }
|
||||
shape_filepath: '#7dd6cf'
|
||||
shape_flag: { fg: '#6c99bb' attr: 'b' }
|
||||
shape_float: { fg: '#a53c23' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_globpattern: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_int: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_internalcall: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_keyword: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_list: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_literal: '#6c99bb'
|
||||
shape_match_pattern: '#7b9246'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#a53c23'
|
||||
shape_operator: '#d3a04d'
|
||||
shape_or: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_pipe: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_range: { fg: '#d3a04d' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f5f5f5' attr: 'b' }
|
||||
shape_record: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_redirection: { fg: '#9f4e85' attr: 'b' }
|
||||
shape_signature: { fg: '#7b9246' attr: 'b' }
|
||||
shape_string: '#7b9246'
|
||||
shape_string_interpolation: { fg: '#7dd6cf' attr: 'b' }
|
||||
shape_table: { fg: '#6c99bb' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6c99bb' attr: 'u' }
|
||||
shape_variable: '#9f4e85'
|
||||
|
||||
foreground: '#d0d0d0'
|
||||
background: '#222222'
|
||||
cursor: '#d0d0d0'
|
||||
|
||||
empty: '#6c99bb'
|
||||
header: { fg: '#7b9246' attr: 'b' }
|
||||
hints: '#505050'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7b9246' attr: 'b' }
|
||||
search_result: { fg: '#a53c23' bg: '#d0d0d0' }
|
||||
separator: '#d0d0d0'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#47587f'
|
||||
block: '#2f6a7f'
|
||||
cell-path: '#647d75'
|
||||
closure: '#327f77'
|
||||
custom: '#73fa91'
|
||||
duration: '#717f24'
|
||||
float: '#e08009'
|
||||
glob: '#73fa91'
|
||||
int: '#47587f'
|
||||
list: '#327f77'
|
||||
nothing: '#7f2b27'
|
||||
range: '#717f24'
|
||||
record: '#327f77'
|
||||
string: '#2f7e25'
|
||||
|
||||
bool: {|| if $in { '#00e0c4' } else { '#717f24' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#7f2b27' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#7f2b27'
|
||||
} else if $in < 1day {
|
||||
'#717f24'
|
||||
} else if $in < 3day {
|
||||
'#2f7e25'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#2f7e25' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#327f77'
|
||||
} else if $in < 52wk {
|
||||
'#2f6a7f'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#647d75'
|
||||
} else if $e < 1mb {
|
||||
'#327f77'
|
||||
} else {{ fg: '#2f6a7f' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#47587f' attr: 'b' }
|
||||
shape_binary: { fg: '#47587f' attr: 'b' }
|
||||
shape_block: { fg: '#2f6a7f' attr: 'b' }
|
||||
shape_bool: '#00e0c4'
|
||||
shape_closure: { fg: '#327f77' attr: 'b' }
|
||||
shape_custom: '#2f7e25'
|
||||
shape_datetime: { fg: '#327f77' attr: 'b' }
|
||||
shape_directory: '#327f77'
|
||||
shape_external: '#327f77'
|
||||
shape_external_resolved: '#00e0c4'
|
||||
shape_externalarg: { fg: '#2f7e25' attr: 'b' }
|
||||
shape_filepath: '#327f77'
|
||||
shape_flag: { fg: '#2f6a7f' attr: 'b' }
|
||||
shape_float: { fg: '#e08009' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#327f77' attr: 'b' }
|
||||
shape_globpattern: { fg: '#327f77' attr: 'b' }
|
||||
shape_int: { fg: '#47587f' attr: 'b' }
|
||||
shape_internalcall: { fg: '#327f77' attr: 'b' }
|
||||
shape_keyword: { fg: '#47587f' attr: 'b' }
|
||||
shape_list: { fg: '#327f77' attr: 'b' }
|
||||
shape_literal: '#2f6a7f'
|
||||
shape_match_pattern: '#2f7e25'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#7f2b27'
|
||||
shape_operator: '#717f24'
|
||||
shape_or: { fg: '#47587f' attr: 'b' }
|
||||
shape_pipe: { fg: '#47587f' attr: 'b' }
|
||||
shape_range: { fg: '#717f24' attr: 'b' }
|
||||
shape_raw_string: { fg: '#73fa91' attr: 'b' }
|
||||
shape_record: { fg: '#327f77' attr: 'b' }
|
||||
shape_redirection: { fg: '#47587f' attr: 'b' }
|
||||
shape_signature: { fg: '#2f7e25' attr: 'b' }
|
||||
shape_string: '#2f7e25'
|
||||
shape_string_interpolation: { fg: '#327f77' attr: 'b' }
|
||||
shape_table: { fg: '#2f6a7f' attr: 'b' }
|
||||
shape_vardecl: { fg: '#2f6a7f' attr: 'u' }
|
||||
shape_variable: '#47587f'
|
||||
|
||||
foreground: '#637d75'
|
||||
background: '#0f1610'
|
||||
cursor: '#637d75'
|
||||
|
||||
empty: '#2f6a7f'
|
||||
header: { fg: '#2f7e25' attr: 'b' }
|
||||
hints: '#3c4812'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#2f7e25' attr: 'b' }
|
||||
search_result: { fg: '#7f2b27' bg: '#647d75' }
|
||||
separator: '#647d75'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#1b3cff'
|
||||
block: '#3282ff'
|
||||
cell-path: '#bbbbbb'
|
||||
closure: '#0037fc'
|
||||
custom: '#ffffff'
|
||||
duration: '#7f0a1f'
|
||||
float: '#ff5454'
|
||||
glob: '#ffffff'
|
||||
int: '#1b3cff'
|
||||
list: '#0037fc'
|
||||
nothing: '#ff5555'
|
||||
range: '#7f0a1f'
|
||||
record: '#0037fc'
|
||||
string: '#fa0074'
|
||||
|
||||
bool: {|| if $in { '#8ae9fc' } else { '#7f0a1f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff5555' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff5555'
|
||||
} else if $in < 1day {
|
||||
'#7f0a1f'
|
||||
} else if $in < 3day {
|
||||
'#fa0074'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#fa0074' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#0037fc'
|
||||
} else if $in < 52wk {
|
||||
'#3282ff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bbbbbb'
|
||||
} else if $e < 1mb {
|
||||
'#0037fc'
|
||||
} else {{ fg: '#3282ff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_binary: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_block: { fg: '#3282ff' attr: 'b' }
|
||||
shape_bool: '#8ae9fc'
|
||||
shape_closure: { fg: '#0037fc' attr: 'b' }
|
||||
shape_custom: '#fa0074'
|
||||
shape_datetime: { fg: '#0037fc' attr: 'b' }
|
||||
shape_directory: '#0037fc'
|
||||
shape_external: '#0037fc'
|
||||
shape_external_resolved: '#8ae9fc'
|
||||
shape_externalarg: { fg: '#fa0074' attr: 'b' }
|
||||
shape_filepath: '#0037fc'
|
||||
shape_flag: { fg: '#3282ff' attr: 'b' }
|
||||
shape_float: { fg: '#ff5454' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#0037fc' attr: 'b' }
|
||||
shape_globpattern: { fg: '#0037fc' attr: 'b' }
|
||||
shape_int: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_internalcall: { fg: '#0037fc' attr: 'b' }
|
||||
shape_keyword: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_list: { fg: '#0037fc' attr: 'b' }
|
||||
shape_literal: '#3282ff'
|
||||
shape_match_pattern: '#fa0074'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff5555'
|
||||
shape_operator: '#7f0a1f'
|
||||
shape_or: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_pipe: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_range: { fg: '#7f0a1f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#0037fc' attr: 'b' }
|
||||
shape_redirection: { fg: '#1b3cff' attr: 'b' }
|
||||
shape_signature: { fg: '#fa0074' attr: 'b' }
|
||||
shape_string: '#fa0074'
|
||||
shape_string_interpolation: { fg: '#0037fc' attr: 'b' }
|
||||
shape_table: { fg: '#3282ff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3282ff' attr: 'u' }
|
||||
shape_variable: '#1b3cff'
|
||||
|
||||
foreground: '#cef3ff'
|
||||
background: '#222330'
|
||||
cursor: '#ffffff'
|
||||
|
||||
empty: '#3282ff'
|
||||
header: { fg: '#fa0074' attr: 'b' }
|
||||
hints: '#545454'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#fa0074' attr: 'b' }
|
||||
search_result: { fg: '#ff5555' bg: '#bbbbbb' }
|
||||
separator: '#bbbbbb'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#e68ac1'
|
||||
block: '#9985d1'
|
||||
cell-path: '#dedbeb'
|
||||
closure: '#aabae7'
|
||||
custom: '#edebf7'
|
||||
duration: '#eacac0'
|
||||
float: '#fb5c8e'
|
||||
glob: '#edebf7'
|
||||
int: '#e68ac1'
|
||||
list: '#aabae7'
|
||||
nothing: '#ed3f7f'
|
||||
range: '#eacac0'
|
||||
record: '#aabae7'
|
||||
string: '#a2baa8'
|
||||
|
||||
bool: {|| if $in { '#c4d1f5' } else { '#eacac0' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ed3f7f' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ed3f7f'
|
||||
} else if $in < 1day {
|
||||
'#eacac0'
|
||||
} else if $in < 3day {
|
||||
'#a2baa8'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a2baa8' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aabae7'
|
||||
} else if $in < 52wk {
|
||||
'#9985d1'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#dedbeb'
|
||||
} else if $e < 1mb {
|
||||
'#aabae7'
|
||||
} else {{ fg: '#9985d1' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_binary: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_block: { fg: '#9985d1' attr: 'b' }
|
||||
shape_bool: '#c4d1f5'
|
||||
shape_closure: { fg: '#aabae7' attr: 'b' }
|
||||
shape_custom: '#a2baa8'
|
||||
shape_datetime: { fg: '#aabae7' attr: 'b' }
|
||||
shape_directory: '#aabae7'
|
||||
shape_external: '#aabae7'
|
||||
shape_external_resolved: '#c4d1f5'
|
||||
shape_externalarg: { fg: '#a2baa8' attr: 'b' }
|
||||
shape_filepath: '#aabae7'
|
||||
shape_flag: { fg: '#9985d1' attr: 'b' }
|
||||
shape_float: { fg: '#fb5c8e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aabae7' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aabae7' attr: 'b' }
|
||||
shape_int: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aabae7' attr: 'b' }
|
||||
shape_keyword: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_list: { fg: '#aabae7' attr: 'b' }
|
||||
shape_literal: '#9985d1'
|
||||
shape_match_pattern: '#a2baa8'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ed3f7f'
|
||||
shape_operator: '#eacac0'
|
||||
shape_or: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_pipe: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_range: { fg: '#eacac0' attr: 'b' }
|
||||
shape_raw_string: { fg: '#edebf7' attr: 'b' }
|
||||
shape_record: { fg: '#aabae7' attr: 'b' }
|
||||
shape_redirection: { fg: '#e68ac1' attr: 'b' }
|
||||
shape_signature: { fg: '#a2baa8' attr: 'b' }
|
||||
shape_string: '#a2baa8'
|
||||
shape_string_interpolation: { fg: '#aabae7' attr: 'b' }
|
||||
shape_table: { fg: '#9985d1' attr: 'b' }
|
||||
shape_vardecl: { fg: '#9985d1' attr: 'u' }
|
||||
shape_variable: '#e68ac1'
|
||||
|
||||
foreground: '#dedbeb'
|
||||
background: '#2a2331'
|
||||
cursor: '#dedbeb'
|
||||
|
||||
empty: '#9985d1'
|
||||
header: { fg: '#a2baa8' attr: 'b' }
|
||||
hints: '#302838'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a2baa8' attr: 'b' }
|
||||
search_result: { fg: '#ed3f7f' bg: '#dedbeb' }
|
||||
separator: '#dedbeb'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#4c963e'
|
||||
block: '#96883e'
|
||||
cell-path: '#81b5ac'
|
||||
closure: '#963e4c'
|
||||
custom: '#d2e7e4'
|
||||
duration: '#3e4c96'
|
||||
float: '#3e9688'
|
||||
glob: '#d2e7e4'
|
||||
int: '#4c963e'
|
||||
list: '#963e4c'
|
||||
nothing: '#3e9688'
|
||||
range: '#3e4c96'
|
||||
record: '#963e4c'
|
||||
string: '#883e96'
|
||||
|
||||
bool: {|| if $in { '#963e4c' } else { '#3e4c96' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#3e9688' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#3e9688'
|
||||
} else if $in < 1day {
|
||||
'#3e4c96'
|
||||
} else if $in < 3day {
|
||||
'#883e96'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#883e96' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#963e4c'
|
||||
} else if $in < 52wk {
|
||||
'#96883e'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#81b5ac'
|
||||
} else if $e < 1mb {
|
||||
'#963e4c'
|
||||
} else {{ fg: '#96883e' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#4c963e' attr: 'b' }
|
||||
shape_binary: { fg: '#4c963e' attr: 'b' }
|
||||
shape_block: { fg: '#96883e' attr: 'b' }
|
||||
shape_bool: '#963e4c'
|
||||
shape_closure: { fg: '#963e4c' attr: 'b' }
|
||||
shape_custom: '#883e96'
|
||||
shape_datetime: { fg: '#963e4c' attr: 'b' }
|
||||
shape_directory: '#963e4c'
|
||||
shape_external: '#963e4c'
|
||||
shape_external_resolved: '#963e4c'
|
||||
shape_externalarg: { fg: '#883e96' attr: 'b' }
|
||||
shape_filepath: '#963e4c'
|
||||
shape_flag: { fg: '#96883e' attr: 'b' }
|
||||
shape_float: { fg: '#3e9688' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#963e4c' attr: 'b' }
|
||||
shape_globpattern: { fg: '#963e4c' attr: 'b' }
|
||||
shape_int: { fg: '#4c963e' attr: 'b' }
|
||||
shape_internalcall: { fg: '#963e4c' attr: 'b' }
|
||||
shape_keyword: { fg: '#4c963e' attr: 'b' }
|
||||
shape_list: { fg: '#963e4c' attr: 'b' }
|
||||
shape_literal: '#96883e'
|
||||
shape_match_pattern: '#883e96'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#3e9688'
|
||||
shape_operator: '#3e4c96'
|
||||
shape_or: { fg: '#4c963e' attr: 'b' }
|
||||
shape_pipe: { fg: '#4c963e' attr: 'b' }
|
||||
shape_range: { fg: '#3e4c96' attr: 'b' }
|
||||
shape_raw_string: { fg: '#d2e7e4' attr: 'b' }
|
||||
shape_record: { fg: '#963e4c' attr: 'b' }
|
||||
shape_redirection: { fg: '#4c963e' attr: 'b' }
|
||||
shape_signature: { fg: '#883e96' attr: 'b' }
|
||||
shape_string: '#883e96'
|
||||
shape_string_interpolation: { fg: '#963e4c' attr: 'b' }
|
||||
shape_table: { fg: '#96883e' attr: 'b' }
|
||||
shape_vardecl: { fg: '#96883e' attr: 'u' }
|
||||
shape_variable: '#4c963e'
|
||||
|
||||
foreground: '#81b5ac'
|
||||
background: '#031a16'
|
||||
cursor: '#81b5ac'
|
||||
|
||||
empty: '#96883e'
|
||||
header: { fg: '#883e96' attr: 'b' }
|
||||
hints: '#2b685e'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#883e96' attr: 'b' }
|
||||
search_result: { fg: '#3e9688' bg: '#81b5ac' }
|
||||
separator: '#81b5ac'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#87afd7'
|
||||
block: '#ffffaf'
|
||||
cell-path: '#bcbcbc'
|
||||
closure: '#5f875f'
|
||||
custom: '#ffffff'
|
||||
duration: '#5f8787'
|
||||
float: '#5f8787'
|
||||
glob: '#ffffff'
|
||||
int: '#87afd7'
|
||||
list: '#5f875f'
|
||||
nothing: '#5f8787'
|
||||
range: '#5f8787'
|
||||
record: '#5f875f'
|
||||
string: '#87af87'
|
||||
|
||||
bool: {|| if $in { '#5f875f' } else { '#5f8787' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#5f8787'
|
||||
} else if $in < 3day {
|
||||
'#87af87'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#87af87' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5f875f'
|
||||
} else if $in < 52wk {
|
||||
'#ffffaf'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bcbcbc'
|
||||
} else if $e < 1mb {
|
||||
'#5f875f'
|
||||
} else {{ fg: '#ffffaf' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#87afd7' attr: 'b' }
|
||||
shape_binary: { fg: '#87afd7' attr: 'b' }
|
||||
shape_block: { fg: '#ffffaf' attr: 'b' }
|
||||
shape_bool: '#5f875f'
|
||||
shape_closure: { fg: '#5f875f' attr: 'b' }
|
||||
shape_custom: '#87af87'
|
||||
shape_datetime: { fg: '#5f875f' attr: 'b' }
|
||||
shape_directory: '#5f875f'
|
||||
shape_external: '#5f875f'
|
||||
shape_external_resolved: '#5f875f'
|
||||
shape_externalarg: { fg: '#87af87' attr: 'b' }
|
||||
shape_filepath: '#5f875f'
|
||||
shape_flag: { fg: '#ffffaf' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5f875f' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5f875f' attr: 'b' }
|
||||
shape_int: { fg: '#87afd7' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5f875f' attr: 'b' }
|
||||
shape_keyword: { fg: '#87afd7' attr: 'b' }
|
||||
shape_list: { fg: '#5f875f' attr: 'b' }
|
||||
shape_literal: '#ffffaf'
|
||||
shape_match_pattern: '#87af87'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#5f8787'
|
||||
shape_or: { fg: '#87afd7' attr: 'b' }
|
||||
shape_pipe: { fg: '#87afd7' attr: 'b' }
|
||||
shape_range: { fg: '#5f8787' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#5f875f' attr: 'b' }
|
||||
shape_redirection: { fg: '#87afd7' attr: 'b' }
|
||||
shape_signature: { fg: '#87af87' attr: 'b' }
|
||||
shape_string: '#87af87'
|
||||
shape_string_interpolation: { fg: '#5f875f' attr: 'b' }
|
||||
shape_table: { fg: '#ffffaf' attr: 'b' }
|
||||
shape_vardecl: { fg: '#ffffaf' attr: 'u' }
|
||||
shape_variable: '#87afd7'
|
||||
|
||||
foreground: '#bcbcbc'
|
||||
background: '#262626'
|
||||
cursor: '#bcbcbc'
|
||||
|
||||
empty: '#ffffaf'
|
||||
header: { fg: '#87af87' attr: 'b' }
|
||||
hints: '#6c6c6c'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#87af87' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#bcbcbc' }
|
||||
separator: '#bcbcbc'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6d43a6'
|
||||
block: '#008df8'
|
||||
cell-path: '#ffffff'
|
||||
closure: '#00d8eb'
|
||||
custom: '#ffffff'
|
||||
duration: '#ffb900'
|
||||
float: '#ff2740'
|
||||
glob: '#ffffff'
|
||||
int: '#6d43a6'
|
||||
list: '#00d8eb'
|
||||
nothing: '#ff000f'
|
||||
range: '#ffb900'
|
||||
record: '#00d8eb'
|
||||
string: '#8ce10b'
|
||||
|
||||
bool: {|| if $in { '#67fff0' } else { '#ffb900' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff000f' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff000f'
|
||||
} else if $in < 1day {
|
||||
'#ffb900'
|
||||
} else if $in < 3day {
|
||||
'#8ce10b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#8ce10b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#00d8eb'
|
||||
} else if $in < 52wk {
|
||||
'#008df8'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ffffff'
|
||||
} else if $e < 1mb {
|
||||
'#00d8eb'
|
||||
} else {{ fg: '#008df8' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_binary: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_block: { fg: '#008df8' attr: 'b' }
|
||||
shape_bool: '#67fff0'
|
||||
shape_closure: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_custom: '#8ce10b'
|
||||
shape_datetime: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_directory: '#00d8eb'
|
||||
shape_external: '#00d8eb'
|
||||
shape_external_resolved: '#67fff0'
|
||||
shape_externalarg: { fg: '#8ce10b' attr: 'b' }
|
||||
shape_filepath: '#00d8eb'
|
||||
shape_flag: { fg: '#008df8' attr: 'b' }
|
||||
shape_float: { fg: '#ff2740' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_globpattern: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_int: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_internalcall: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_keyword: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_list: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_literal: '#008df8'
|
||||
shape_match_pattern: '#8ce10b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff000f'
|
||||
shape_operator: '#ffb900'
|
||||
shape_or: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_pipe: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_range: { fg: '#ffb900' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_redirection: { fg: '#6d43a6' attr: 'b' }
|
||||
shape_signature: { fg: '#8ce10b' attr: 'b' }
|
||||
shape_string: '#8ce10b'
|
||||
shape_string_interpolation: { fg: '#00d8eb' attr: 'b' }
|
||||
shape_table: { fg: '#008df8' attr: 'b' }
|
||||
shape_vardecl: { fg: '#008df8' attr: 'u' }
|
||||
shape_variable: '#6d43a6'
|
||||
|
||||
foreground: '#fffaf4'
|
||||
background: '#0e1019'
|
||||
cursor: '#fffaf4'
|
||||
|
||||
empty: '#008df8'
|
||||
header: { fg: '#8ce10b' attr: 'b' }
|
||||
hints: '#444444'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#8ce10b' attr: 'b' }
|
||||
search_result: { fg: '#ff000f' bg: '#ffffff' }
|
||||
separator: '#ffffff'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#deb887'
|
||||
block: '#6495ed'
|
||||
cell-path: '#bbaa99'
|
||||
closure: '#b0c4de'
|
||||
custom: '#ddccbb'
|
||||
duration: '#e8ae5b'
|
||||
float: '#cc5533'
|
||||
glob: '#ddccbb'
|
||||
int: '#deb887'
|
||||
list: '#b0c4de'
|
||||
nothing: '#cd5c5c'
|
||||
range: '#e8ae5b'
|
||||
record: '#b0c4de'
|
||||
string: '#86af80'
|
||||
|
||||
bool: {|| if $in { '#b0c4de' } else { '#e8ae5b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#cd5c5c' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#cd5c5c'
|
||||
} else if $in < 1day {
|
||||
'#e8ae5b'
|
||||
} else if $in < 3day {
|
||||
'#86af80'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#86af80' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#b0c4de'
|
||||
} else if $in < 52wk {
|
||||
'#6495ed'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bbaa99'
|
||||
} else if $e < 1mb {
|
||||
'#b0c4de'
|
||||
} else {{ fg: '#6495ed' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#deb887' attr: 'b' }
|
||||
shape_binary: { fg: '#deb887' attr: 'b' }
|
||||
shape_block: { fg: '#6495ed' attr: 'b' }
|
||||
shape_bool: '#b0c4de'
|
||||
shape_closure: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_custom: '#86af80'
|
||||
shape_datetime: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_directory: '#b0c4de'
|
||||
shape_external: '#b0c4de'
|
||||
shape_external_resolved: '#b0c4de'
|
||||
shape_externalarg: { fg: '#86af80' attr: 'b' }
|
||||
shape_filepath: '#b0c4de'
|
||||
shape_flag: { fg: '#6495ed' attr: 'b' }
|
||||
shape_float: { fg: '#cc5533' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_globpattern: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_int: { fg: '#deb887' attr: 'b' }
|
||||
shape_internalcall: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_keyword: { fg: '#deb887' attr: 'b' }
|
||||
shape_list: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_literal: '#6495ed'
|
||||
shape_match_pattern: '#86af80'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#cd5c5c'
|
||||
shape_operator: '#e8ae5b'
|
||||
shape_or: { fg: '#deb887' attr: 'b' }
|
||||
shape_pipe: { fg: '#deb887' attr: 'b' }
|
||||
shape_range: { fg: '#e8ae5b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ddccbb' attr: 'b' }
|
||||
shape_record: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_redirection: { fg: '#deb887' attr: 'b' }
|
||||
shape_signature: { fg: '#86af80' attr: 'b' }
|
||||
shape_string: '#86af80'
|
||||
shape_string_interpolation: { fg: '#b0c4de' attr: 'b' }
|
||||
shape_table: { fg: '#6495ed' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6495ed' attr: 'u' }
|
||||
shape_variable: '#deb887'
|
||||
|
||||
foreground: '#ddeedd'
|
||||
background: '#1c1c1c'
|
||||
cursor: '#ddeedd'
|
||||
|
||||
empty: '#6495ed'
|
||||
header: { fg: '#86af80' attr: 'b' }
|
||||
hints: '#554444'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#86af80' attr: 'b' }
|
||||
search_result: { fg: '#cd5c5c' bg: '#bbaa99' }
|
||||
separator: '#bbaa99'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#c795ae'
|
||||
block: '#ae95c7'
|
||||
cell-path: '#c7ccd1'
|
||||
closure: '#95aec7'
|
||||
custom: '#f3f4f5'
|
||||
duration: '#aec795'
|
||||
float: '#c7ae95'
|
||||
glob: '#f3f4f5'
|
||||
int: '#c795ae'
|
||||
list: '#95aec7'
|
||||
nothing: '#c7ae95'
|
||||
range: '#aec795'
|
||||
record: '#95aec7'
|
||||
string: '#95c7ae'
|
||||
|
||||
bool: {|| if $in { '#95aec7' } else { '#aec795' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#c7ae95' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#c7ae95'
|
||||
} else if $in < 1day {
|
||||
'#aec795'
|
||||
} else if $in < 3day {
|
||||
'#95c7ae'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#95c7ae' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#95aec7'
|
||||
} else if $in < 52wk {
|
||||
'#ae95c7'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c7ccd1'
|
||||
} else if $e < 1mb {
|
||||
'#95aec7'
|
||||
} else {{ fg: '#ae95c7' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#c795ae' attr: 'b' }
|
||||
shape_binary: { fg: '#c795ae' attr: 'b' }
|
||||
shape_block: { fg: '#ae95c7' attr: 'b' }
|
||||
shape_bool: '#95aec7'
|
||||
shape_closure: { fg: '#95aec7' attr: 'b' }
|
||||
shape_custom: '#95c7ae'
|
||||
shape_datetime: { fg: '#95aec7' attr: 'b' }
|
||||
shape_directory: '#95aec7'
|
||||
shape_external: '#95aec7'
|
||||
shape_external_resolved: '#95aec7'
|
||||
shape_externalarg: { fg: '#95c7ae' attr: 'b' }
|
||||
shape_filepath: '#95aec7'
|
||||
shape_flag: { fg: '#ae95c7' attr: 'b' }
|
||||
shape_float: { fg: '#c7ae95' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#95aec7' attr: 'b' }
|
||||
shape_globpattern: { fg: '#95aec7' attr: 'b' }
|
||||
shape_int: { fg: '#c795ae' attr: 'b' }
|
||||
shape_internalcall: { fg: '#95aec7' attr: 'b' }
|
||||
shape_keyword: { fg: '#c795ae' attr: 'b' }
|
||||
shape_list: { fg: '#95aec7' attr: 'b' }
|
||||
shape_literal: '#ae95c7'
|
||||
shape_match_pattern: '#95c7ae'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#c7ae95'
|
||||
shape_operator: '#aec795'
|
||||
shape_or: { fg: '#c795ae' attr: 'b' }
|
||||
shape_pipe: { fg: '#c795ae' attr: 'b' }
|
||||
shape_range: { fg: '#aec795' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f3f4f5' attr: 'b' }
|
||||
shape_record: { fg: '#95aec7' attr: 'b' }
|
||||
shape_redirection: { fg: '#c795ae' attr: 'b' }
|
||||
shape_signature: { fg: '#95c7ae' attr: 'b' }
|
||||
shape_string: '#95c7ae'
|
||||
shape_string_interpolation: { fg: '#95aec7' attr: 'b' }
|
||||
shape_table: { fg: '#ae95c7' attr: 'b' }
|
||||
shape_vardecl: { fg: '#ae95c7' attr: 'u' }
|
||||
shape_variable: '#c795ae'
|
||||
|
||||
foreground: '#c7ccd1'
|
||||
background: '#1c2023'
|
||||
cursor: '#c7ccd1'
|
||||
|
||||
empty: '#ae95c7'
|
||||
header: { fg: '#95c7ae' attr: 'b' }
|
||||
hints: '#747c84'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#95c7ae' attr: 'b' }
|
||||
search_result: { fg: '#c7ae95' bg: '#c7ccd1' }
|
||||
separator: '#c7ccd1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#955ae7'
|
||||
block: '#576ddb'
|
||||
cell-path: '#585260'
|
||||
closure: '#398bc6'
|
||||
custom: '#19171c'
|
||||
duration: '#a06e3b'
|
||||
float: '#be4678'
|
||||
glob: '#19171c'
|
||||
int: '#955ae7'
|
||||
list: '#398bc6'
|
||||
nothing: '#be4678'
|
||||
range: '#a06e3b'
|
||||
record: '#398bc6'
|
||||
string: '#2a9292'
|
||||
|
||||
bool: {|| if $in { '#398bc6' } else { '#a06e3b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#be4678' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#be4678'
|
||||
} else if $in < 1day {
|
||||
'#a06e3b'
|
||||
} else if $in < 3day {
|
||||
'#2a9292'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#2a9292' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#398bc6'
|
||||
} else if $in < 52wk {
|
||||
'#576ddb'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#585260'
|
||||
} else if $e < 1mb {
|
||||
'#398bc6'
|
||||
} else {{ fg: '#576ddb' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#955ae7' attr: 'b' }
|
||||
shape_binary: { fg: '#955ae7' attr: 'b' }
|
||||
shape_block: { fg: '#576ddb' attr: 'b' }
|
||||
shape_bool: '#398bc6'
|
||||
shape_closure: { fg: '#398bc6' attr: 'b' }
|
||||
shape_custom: '#2a9292'
|
||||
shape_datetime: { fg: '#398bc6' attr: 'b' }
|
||||
shape_directory: '#398bc6'
|
||||
shape_external: '#398bc6'
|
||||
shape_external_resolved: '#398bc6'
|
||||
shape_externalarg: { fg: '#2a9292' attr: 'b' }
|
||||
shape_filepath: '#398bc6'
|
||||
shape_flag: { fg: '#576ddb' attr: 'b' }
|
||||
shape_float: { fg: '#be4678' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#398bc6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#398bc6' attr: 'b' }
|
||||
shape_int: { fg: '#955ae7' attr: 'b' }
|
||||
shape_internalcall: { fg: '#398bc6' attr: 'b' }
|
||||
shape_keyword: { fg: '#955ae7' attr: 'b' }
|
||||
shape_list: { fg: '#398bc6' attr: 'b' }
|
||||
shape_literal: '#576ddb'
|
||||
shape_match_pattern: '#2a9292'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#be4678'
|
||||
shape_operator: '#a06e3b'
|
||||
shape_or: { fg: '#955ae7' attr: 'b' }
|
||||
shape_pipe: { fg: '#955ae7' attr: 'b' }
|
||||
shape_range: { fg: '#a06e3b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#19171c' attr: 'b' }
|
||||
shape_record: { fg: '#398bc6' attr: 'b' }
|
||||
shape_redirection: { fg: '#955ae7' attr: 'b' }
|
||||
shape_signature: { fg: '#2a9292' attr: 'b' }
|
||||
shape_string: '#2a9292'
|
||||
shape_string_interpolation: { fg: '#398bc6' attr: 'b' }
|
||||
shape_table: { fg: '#576ddb' attr: 'b' }
|
||||
shape_vardecl: { fg: '#576ddb' attr: 'u' }
|
||||
shape_variable: '#955ae7'
|
||||
|
||||
foreground: '#585260'
|
||||
background: '#efecf4'
|
||||
cursor: '#585260'
|
||||
|
||||
empty: '#576ddb'
|
||||
header: { fg: '#2a9292' attr: 'b' }
|
||||
hints: '#7e7887'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#2a9292' attr: 'b' }
|
||||
search_result: { fg: '#be4678' bg: '#585260' }
|
||||
separator: '#585260'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#955ae7'
|
||||
block: '#576ddb'
|
||||
cell-path: '#8b8792'
|
||||
closure: '#398bc6'
|
||||
custom: '#efecf4'
|
||||
duration: '#a06e3b'
|
||||
float: '#be4678'
|
||||
glob: '#efecf4'
|
||||
int: '#955ae7'
|
||||
list: '#398bc6'
|
||||
nothing: '#be4678'
|
||||
range: '#a06e3b'
|
||||
record: '#398bc6'
|
||||
string: '#2a9292'
|
||||
|
||||
bool: {|| if $in { '#398bc6' } else { '#a06e3b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#be4678' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#be4678'
|
||||
} else if $in < 1day {
|
||||
'#a06e3b'
|
||||
} else if $in < 3day {
|
||||
'#2a9292'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#2a9292' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#398bc6'
|
||||
} else if $in < 52wk {
|
||||
'#576ddb'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#8b8792'
|
||||
} else if $e < 1mb {
|
||||
'#398bc6'
|
||||
} else {{ fg: '#576ddb' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#955ae7' attr: 'b' }
|
||||
shape_binary: { fg: '#955ae7' attr: 'b' }
|
||||
shape_block: { fg: '#576ddb' attr: 'b' }
|
||||
shape_bool: '#398bc6'
|
||||
shape_closure: { fg: '#398bc6' attr: 'b' }
|
||||
shape_custom: '#2a9292'
|
||||
shape_datetime: { fg: '#398bc6' attr: 'b' }
|
||||
shape_directory: '#398bc6'
|
||||
shape_external: '#398bc6'
|
||||
shape_external_resolved: '#398bc6'
|
||||
shape_externalarg: { fg: '#2a9292' attr: 'b' }
|
||||
shape_filepath: '#398bc6'
|
||||
shape_flag: { fg: '#576ddb' attr: 'b' }
|
||||
shape_float: { fg: '#be4678' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#398bc6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#398bc6' attr: 'b' }
|
||||
shape_int: { fg: '#955ae7' attr: 'b' }
|
||||
shape_internalcall: { fg: '#398bc6' attr: 'b' }
|
||||
shape_keyword: { fg: '#955ae7' attr: 'b' }
|
||||
shape_list: { fg: '#398bc6' attr: 'b' }
|
||||
shape_literal: '#576ddb'
|
||||
shape_match_pattern: '#2a9292'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#be4678'
|
||||
shape_operator: '#a06e3b'
|
||||
shape_or: { fg: '#955ae7' attr: 'b' }
|
||||
shape_pipe: { fg: '#955ae7' attr: 'b' }
|
||||
shape_range: { fg: '#a06e3b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#efecf4' attr: 'b' }
|
||||
shape_record: { fg: '#398bc6' attr: 'b' }
|
||||
shape_redirection: { fg: '#955ae7' attr: 'b' }
|
||||
shape_signature: { fg: '#2a9292' attr: 'b' }
|
||||
shape_string: '#2a9292'
|
||||
shape_string_interpolation: { fg: '#398bc6' attr: 'b' }
|
||||
shape_table: { fg: '#576ddb' attr: 'b' }
|
||||
shape_vardecl: { fg: '#576ddb' attr: 'u' }
|
||||
shape_variable: '#955ae7'
|
||||
|
||||
foreground: '#8b8792'
|
||||
background: '#19171c'
|
||||
cursor: '#8b8792'
|
||||
|
||||
empty: '#576ddb'
|
||||
header: { fg: '#2a9292' attr: 'b' }
|
||||
hints: '#655f6d'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#2a9292' attr: 'b' }
|
||||
search_result: { fg: '#be4678' bg: '#8b8792' }
|
||||
separator: '#8b8792'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b854d4'
|
||||
block: '#6684e1'
|
||||
cell-path: '#6e6b5e'
|
||||
closure: '#1fad83'
|
||||
custom: '#20201d'
|
||||
duration: '#ae9513'
|
||||
float: '#d73737'
|
||||
glob: '#20201d'
|
||||
int: '#b854d4'
|
||||
list: '#1fad83'
|
||||
nothing: '#d73737'
|
||||
range: '#ae9513'
|
||||
record: '#1fad83'
|
||||
string: '#60ac39'
|
||||
|
||||
bool: {|| if $in { '#1fad83' } else { '#ae9513' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d73737' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d73737'
|
||||
} else if $in < 1day {
|
||||
'#ae9513'
|
||||
} else if $in < 3day {
|
||||
'#60ac39'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#60ac39' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1fad83'
|
||||
} else if $in < 52wk {
|
||||
'#6684e1'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#6e6b5e'
|
||||
} else if $e < 1mb {
|
||||
'#1fad83'
|
||||
} else {{ fg: '#6684e1' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b854d4' attr: 'b' }
|
||||
shape_binary: { fg: '#b854d4' attr: 'b' }
|
||||
shape_block: { fg: '#6684e1' attr: 'b' }
|
||||
shape_bool: '#1fad83'
|
||||
shape_closure: { fg: '#1fad83' attr: 'b' }
|
||||
shape_custom: '#60ac39'
|
||||
shape_datetime: { fg: '#1fad83' attr: 'b' }
|
||||
shape_directory: '#1fad83'
|
||||
shape_external: '#1fad83'
|
||||
shape_external_resolved: '#1fad83'
|
||||
shape_externalarg: { fg: '#60ac39' attr: 'b' }
|
||||
shape_filepath: '#1fad83'
|
||||
shape_flag: { fg: '#6684e1' attr: 'b' }
|
||||
shape_float: { fg: '#d73737' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1fad83' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1fad83' attr: 'b' }
|
||||
shape_int: { fg: '#b854d4' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1fad83' attr: 'b' }
|
||||
shape_keyword: { fg: '#b854d4' attr: 'b' }
|
||||
shape_list: { fg: '#1fad83' attr: 'b' }
|
||||
shape_literal: '#6684e1'
|
||||
shape_match_pattern: '#60ac39'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d73737'
|
||||
shape_operator: '#ae9513'
|
||||
shape_or: { fg: '#b854d4' attr: 'b' }
|
||||
shape_pipe: { fg: '#b854d4' attr: 'b' }
|
||||
shape_range: { fg: '#ae9513' attr: 'b' }
|
||||
shape_raw_string: { fg: '#20201d' attr: 'b' }
|
||||
shape_record: { fg: '#1fad83' attr: 'b' }
|
||||
shape_redirection: { fg: '#b854d4' attr: 'b' }
|
||||
shape_signature: { fg: '#60ac39' attr: 'b' }
|
||||
shape_string: '#60ac39'
|
||||
shape_string_interpolation: { fg: '#1fad83' attr: 'b' }
|
||||
shape_table: { fg: '#6684e1' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6684e1' attr: 'u' }
|
||||
shape_variable: '#b854d4'
|
||||
|
||||
foreground: '#6e6b5e'
|
||||
background: '#fefbec'
|
||||
cursor: '#6e6b5e'
|
||||
|
||||
empty: '#6684e1'
|
||||
header: { fg: '#60ac39' attr: 'b' }
|
||||
hints: '#999580'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#60ac39' attr: 'b' }
|
||||
search_result: { fg: '#d73737' bg: '#6e6b5e' }
|
||||
separator: '#6e6b5e'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b854d4'
|
||||
block: '#6684e1'
|
||||
cell-path: '#a6a28c'
|
||||
closure: '#1fad83'
|
||||
custom: '#fefbec'
|
||||
duration: '#ae9513'
|
||||
float: '#d73737'
|
||||
glob: '#fefbec'
|
||||
int: '#b854d4'
|
||||
list: '#1fad83'
|
||||
nothing: '#d73737'
|
||||
range: '#ae9513'
|
||||
record: '#1fad83'
|
||||
string: '#60ac39'
|
||||
|
||||
bool: {|| if $in { '#1fad83' } else { '#ae9513' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d73737' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d73737'
|
||||
} else if $in < 1day {
|
||||
'#ae9513'
|
||||
} else if $in < 3day {
|
||||
'#60ac39'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#60ac39' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1fad83'
|
||||
} else if $in < 52wk {
|
||||
'#6684e1'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a6a28c'
|
||||
} else if $e < 1mb {
|
||||
'#1fad83'
|
||||
} else {{ fg: '#6684e1' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b854d4' attr: 'b' }
|
||||
shape_binary: { fg: '#b854d4' attr: 'b' }
|
||||
shape_block: { fg: '#6684e1' attr: 'b' }
|
||||
shape_bool: '#1fad83'
|
||||
shape_closure: { fg: '#1fad83' attr: 'b' }
|
||||
shape_custom: '#60ac39'
|
||||
shape_datetime: { fg: '#1fad83' attr: 'b' }
|
||||
shape_directory: '#1fad83'
|
||||
shape_external: '#1fad83'
|
||||
shape_external_resolved: '#1fad83'
|
||||
shape_externalarg: { fg: '#60ac39' attr: 'b' }
|
||||
shape_filepath: '#1fad83'
|
||||
shape_flag: { fg: '#6684e1' attr: 'b' }
|
||||
shape_float: { fg: '#d73737' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1fad83' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1fad83' attr: 'b' }
|
||||
shape_int: { fg: '#b854d4' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1fad83' attr: 'b' }
|
||||
shape_keyword: { fg: '#b854d4' attr: 'b' }
|
||||
shape_list: { fg: '#1fad83' attr: 'b' }
|
||||
shape_literal: '#6684e1'
|
||||
shape_match_pattern: '#60ac39'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d73737'
|
||||
shape_operator: '#ae9513'
|
||||
shape_or: { fg: '#b854d4' attr: 'b' }
|
||||
shape_pipe: { fg: '#b854d4' attr: 'b' }
|
||||
shape_range: { fg: '#ae9513' attr: 'b' }
|
||||
shape_raw_string: { fg: '#fefbec' attr: 'b' }
|
||||
shape_record: { fg: '#1fad83' attr: 'b' }
|
||||
shape_redirection: { fg: '#b854d4' attr: 'b' }
|
||||
shape_signature: { fg: '#60ac39' attr: 'b' }
|
||||
shape_string: '#60ac39'
|
||||
shape_string_interpolation: { fg: '#1fad83' attr: 'b' }
|
||||
shape_table: { fg: '#6684e1' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6684e1' attr: 'u' }
|
||||
shape_variable: '#b854d4'
|
||||
|
||||
foreground: '#a6a28c'
|
||||
background: '#20201d'
|
||||
cursor: '#a6a28c'
|
||||
|
||||
empty: '#6684e1'
|
||||
header: { fg: '#60ac39' attr: 'b' }
|
||||
hints: '#7d7a68'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#60ac39' attr: 'b' }
|
||||
search_result: { fg: '#d73737' bg: '#a6a28c' }
|
||||
separator: '#a6a28c'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#5f9182'
|
||||
block: '#36a166'
|
||||
cell-path: '#5f5e4e'
|
||||
closure: '#5b9d48'
|
||||
custom: '#22221b'
|
||||
duration: '#a5980d'
|
||||
float: '#ba6236'
|
||||
glob: '#22221b'
|
||||
int: '#5f9182'
|
||||
list: '#5b9d48'
|
||||
nothing: '#ba6236'
|
||||
range: '#a5980d'
|
||||
record: '#5b9d48'
|
||||
string: '#7d9726'
|
||||
|
||||
bool: {|| if $in { '#5b9d48' } else { '#a5980d' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ba6236' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ba6236'
|
||||
} else if $in < 1day {
|
||||
'#a5980d'
|
||||
} else if $in < 3day {
|
||||
'#7d9726'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7d9726' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5b9d48'
|
||||
} else if $in < 52wk {
|
||||
'#36a166'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#5f5e4e'
|
||||
} else if $e < 1mb {
|
||||
'#5b9d48'
|
||||
} else {{ fg: '#36a166' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#5f9182' attr: 'b' }
|
||||
shape_binary: { fg: '#5f9182' attr: 'b' }
|
||||
shape_block: { fg: '#36a166' attr: 'b' }
|
||||
shape_bool: '#5b9d48'
|
||||
shape_closure: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_custom: '#7d9726'
|
||||
shape_datetime: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_directory: '#5b9d48'
|
||||
shape_external: '#5b9d48'
|
||||
shape_external_resolved: '#5b9d48'
|
||||
shape_externalarg: { fg: '#7d9726' attr: 'b' }
|
||||
shape_filepath: '#5b9d48'
|
||||
shape_flag: { fg: '#36a166' attr: 'b' }
|
||||
shape_float: { fg: '#ba6236' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_int: { fg: '#5f9182' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_keyword: { fg: '#5f9182' attr: 'b' }
|
||||
shape_list: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_literal: '#36a166'
|
||||
shape_match_pattern: '#7d9726'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ba6236'
|
||||
shape_operator: '#a5980d'
|
||||
shape_or: { fg: '#5f9182' attr: 'b' }
|
||||
shape_pipe: { fg: '#5f9182' attr: 'b' }
|
||||
shape_range: { fg: '#a5980d' attr: 'b' }
|
||||
shape_raw_string: { fg: '#22221b' attr: 'b' }
|
||||
shape_record: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_redirection: { fg: '#5f9182' attr: 'b' }
|
||||
shape_signature: { fg: '#7d9726' attr: 'b' }
|
||||
shape_string: '#7d9726'
|
||||
shape_string_interpolation: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_table: { fg: '#36a166' attr: 'b' }
|
||||
shape_vardecl: { fg: '#36a166' attr: 'u' }
|
||||
shape_variable: '#5f9182'
|
||||
|
||||
foreground: '#5f5e4e'
|
||||
background: '#f4f3ec'
|
||||
cursor: '#5f5e4e'
|
||||
|
||||
empty: '#36a166'
|
||||
header: { fg: '#7d9726' attr: 'b' }
|
||||
hints: '#878573'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7d9726' attr: 'b' }
|
||||
search_result: { fg: '#ba6236' bg: '#5f5e4e' }
|
||||
separator: '#5f5e4e'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#5f9182'
|
||||
block: '#36a166'
|
||||
cell-path: '#929181'
|
||||
closure: '#5b9d48'
|
||||
custom: '#f4f3ec'
|
||||
duration: '#a5980d'
|
||||
float: '#ba6236'
|
||||
glob: '#f4f3ec'
|
||||
int: '#5f9182'
|
||||
list: '#5b9d48'
|
||||
nothing: '#ba6236'
|
||||
range: '#a5980d'
|
||||
record: '#5b9d48'
|
||||
string: '#7d9726'
|
||||
|
||||
bool: {|| if $in { '#5b9d48' } else { '#a5980d' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ba6236' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ba6236'
|
||||
} else if $in < 1day {
|
||||
'#a5980d'
|
||||
} else if $in < 3day {
|
||||
'#7d9726'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7d9726' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5b9d48'
|
||||
} else if $in < 52wk {
|
||||
'#36a166'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#929181'
|
||||
} else if $e < 1mb {
|
||||
'#5b9d48'
|
||||
} else {{ fg: '#36a166' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#5f9182' attr: 'b' }
|
||||
shape_binary: { fg: '#5f9182' attr: 'b' }
|
||||
shape_block: { fg: '#36a166' attr: 'b' }
|
||||
shape_bool: '#5b9d48'
|
||||
shape_closure: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_custom: '#7d9726'
|
||||
shape_datetime: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_directory: '#5b9d48'
|
||||
shape_external: '#5b9d48'
|
||||
shape_external_resolved: '#5b9d48'
|
||||
shape_externalarg: { fg: '#7d9726' attr: 'b' }
|
||||
shape_filepath: '#5b9d48'
|
||||
shape_flag: { fg: '#36a166' attr: 'b' }
|
||||
shape_float: { fg: '#ba6236' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_int: { fg: '#5f9182' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_keyword: { fg: '#5f9182' attr: 'b' }
|
||||
shape_list: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_literal: '#36a166'
|
||||
shape_match_pattern: '#7d9726'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ba6236'
|
||||
shape_operator: '#a5980d'
|
||||
shape_or: { fg: '#5f9182' attr: 'b' }
|
||||
shape_pipe: { fg: '#5f9182' attr: 'b' }
|
||||
shape_range: { fg: '#a5980d' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f4f3ec' attr: 'b' }
|
||||
shape_record: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_redirection: { fg: '#5f9182' attr: 'b' }
|
||||
shape_signature: { fg: '#7d9726' attr: 'b' }
|
||||
shape_string: '#7d9726'
|
||||
shape_string_interpolation: { fg: '#5b9d48' attr: 'b' }
|
||||
shape_table: { fg: '#36a166' attr: 'b' }
|
||||
shape_vardecl: { fg: '#36a166' attr: 'u' }
|
||||
shape_variable: '#5f9182'
|
||||
|
||||
foreground: '#929181'
|
||||
background: '#22221b'
|
||||
cursor: '#929181'
|
||||
|
||||
empty: '#36a166'
|
||||
header: { fg: '#7d9726' attr: 'b' }
|
||||
hints: '#6c6b5a'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7d9726' attr: 'b' }
|
||||
search_result: { fg: '#ba6236' bg: '#929181' }
|
||||
separator: '#929181'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6666ea'
|
||||
block: '#407ee7'
|
||||
cell-path: '#68615e'
|
||||
closure: '#3d97b8'
|
||||
custom: '#1b1918'
|
||||
duration: '#c38418'
|
||||
float: '#f22c40'
|
||||
glob: '#1b1918'
|
||||
int: '#6666ea'
|
||||
list: '#3d97b8'
|
||||
nothing: '#f22c40'
|
||||
range: '#c38418'
|
||||
record: '#3d97b8'
|
||||
string: '#7b9726'
|
||||
|
||||
bool: {|| if $in { '#3d97b8' } else { '#c38418' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#f22c40' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#f22c40'
|
||||
} else if $in < 1day {
|
||||
'#c38418'
|
||||
} else if $in < 3day {
|
||||
'#7b9726'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7b9726' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#3d97b8'
|
||||
} else if $in < 52wk {
|
||||
'#407ee7'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#68615e'
|
||||
} else if $e < 1mb {
|
||||
'#3d97b8'
|
||||
} else {{ fg: '#407ee7' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6666ea' attr: 'b' }
|
||||
shape_binary: { fg: '#6666ea' attr: 'b' }
|
||||
shape_block: { fg: '#407ee7' attr: 'b' }
|
||||
shape_bool: '#3d97b8'
|
||||
shape_closure: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_custom: '#7b9726'
|
||||
shape_datetime: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_directory: '#3d97b8'
|
||||
shape_external: '#3d97b8'
|
||||
shape_external_resolved: '#3d97b8'
|
||||
shape_externalarg: { fg: '#7b9726' attr: 'b' }
|
||||
shape_filepath: '#3d97b8'
|
||||
shape_flag: { fg: '#407ee7' attr: 'b' }
|
||||
shape_float: { fg: '#f22c40' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_globpattern: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_int: { fg: '#6666ea' attr: 'b' }
|
||||
shape_internalcall: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_keyword: { fg: '#6666ea' attr: 'b' }
|
||||
shape_list: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_literal: '#407ee7'
|
||||
shape_match_pattern: '#7b9726'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#f22c40'
|
||||
shape_operator: '#c38418'
|
||||
shape_or: { fg: '#6666ea' attr: 'b' }
|
||||
shape_pipe: { fg: '#6666ea' attr: 'b' }
|
||||
shape_range: { fg: '#c38418' attr: 'b' }
|
||||
shape_raw_string: { fg: '#1b1918' attr: 'b' }
|
||||
shape_record: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_redirection: { fg: '#6666ea' attr: 'b' }
|
||||
shape_signature: { fg: '#7b9726' attr: 'b' }
|
||||
shape_string: '#7b9726'
|
||||
shape_string_interpolation: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_table: { fg: '#407ee7' attr: 'b' }
|
||||
shape_vardecl: { fg: '#407ee7' attr: 'u' }
|
||||
shape_variable: '#6666ea'
|
||||
|
||||
foreground: '#68615e'
|
||||
background: '#f1efee'
|
||||
cursor: '#68615e'
|
||||
|
||||
empty: '#407ee7'
|
||||
header: { fg: '#7b9726' attr: 'b' }
|
||||
hints: '#9c9491'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7b9726' attr: 'b' }
|
||||
search_result: { fg: '#f22c40' bg: '#68615e' }
|
||||
separator: '#68615e'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6666ea'
|
||||
block: '#407ee7'
|
||||
cell-path: '#a8a19f'
|
||||
closure: '#3d97b8'
|
||||
custom: '#f1efee'
|
||||
duration: '#c38418'
|
||||
float: '#f22c40'
|
||||
glob: '#f1efee'
|
||||
int: '#6666ea'
|
||||
list: '#3d97b8'
|
||||
nothing: '#f22c40'
|
||||
range: '#c38418'
|
||||
record: '#3d97b8'
|
||||
string: '#7b9726'
|
||||
|
||||
bool: {|| if $in { '#3d97b8' } else { '#c38418' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#f22c40' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#f22c40'
|
||||
} else if $in < 1day {
|
||||
'#c38418'
|
||||
} else if $in < 3day {
|
||||
'#7b9726'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7b9726' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#3d97b8'
|
||||
} else if $in < 52wk {
|
||||
'#407ee7'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a8a19f'
|
||||
} else if $e < 1mb {
|
||||
'#3d97b8'
|
||||
} else {{ fg: '#407ee7' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6666ea' attr: 'b' }
|
||||
shape_binary: { fg: '#6666ea' attr: 'b' }
|
||||
shape_block: { fg: '#407ee7' attr: 'b' }
|
||||
shape_bool: '#3d97b8'
|
||||
shape_closure: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_custom: '#7b9726'
|
||||
shape_datetime: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_directory: '#3d97b8'
|
||||
shape_external: '#3d97b8'
|
||||
shape_external_resolved: '#3d97b8'
|
||||
shape_externalarg: { fg: '#7b9726' attr: 'b' }
|
||||
shape_filepath: '#3d97b8'
|
||||
shape_flag: { fg: '#407ee7' attr: 'b' }
|
||||
shape_float: { fg: '#f22c40' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_globpattern: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_int: { fg: '#6666ea' attr: 'b' }
|
||||
shape_internalcall: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_keyword: { fg: '#6666ea' attr: 'b' }
|
||||
shape_list: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_literal: '#407ee7'
|
||||
shape_match_pattern: '#7b9726'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#f22c40'
|
||||
shape_operator: '#c38418'
|
||||
shape_or: { fg: '#6666ea' attr: 'b' }
|
||||
shape_pipe: { fg: '#6666ea' attr: 'b' }
|
||||
shape_range: { fg: '#c38418' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f1efee' attr: 'b' }
|
||||
shape_record: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_redirection: { fg: '#6666ea' attr: 'b' }
|
||||
shape_signature: { fg: '#7b9726' attr: 'b' }
|
||||
shape_string: '#7b9726'
|
||||
shape_string_interpolation: { fg: '#3d97b8' attr: 'b' }
|
||||
shape_table: { fg: '#407ee7' attr: 'b' }
|
||||
shape_vardecl: { fg: '#407ee7' attr: 'u' }
|
||||
shape_variable: '#6666ea'
|
||||
|
||||
foreground: '#a8a19f'
|
||||
background: '#1b1918'
|
||||
cursor: '#a8a19f'
|
||||
|
||||
empty: '#407ee7'
|
||||
header: { fg: '#7b9726' attr: 'b' }
|
||||
hints: '#766e6b'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7b9726' attr: 'b' }
|
||||
search_result: { fg: '#f22c40' bg: '#a8a19f' }
|
||||
separator: '#a8a19f'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#7b59c0'
|
||||
block: '#516aec'
|
||||
cell-path: '#695d69'
|
||||
closure: '#159393'
|
||||
custom: '#1b181b'
|
||||
duration: '#bb8a35'
|
||||
float: '#ca402b'
|
||||
glob: '#1b181b'
|
||||
int: '#7b59c0'
|
||||
list: '#159393'
|
||||
nothing: '#ca402b'
|
||||
range: '#bb8a35'
|
||||
record: '#159393'
|
||||
string: '#918b3b'
|
||||
|
||||
bool: {|| if $in { '#159393' } else { '#bb8a35' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ca402b' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ca402b'
|
||||
} else if $in < 1day {
|
||||
'#bb8a35'
|
||||
} else if $in < 3day {
|
||||
'#918b3b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#918b3b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#159393'
|
||||
} else if $in < 52wk {
|
||||
'#516aec'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#695d69'
|
||||
} else if $e < 1mb {
|
||||
'#159393'
|
||||
} else {{ fg: '#516aec' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_binary: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_block: { fg: '#516aec' attr: 'b' }
|
||||
shape_bool: '#159393'
|
||||
shape_closure: { fg: '#159393' attr: 'b' }
|
||||
shape_custom: '#918b3b'
|
||||
shape_datetime: { fg: '#159393' attr: 'b' }
|
||||
shape_directory: '#159393'
|
||||
shape_external: '#159393'
|
||||
shape_external_resolved: '#159393'
|
||||
shape_externalarg: { fg: '#918b3b' attr: 'b' }
|
||||
shape_filepath: '#159393'
|
||||
shape_flag: { fg: '#516aec' attr: 'b' }
|
||||
shape_float: { fg: '#ca402b' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#159393' attr: 'b' }
|
||||
shape_globpattern: { fg: '#159393' attr: 'b' }
|
||||
shape_int: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_internalcall: { fg: '#159393' attr: 'b' }
|
||||
shape_keyword: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_list: { fg: '#159393' attr: 'b' }
|
||||
shape_literal: '#516aec'
|
||||
shape_match_pattern: '#918b3b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ca402b'
|
||||
shape_operator: '#bb8a35'
|
||||
shape_or: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_pipe: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_range: { fg: '#bb8a35' attr: 'b' }
|
||||
shape_raw_string: { fg: '#1b181b' attr: 'b' }
|
||||
shape_record: { fg: '#159393' attr: 'b' }
|
||||
shape_redirection: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_signature: { fg: '#918b3b' attr: 'b' }
|
||||
shape_string: '#918b3b'
|
||||
shape_string_interpolation: { fg: '#159393' attr: 'b' }
|
||||
shape_table: { fg: '#516aec' attr: 'b' }
|
||||
shape_vardecl: { fg: '#516aec' attr: 'u' }
|
||||
shape_variable: '#7b59c0'
|
||||
|
||||
foreground: '#695d69'
|
||||
background: '#f7f3f7'
|
||||
cursor: '#695d69'
|
||||
|
||||
empty: '#516aec'
|
||||
header: { fg: '#918b3b' attr: 'b' }
|
||||
hints: '#9e8f9e'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#918b3b' attr: 'b' }
|
||||
search_result: { fg: '#ca402b' bg: '#695d69' }
|
||||
separator: '#695d69'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#7b59c0'
|
||||
block: '#516aec'
|
||||
cell-path: '#ab9bab'
|
||||
closure: '#159393'
|
||||
custom: '#f7f3f7'
|
||||
duration: '#bb8a35'
|
||||
float: '#ca402b'
|
||||
glob: '#f7f3f7'
|
||||
int: '#7b59c0'
|
||||
list: '#159393'
|
||||
nothing: '#ca402b'
|
||||
range: '#bb8a35'
|
||||
record: '#159393'
|
||||
string: '#918b3b'
|
||||
|
||||
bool: {|| if $in { '#159393' } else { '#bb8a35' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ca402b' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ca402b'
|
||||
} else if $in < 1day {
|
||||
'#bb8a35'
|
||||
} else if $in < 3day {
|
||||
'#918b3b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#918b3b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#159393'
|
||||
} else if $in < 52wk {
|
||||
'#516aec'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ab9bab'
|
||||
} else if $e < 1mb {
|
||||
'#159393'
|
||||
} else {{ fg: '#516aec' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_binary: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_block: { fg: '#516aec' attr: 'b' }
|
||||
shape_bool: '#159393'
|
||||
shape_closure: { fg: '#159393' attr: 'b' }
|
||||
shape_custom: '#918b3b'
|
||||
shape_datetime: { fg: '#159393' attr: 'b' }
|
||||
shape_directory: '#159393'
|
||||
shape_external: '#159393'
|
||||
shape_external_resolved: '#159393'
|
||||
shape_externalarg: { fg: '#918b3b' attr: 'b' }
|
||||
shape_filepath: '#159393'
|
||||
shape_flag: { fg: '#516aec' attr: 'b' }
|
||||
shape_float: { fg: '#ca402b' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#159393' attr: 'b' }
|
||||
shape_globpattern: { fg: '#159393' attr: 'b' }
|
||||
shape_int: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_internalcall: { fg: '#159393' attr: 'b' }
|
||||
shape_keyword: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_list: { fg: '#159393' attr: 'b' }
|
||||
shape_literal: '#516aec'
|
||||
shape_match_pattern: '#918b3b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ca402b'
|
||||
shape_operator: '#bb8a35'
|
||||
shape_or: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_pipe: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_range: { fg: '#bb8a35' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f7f3f7' attr: 'b' }
|
||||
shape_record: { fg: '#159393' attr: 'b' }
|
||||
shape_redirection: { fg: '#7b59c0' attr: 'b' }
|
||||
shape_signature: { fg: '#918b3b' attr: 'b' }
|
||||
shape_string: '#918b3b'
|
||||
shape_string_interpolation: { fg: '#159393' attr: 'b' }
|
||||
shape_table: { fg: '#516aec' attr: 'b' }
|
||||
shape_vardecl: { fg: '#516aec' attr: 'u' }
|
||||
shape_variable: '#7b59c0'
|
||||
|
||||
foreground: '#ab9bab'
|
||||
background: '#1b181b'
|
||||
cursor: '#ab9bab'
|
||||
|
||||
empty: '#516aec'
|
||||
header: { fg: '#918b3b' attr: 'b' }
|
||||
hints: '#776977'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#918b3b' attr: 'b' }
|
||||
search_result: { fg: '#ca402b' bg: '#ab9bab' }
|
||||
separator: '#ab9bab'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6b6bb8'
|
||||
block: '#257fad'
|
||||
cell-path: '#516d7b'
|
||||
closure: '#2d8f6f'
|
||||
custom: '#161b1d'
|
||||
duration: '#8a8a0f'
|
||||
float: '#d22d72'
|
||||
glob: '#161b1d'
|
||||
int: '#6b6bb8'
|
||||
list: '#2d8f6f'
|
||||
nothing: '#d22d72'
|
||||
range: '#8a8a0f'
|
||||
record: '#2d8f6f'
|
||||
string: '#568c3b'
|
||||
|
||||
bool: {|| if $in { '#2d8f6f' } else { '#8a8a0f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d22d72' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d22d72'
|
||||
} else if $in < 1day {
|
||||
'#8a8a0f'
|
||||
} else if $in < 3day {
|
||||
'#568c3b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#568c3b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#2d8f6f'
|
||||
} else if $in < 52wk {
|
||||
'#257fad'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#516d7b'
|
||||
} else if $e < 1mb {
|
||||
'#2d8f6f'
|
||||
} else {{ fg: '#257fad' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_binary: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_block: { fg: '#257fad' attr: 'b' }
|
||||
shape_bool: '#2d8f6f'
|
||||
shape_closure: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_custom: '#568c3b'
|
||||
shape_datetime: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_directory: '#2d8f6f'
|
||||
shape_external: '#2d8f6f'
|
||||
shape_external_resolved: '#2d8f6f'
|
||||
shape_externalarg: { fg: '#568c3b' attr: 'b' }
|
||||
shape_filepath: '#2d8f6f'
|
||||
shape_flag: { fg: '#257fad' attr: 'b' }
|
||||
shape_float: { fg: '#d22d72' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_globpattern: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_int: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_internalcall: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_keyword: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_list: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_literal: '#257fad'
|
||||
shape_match_pattern: '#568c3b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d22d72'
|
||||
shape_operator: '#8a8a0f'
|
||||
shape_or: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_pipe: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_range: { fg: '#8a8a0f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#161b1d' attr: 'b' }
|
||||
shape_record: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_redirection: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_signature: { fg: '#568c3b' attr: 'b' }
|
||||
shape_string: '#568c3b'
|
||||
shape_string_interpolation: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_table: { fg: '#257fad' attr: 'b' }
|
||||
shape_vardecl: { fg: '#257fad' attr: 'u' }
|
||||
shape_variable: '#6b6bb8'
|
||||
|
||||
foreground: '#516d7b'
|
||||
background: '#ebf8ff'
|
||||
cursor: '#516d7b'
|
||||
|
||||
empty: '#257fad'
|
||||
header: { fg: '#568c3b' attr: 'b' }
|
||||
hints: '#7195a8'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#568c3b' attr: 'b' }
|
||||
search_result: { fg: '#d22d72' bg: '#516d7b' }
|
||||
separator: '#516d7b'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6b6bb8'
|
||||
block: '#257fad'
|
||||
cell-path: '#7ea2b4'
|
||||
closure: '#2d8f6f'
|
||||
custom: '#ebf8ff'
|
||||
duration: '#8a8a0f'
|
||||
float: '#d22d72'
|
||||
glob: '#ebf8ff'
|
||||
int: '#6b6bb8'
|
||||
list: '#2d8f6f'
|
||||
nothing: '#d22d72'
|
||||
range: '#8a8a0f'
|
||||
record: '#2d8f6f'
|
||||
string: '#568c3b'
|
||||
|
||||
bool: {|| if $in { '#2d8f6f' } else { '#8a8a0f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d22d72' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d22d72'
|
||||
} else if $in < 1day {
|
||||
'#8a8a0f'
|
||||
} else if $in < 3day {
|
||||
'#568c3b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#568c3b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#2d8f6f'
|
||||
} else if $in < 52wk {
|
||||
'#257fad'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#7ea2b4'
|
||||
} else if $e < 1mb {
|
||||
'#2d8f6f'
|
||||
} else {{ fg: '#257fad' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_binary: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_block: { fg: '#257fad' attr: 'b' }
|
||||
shape_bool: '#2d8f6f'
|
||||
shape_closure: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_custom: '#568c3b'
|
||||
shape_datetime: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_directory: '#2d8f6f'
|
||||
shape_external: '#2d8f6f'
|
||||
shape_external_resolved: '#2d8f6f'
|
||||
shape_externalarg: { fg: '#568c3b' attr: 'b' }
|
||||
shape_filepath: '#2d8f6f'
|
||||
shape_flag: { fg: '#257fad' attr: 'b' }
|
||||
shape_float: { fg: '#d22d72' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_globpattern: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_int: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_internalcall: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_keyword: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_list: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_literal: '#257fad'
|
||||
shape_match_pattern: '#568c3b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d22d72'
|
||||
shape_operator: '#8a8a0f'
|
||||
shape_or: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_pipe: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_range: { fg: '#8a8a0f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ebf8ff' attr: 'b' }
|
||||
shape_record: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_redirection: { fg: '#6b6bb8' attr: 'b' }
|
||||
shape_signature: { fg: '#568c3b' attr: 'b' }
|
||||
shape_string: '#568c3b'
|
||||
shape_string_interpolation: { fg: '#2d8f6f' attr: 'b' }
|
||||
shape_table: { fg: '#257fad' attr: 'b' }
|
||||
shape_vardecl: { fg: '#257fad' attr: 'u' }
|
||||
shape_variable: '#6b6bb8'
|
||||
|
||||
foreground: '#7ea2b4'
|
||||
background: '#161b1d'
|
||||
cursor: '#7ea2b4'
|
||||
|
||||
empty: '#257fad'
|
||||
header: { fg: '#568c3b' attr: 'b' }
|
||||
hints: '#5a7b8c'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#568c3b' attr: 'b' }
|
||||
search_result: { fg: '#d22d72' bg: '#7ea2b4' }
|
||||
separator: '#7ea2b4'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8464c4'
|
||||
block: '#7272ca'
|
||||
cell-path: '#585050'
|
||||
closure: '#5485b6'
|
||||
custom: '#1b1818'
|
||||
duration: '#a06e3b'
|
||||
float: '#ca4949'
|
||||
glob: '#1b1818'
|
||||
int: '#8464c4'
|
||||
list: '#5485b6'
|
||||
nothing: '#ca4949'
|
||||
range: '#a06e3b'
|
||||
record: '#5485b6'
|
||||
string: '#4b8b8b'
|
||||
|
||||
bool: {|| if $in { '#5485b6' } else { '#a06e3b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ca4949' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ca4949'
|
||||
} else if $in < 1day {
|
||||
'#a06e3b'
|
||||
} else if $in < 3day {
|
||||
'#4b8b8b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#4b8b8b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5485b6'
|
||||
} else if $in < 52wk {
|
||||
'#7272ca'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#585050'
|
||||
} else if $e < 1mb {
|
||||
'#5485b6'
|
||||
} else {{ fg: '#7272ca' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8464c4' attr: 'b' }
|
||||
shape_binary: { fg: '#8464c4' attr: 'b' }
|
||||
shape_block: { fg: '#7272ca' attr: 'b' }
|
||||
shape_bool: '#5485b6'
|
||||
shape_closure: { fg: '#5485b6' attr: 'b' }
|
||||
shape_custom: '#4b8b8b'
|
||||
shape_datetime: { fg: '#5485b6' attr: 'b' }
|
||||
shape_directory: '#5485b6'
|
||||
shape_external: '#5485b6'
|
||||
shape_external_resolved: '#5485b6'
|
||||
shape_externalarg: { fg: '#4b8b8b' attr: 'b' }
|
||||
shape_filepath: '#5485b6'
|
||||
shape_flag: { fg: '#7272ca' attr: 'b' }
|
||||
shape_float: { fg: '#ca4949' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5485b6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5485b6' attr: 'b' }
|
||||
shape_int: { fg: '#8464c4' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5485b6' attr: 'b' }
|
||||
shape_keyword: { fg: '#8464c4' attr: 'b' }
|
||||
shape_list: { fg: '#5485b6' attr: 'b' }
|
||||
shape_literal: '#7272ca'
|
||||
shape_match_pattern: '#4b8b8b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ca4949'
|
||||
shape_operator: '#a06e3b'
|
||||
shape_or: { fg: '#8464c4' attr: 'b' }
|
||||
shape_pipe: { fg: '#8464c4' attr: 'b' }
|
||||
shape_range: { fg: '#a06e3b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#1b1818' attr: 'b' }
|
||||
shape_record: { fg: '#5485b6' attr: 'b' }
|
||||
shape_redirection: { fg: '#8464c4' attr: 'b' }
|
||||
shape_signature: { fg: '#4b8b8b' attr: 'b' }
|
||||
shape_string: '#4b8b8b'
|
||||
shape_string_interpolation: { fg: '#5485b6' attr: 'b' }
|
||||
shape_table: { fg: '#7272ca' attr: 'b' }
|
||||
shape_vardecl: { fg: '#7272ca' attr: 'u' }
|
||||
shape_variable: '#8464c4'
|
||||
|
||||
foreground: '#585050'
|
||||
background: '#f4ecec'
|
||||
cursor: '#585050'
|
||||
|
||||
empty: '#7272ca'
|
||||
header: { fg: '#4b8b8b' attr: 'b' }
|
||||
hints: '#7e7777'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#4b8b8b' attr: 'b' }
|
||||
search_result: { fg: '#ca4949' bg: '#585050' }
|
||||
separator: '#585050'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8464c4'
|
||||
block: '#7272ca'
|
||||
cell-path: '#8a8585'
|
||||
closure: '#5485b6'
|
||||
custom: '#f4ecec'
|
||||
duration: '#a06e3b'
|
||||
float: '#ca4949'
|
||||
glob: '#f4ecec'
|
||||
int: '#8464c4'
|
||||
list: '#5485b6'
|
||||
nothing: '#ca4949'
|
||||
range: '#a06e3b'
|
||||
record: '#5485b6'
|
||||
string: '#4b8b8b'
|
||||
|
||||
bool: {|| if $in { '#5485b6' } else { '#a06e3b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ca4949' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ca4949'
|
||||
} else if $in < 1day {
|
||||
'#a06e3b'
|
||||
} else if $in < 3day {
|
||||
'#4b8b8b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#4b8b8b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5485b6'
|
||||
} else if $in < 52wk {
|
||||
'#7272ca'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#8a8585'
|
||||
} else if $e < 1mb {
|
||||
'#5485b6'
|
||||
} else {{ fg: '#7272ca' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8464c4' attr: 'b' }
|
||||
shape_binary: { fg: '#8464c4' attr: 'b' }
|
||||
shape_block: { fg: '#7272ca' attr: 'b' }
|
||||
shape_bool: '#5485b6'
|
||||
shape_closure: { fg: '#5485b6' attr: 'b' }
|
||||
shape_custom: '#4b8b8b'
|
||||
shape_datetime: { fg: '#5485b6' attr: 'b' }
|
||||
shape_directory: '#5485b6'
|
||||
shape_external: '#5485b6'
|
||||
shape_external_resolved: '#5485b6'
|
||||
shape_externalarg: { fg: '#4b8b8b' attr: 'b' }
|
||||
shape_filepath: '#5485b6'
|
||||
shape_flag: { fg: '#7272ca' attr: 'b' }
|
||||
shape_float: { fg: '#ca4949' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5485b6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5485b6' attr: 'b' }
|
||||
shape_int: { fg: '#8464c4' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5485b6' attr: 'b' }
|
||||
shape_keyword: { fg: '#8464c4' attr: 'b' }
|
||||
shape_list: { fg: '#5485b6' attr: 'b' }
|
||||
shape_literal: '#7272ca'
|
||||
shape_match_pattern: '#4b8b8b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ca4949'
|
||||
shape_operator: '#a06e3b'
|
||||
shape_or: { fg: '#8464c4' attr: 'b' }
|
||||
shape_pipe: { fg: '#8464c4' attr: 'b' }
|
||||
shape_range: { fg: '#a06e3b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f4ecec' attr: 'b' }
|
||||
shape_record: { fg: '#5485b6' attr: 'b' }
|
||||
shape_redirection: { fg: '#8464c4' attr: 'b' }
|
||||
shape_signature: { fg: '#4b8b8b' attr: 'b' }
|
||||
shape_string: '#4b8b8b'
|
||||
shape_string_interpolation: { fg: '#5485b6' attr: 'b' }
|
||||
shape_table: { fg: '#7272ca' attr: 'b' }
|
||||
shape_vardecl: { fg: '#7272ca' attr: 'u' }
|
||||
shape_variable: '#8464c4'
|
||||
|
||||
foreground: '#8a8585'
|
||||
background: '#1b1818'
|
||||
cursor: '#8a8585'
|
||||
|
||||
empty: '#7272ca'
|
||||
header: { fg: '#4b8b8b' attr: 'b' }
|
||||
hints: '#655d5d'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#4b8b8b' attr: 'b' }
|
||||
search_result: { fg: '#ca4949' bg: '#8a8585' }
|
||||
separator: '#8a8585'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#55859b'
|
||||
block: '#478c90'
|
||||
cell-path: '#526057'
|
||||
closure: '#1c9aa0'
|
||||
custom: '#171c19'
|
||||
duration: '#a07e3b'
|
||||
float: '#b16139'
|
||||
glob: '#171c19'
|
||||
int: '#55859b'
|
||||
list: '#1c9aa0'
|
||||
nothing: '#b16139'
|
||||
range: '#a07e3b'
|
||||
record: '#1c9aa0'
|
||||
string: '#489963'
|
||||
|
||||
bool: {|| if $in { '#1c9aa0' } else { '#a07e3b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#b16139' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#b16139'
|
||||
} else if $in < 1day {
|
||||
'#a07e3b'
|
||||
} else if $in < 3day {
|
||||
'#489963'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#489963' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1c9aa0'
|
||||
} else if $in < 52wk {
|
||||
'#478c90'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#526057'
|
||||
} else if $e < 1mb {
|
||||
'#1c9aa0'
|
||||
} else {{ fg: '#478c90' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#55859b' attr: 'b' }
|
||||
shape_binary: { fg: '#55859b' attr: 'b' }
|
||||
shape_block: { fg: '#478c90' attr: 'b' }
|
||||
shape_bool: '#1c9aa0'
|
||||
shape_closure: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_custom: '#489963'
|
||||
shape_datetime: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_directory: '#1c9aa0'
|
||||
shape_external: '#1c9aa0'
|
||||
shape_external_resolved: '#1c9aa0'
|
||||
shape_externalarg: { fg: '#489963' attr: 'b' }
|
||||
shape_filepath: '#1c9aa0'
|
||||
shape_flag: { fg: '#478c90' attr: 'b' }
|
||||
shape_float: { fg: '#b16139' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_int: { fg: '#55859b' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_keyword: { fg: '#55859b' attr: 'b' }
|
||||
shape_list: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_literal: '#478c90'
|
||||
shape_match_pattern: '#489963'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#b16139'
|
||||
shape_operator: '#a07e3b'
|
||||
shape_or: { fg: '#55859b' attr: 'b' }
|
||||
shape_pipe: { fg: '#55859b' attr: 'b' }
|
||||
shape_range: { fg: '#a07e3b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#171c19' attr: 'b' }
|
||||
shape_record: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_redirection: { fg: '#55859b' attr: 'b' }
|
||||
shape_signature: { fg: '#489963' attr: 'b' }
|
||||
shape_string: '#489963'
|
||||
shape_string_interpolation: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_table: { fg: '#478c90' attr: 'b' }
|
||||
shape_vardecl: { fg: '#478c90' attr: 'u' }
|
||||
shape_variable: '#55859b'
|
||||
|
||||
foreground: '#526057'
|
||||
background: '#ecf4ee'
|
||||
cursor: '#526057'
|
||||
|
||||
empty: '#478c90'
|
||||
header: { fg: '#489963' attr: 'b' }
|
||||
hints: '#78877d'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#489963' attr: 'b' }
|
||||
search_result: { fg: '#b16139' bg: '#526057' }
|
||||
separator: '#526057'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#55859b'
|
||||
block: '#478c90'
|
||||
cell-path: '#87928a'
|
||||
closure: '#1c9aa0'
|
||||
custom: '#ecf4ee'
|
||||
duration: '#a07e3b'
|
||||
float: '#b16139'
|
||||
glob: '#ecf4ee'
|
||||
int: '#55859b'
|
||||
list: '#1c9aa0'
|
||||
nothing: '#b16139'
|
||||
range: '#a07e3b'
|
||||
record: '#1c9aa0'
|
||||
string: '#489963'
|
||||
|
||||
bool: {|| if $in { '#1c9aa0' } else { '#a07e3b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#b16139' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#b16139'
|
||||
} else if $in < 1day {
|
||||
'#a07e3b'
|
||||
} else if $in < 3day {
|
||||
'#489963'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#489963' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1c9aa0'
|
||||
} else if $in < 52wk {
|
||||
'#478c90'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#87928a'
|
||||
} else if $e < 1mb {
|
||||
'#1c9aa0'
|
||||
} else {{ fg: '#478c90' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#55859b' attr: 'b' }
|
||||
shape_binary: { fg: '#55859b' attr: 'b' }
|
||||
shape_block: { fg: '#478c90' attr: 'b' }
|
||||
shape_bool: '#1c9aa0'
|
||||
shape_closure: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_custom: '#489963'
|
||||
shape_datetime: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_directory: '#1c9aa0'
|
||||
shape_external: '#1c9aa0'
|
||||
shape_external_resolved: '#1c9aa0'
|
||||
shape_externalarg: { fg: '#489963' attr: 'b' }
|
||||
shape_filepath: '#1c9aa0'
|
||||
shape_flag: { fg: '#478c90' attr: 'b' }
|
||||
shape_float: { fg: '#b16139' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_int: { fg: '#55859b' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_keyword: { fg: '#55859b' attr: 'b' }
|
||||
shape_list: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_literal: '#478c90'
|
||||
shape_match_pattern: '#489963'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#b16139'
|
||||
shape_operator: '#a07e3b'
|
||||
shape_or: { fg: '#55859b' attr: 'b' }
|
||||
shape_pipe: { fg: '#55859b' attr: 'b' }
|
||||
shape_range: { fg: '#a07e3b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ecf4ee' attr: 'b' }
|
||||
shape_record: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_redirection: { fg: '#55859b' attr: 'b' }
|
||||
shape_signature: { fg: '#489963' attr: 'b' }
|
||||
shape_string: '#489963'
|
||||
shape_string_interpolation: { fg: '#1c9aa0' attr: 'b' }
|
||||
shape_table: { fg: '#478c90' attr: 'b' }
|
||||
shape_vardecl: { fg: '#478c90' attr: 'u' }
|
||||
shape_variable: '#55859b'
|
||||
|
||||
foreground: '#87928a'
|
||||
background: '#171c19'
|
||||
cursor: '#87928a'
|
||||
|
||||
empty: '#478c90'
|
||||
header: { fg: '#489963' attr: 'b' }
|
||||
hints: '#5f6d64'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#489963' attr: 'b' }
|
||||
search_result: { fg: '#b16139' bg: '#87928a' }
|
||||
separator: '#87928a'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#ad2bee'
|
||||
block: '#3d62f5'
|
||||
cell-path: '#5e6e5e'
|
||||
closure: '#1999b3'
|
||||
custom: '#131513'
|
||||
duration: '#98981b'
|
||||
float: '#e6193c'
|
||||
glob: '#131513'
|
||||
int: '#ad2bee'
|
||||
list: '#1999b3'
|
||||
nothing: '#e6193c'
|
||||
range: '#98981b'
|
||||
record: '#1999b3'
|
||||
string: '#29a329'
|
||||
|
||||
bool: {|| if $in { '#1999b3' } else { '#98981b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#e6193c' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#e6193c'
|
||||
} else if $in < 1day {
|
||||
'#98981b'
|
||||
} else if $in < 3day {
|
||||
'#29a329'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#29a329' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1999b3'
|
||||
} else if $in < 52wk {
|
||||
'#3d62f5'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#5e6e5e'
|
||||
} else if $e < 1mb {
|
||||
'#1999b3'
|
||||
} else {{ fg: '#3d62f5' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_binary: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_block: { fg: '#3d62f5' attr: 'b' }
|
||||
shape_bool: '#1999b3'
|
||||
shape_closure: { fg: '#1999b3' attr: 'b' }
|
||||
shape_custom: '#29a329'
|
||||
shape_datetime: { fg: '#1999b3' attr: 'b' }
|
||||
shape_directory: '#1999b3'
|
||||
shape_external: '#1999b3'
|
||||
shape_external_resolved: '#1999b3'
|
||||
shape_externalarg: { fg: '#29a329' attr: 'b' }
|
||||
shape_filepath: '#1999b3'
|
||||
shape_flag: { fg: '#3d62f5' attr: 'b' }
|
||||
shape_float: { fg: '#e6193c' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1999b3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1999b3' attr: 'b' }
|
||||
shape_int: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1999b3' attr: 'b' }
|
||||
shape_keyword: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_list: { fg: '#1999b3' attr: 'b' }
|
||||
shape_literal: '#3d62f5'
|
||||
shape_match_pattern: '#29a329'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#e6193c'
|
||||
shape_operator: '#98981b'
|
||||
shape_or: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_pipe: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_range: { fg: '#98981b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#131513' attr: 'b' }
|
||||
shape_record: { fg: '#1999b3' attr: 'b' }
|
||||
shape_redirection: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_signature: { fg: '#29a329' attr: 'b' }
|
||||
shape_string: '#29a329'
|
||||
shape_string_interpolation: { fg: '#1999b3' attr: 'b' }
|
||||
shape_table: { fg: '#3d62f5' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3d62f5' attr: 'u' }
|
||||
shape_variable: '#ad2bee'
|
||||
|
||||
foreground: '#5e6e5e'
|
||||
background: '#f4fbf4'
|
||||
cursor: '#5e6e5e'
|
||||
|
||||
empty: '#3d62f5'
|
||||
header: { fg: '#29a329' attr: 'b' }
|
||||
hints: '#809980'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#29a329' attr: 'b' }
|
||||
search_result: { fg: '#e6193c' bg: '#5e6e5e' }
|
||||
separator: '#5e6e5e'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#ad2bee'
|
||||
block: '#3d62f5'
|
||||
cell-path: '#8ca68c'
|
||||
closure: '#1999b3'
|
||||
custom: '#f4fbf4'
|
||||
duration: '#98981b'
|
||||
float: '#e6193c'
|
||||
glob: '#f4fbf4'
|
||||
int: '#ad2bee'
|
||||
list: '#1999b3'
|
||||
nothing: '#e6193c'
|
||||
range: '#98981b'
|
||||
record: '#1999b3'
|
||||
string: '#29a329'
|
||||
|
||||
bool: {|| if $in { '#1999b3' } else { '#98981b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#e6193c' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#e6193c'
|
||||
} else if $in < 1day {
|
||||
'#98981b'
|
||||
} else if $in < 3day {
|
||||
'#29a329'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#29a329' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1999b3'
|
||||
} else if $in < 52wk {
|
||||
'#3d62f5'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#8ca68c'
|
||||
} else if $e < 1mb {
|
||||
'#1999b3'
|
||||
} else {{ fg: '#3d62f5' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_binary: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_block: { fg: '#3d62f5' attr: 'b' }
|
||||
shape_bool: '#1999b3'
|
||||
shape_closure: { fg: '#1999b3' attr: 'b' }
|
||||
shape_custom: '#29a329'
|
||||
shape_datetime: { fg: '#1999b3' attr: 'b' }
|
||||
shape_directory: '#1999b3'
|
||||
shape_external: '#1999b3'
|
||||
shape_external_resolved: '#1999b3'
|
||||
shape_externalarg: { fg: '#29a329' attr: 'b' }
|
||||
shape_filepath: '#1999b3'
|
||||
shape_flag: { fg: '#3d62f5' attr: 'b' }
|
||||
shape_float: { fg: '#e6193c' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1999b3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1999b3' attr: 'b' }
|
||||
shape_int: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1999b3' attr: 'b' }
|
||||
shape_keyword: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_list: { fg: '#1999b3' attr: 'b' }
|
||||
shape_literal: '#3d62f5'
|
||||
shape_match_pattern: '#29a329'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#e6193c'
|
||||
shape_operator: '#98981b'
|
||||
shape_or: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_pipe: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_range: { fg: '#98981b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f4fbf4' attr: 'b' }
|
||||
shape_record: { fg: '#1999b3' attr: 'b' }
|
||||
shape_redirection: { fg: '#ad2bee' attr: 'b' }
|
||||
shape_signature: { fg: '#29a329' attr: 'b' }
|
||||
shape_string: '#29a329'
|
||||
shape_string_interpolation: { fg: '#1999b3' attr: 'b' }
|
||||
shape_table: { fg: '#3d62f5' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3d62f5' attr: 'u' }
|
||||
shape_variable: '#ad2bee'
|
||||
|
||||
foreground: '#8ca68c'
|
||||
background: '#131513'
|
||||
cursor: '#8ca68c'
|
||||
|
||||
empty: '#3d62f5'
|
||||
header: { fg: '#29a329' attr: 'b' }
|
||||
hints: '#687d68'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#29a329' attr: 'b' }
|
||||
search_result: { fg: '#e6193c' bg: '#8ca68c' }
|
||||
separator: '#8ca68c'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6679cc'
|
||||
block: '#3d8fd1'
|
||||
cell-path: '#5e6687'
|
||||
closure: '#22a2c9'
|
||||
custom: '#202746'
|
||||
duration: '#c08b30'
|
||||
float: '#c94922'
|
||||
glob: '#202746'
|
||||
int: '#6679cc'
|
||||
list: '#22a2c9'
|
||||
nothing: '#c94922'
|
||||
range: '#c08b30'
|
||||
record: '#22a2c9'
|
||||
string: '#ac9739'
|
||||
|
||||
bool: {|| if $in { '#22a2c9' } else { '#c08b30' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#c94922' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#c94922'
|
||||
} else if $in < 1day {
|
||||
'#c08b30'
|
||||
} else if $in < 3day {
|
||||
'#ac9739'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#ac9739' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#22a2c9'
|
||||
} else if $in < 52wk {
|
||||
'#3d8fd1'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#5e6687'
|
||||
} else if $e < 1mb {
|
||||
'#22a2c9'
|
||||
} else {{ fg: '#3d8fd1' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6679cc' attr: 'b' }
|
||||
shape_binary: { fg: '#6679cc' attr: 'b' }
|
||||
shape_block: { fg: '#3d8fd1' attr: 'b' }
|
||||
shape_bool: '#22a2c9'
|
||||
shape_closure: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_custom: '#ac9739'
|
||||
shape_datetime: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_directory: '#22a2c9'
|
||||
shape_external: '#22a2c9'
|
||||
shape_external_resolved: '#22a2c9'
|
||||
shape_externalarg: { fg: '#ac9739' attr: 'b' }
|
||||
shape_filepath: '#22a2c9'
|
||||
shape_flag: { fg: '#3d8fd1' attr: 'b' }
|
||||
shape_float: { fg: '#c94922' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_globpattern: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_int: { fg: '#6679cc' attr: 'b' }
|
||||
shape_internalcall: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_keyword: { fg: '#6679cc' attr: 'b' }
|
||||
shape_list: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_literal: '#3d8fd1'
|
||||
shape_match_pattern: '#ac9739'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#c94922'
|
||||
shape_operator: '#c08b30'
|
||||
shape_or: { fg: '#6679cc' attr: 'b' }
|
||||
shape_pipe: { fg: '#6679cc' attr: 'b' }
|
||||
shape_range: { fg: '#c08b30' attr: 'b' }
|
||||
shape_raw_string: { fg: '#202746' attr: 'b' }
|
||||
shape_record: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_redirection: { fg: '#6679cc' attr: 'b' }
|
||||
shape_signature: { fg: '#ac9739' attr: 'b' }
|
||||
shape_string: '#ac9739'
|
||||
shape_string_interpolation: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_table: { fg: '#3d8fd1' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3d8fd1' attr: 'u' }
|
||||
shape_variable: '#6679cc'
|
||||
|
||||
foreground: '#5e6687'
|
||||
background: '#f5f7ff'
|
||||
cursor: '#5e6687'
|
||||
|
||||
empty: '#3d8fd1'
|
||||
header: { fg: '#ac9739' attr: 'b' }
|
||||
hints: '#898ea4'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#ac9739' attr: 'b' }
|
||||
search_result: { fg: '#c94922' bg: '#5e6687' }
|
||||
separator: '#5e6687'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#6679cc'
|
||||
block: '#3d8fd1'
|
||||
cell-path: '#979db4'
|
||||
closure: '#22a2c9'
|
||||
custom: '#f5f7ff'
|
||||
duration: '#c08b30'
|
||||
float: '#c94922'
|
||||
glob: '#f5f7ff'
|
||||
int: '#6679cc'
|
||||
list: '#22a2c9'
|
||||
nothing: '#c94922'
|
||||
range: '#c08b30'
|
||||
record: '#22a2c9'
|
||||
string: '#ac9739'
|
||||
|
||||
bool: {|| if $in { '#22a2c9' } else { '#c08b30' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#c94922' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#c94922'
|
||||
} else if $in < 1day {
|
||||
'#c08b30'
|
||||
} else if $in < 3day {
|
||||
'#ac9739'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#ac9739' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#22a2c9'
|
||||
} else if $in < 52wk {
|
||||
'#3d8fd1'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#979db4'
|
||||
} else if $e < 1mb {
|
||||
'#22a2c9'
|
||||
} else {{ fg: '#3d8fd1' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#6679cc' attr: 'b' }
|
||||
shape_binary: { fg: '#6679cc' attr: 'b' }
|
||||
shape_block: { fg: '#3d8fd1' attr: 'b' }
|
||||
shape_bool: '#22a2c9'
|
||||
shape_closure: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_custom: '#ac9739'
|
||||
shape_datetime: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_directory: '#22a2c9'
|
||||
shape_external: '#22a2c9'
|
||||
shape_external_resolved: '#22a2c9'
|
||||
shape_externalarg: { fg: '#ac9739' attr: 'b' }
|
||||
shape_filepath: '#22a2c9'
|
||||
shape_flag: { fg: '#3d8fd1' attr: 'b' }
|
||||
shape_float: { fg: '#c94922' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_globpattern: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_int: { fg: '#6679cc' attr: 'b' }
|
||||
shape_internalcall: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_keyword: { fg: '#6679cc' attr: 'b' }
|
||||
shape_list: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_literal: '#3d8fd1'
|
||||
shape_match_pattern: '#ac9739'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#c94922'
|
||||
shape_operator: '#c08b30'
|
||||
shape_or: { fg: '#6679cc' attr: 'b' }
|
||||
shape_pipe: { fg: '#6679cc' attr: 'b' }
|
||||
shape_range: { fg: '#c08b30' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f5f7ff' attr: 'b' }
|
||||
shape_record: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_redirection: { fg: '#6679cc' attr: 'b' }
|
||||
shape_signature: { fg: '#ac9739' attr: 'b' }
|
||||
shape_string: '#ac9739'
|
||||
shape_string_interpolation: { fg: '#22a2c9' attr: 'b' }
|
||||
shape_table: { fg: '#3d8fd1' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3d8fd1' attr: 'u' }
|
||||
shape_variable: '#6679cc'
|
||||
|
||||
foreground: '#979db4'
|
||||
background: '#202746'
|
||||
cursor: '#979db4'
|
||||
|
||||
empty: '#3d8fd1'
|
||||
header: { fg: '#ac9739' attr: 'b' }
|
||||
hints: '#6b7394'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#ac9739' attr: 'b' }
|
||||
search_result: { fg: '#c94922' bg: '#979db4' }
|
||||
separator: '#979db4'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#9a70a4'
|
||||
block: '#5dd7b9'
|
||||
cell-path: '#a1a19a'
|
||||
closure: '#14747e'
|
||||
custom: '#fafaf8'
|
||||
duration: '#ffcc1b'
|
||||
float: '#ff5a67'
|
||||
glob: '#fafaf8'
|
||||
int: '#9a70a4'
|
||||
list: '#14747e'
|
||||
nothing: '#ff5a67'
|
||||
range: '#ffcc1b'
|
||||
record: '#14747e'
|
||||
string: '#7fc06e'
|
||||
|
||||
bool: {|| if $in { '#14747e' } else { '#ffcc1b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff5a67' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff5a67'
|
||||
} else if $in < 1day {
|
||||
'#ffcc1b'
|
||||
} else if $in < 3day {
|
||||
'#7fc06e'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7fc06e' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#14747e'
|
||||
} else if $in < 52wk {
|
||||
'#5dd7b9'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a1a19a'
|
||||
} else if $e < 1mb {
|
||||
'#14747e'
|
||||
} else {{ fg: '#5dd7b9' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_binary: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_block: { fg: '#5dd7b9' attr: 'b' }
|
||||
shape_bool: '#14747e'
|
||||
shape_closure: { fg: '#14747e' attr: 'b' }
|
||||
shape_custom: '#7fc06e'
|
||||
shape_datetime: { fg: '#14747e' attr: 'b' }
|
||||
shape_directory: '#14747e'
|
||||
shape_external: '#14747e'
|
||||
shape_external_resolved: '#14747e'
|
||||
shape_externalarg: { fg: '#7fc06e' attr: 'b' }
|
||||
shape_filepath: '#14747e'
|
||||
shape_flag: { fg: '#5dd7b9' attr: 'b' }
|
||||
shape_float: { fg: '#ff5a67' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#14747e' attr: 'b' }
|
||||
shape_globpattern: { fg: '#14747e' attr: 'b' }
|
||||
shape_int: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_internalcall: { fg: '#14747e' attr: 'b' }
|
||||
shape_keyword: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_list: { fg: '#14747e' attr: 'b' }
|
||||
shape_literal: '#5dd7b9'
|
||||
shape_match_pattern: '#7fc06e'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff5a67'
|
||||
shape_operator: '#ffcc1b'
|
||||
shape_or: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_pipe: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_range: { fg: '#ffcc1b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#fafaf8' attr: 'b' }
|
||||
shape_record: { fg: '#14747e' attr: 'b' }
|
||||
shape_redirection: { fg: '#9a70a4' attr: 'b' }
|
||||
shape_signature: { fg: '#7fc06e' attr: 'b' }
|
||||
shape_string: '#7fc06e'
|
||||
shape_string_interpolation: { fg: '#14747e' attr: 'b' }
|
||||
shape_table: { fg: '#5dd7b9' attr: 'b' }
|
||||
shape_vardecl: { fg: '#5dd7b9' attr: 'u' }
|
||||
shape_variable: '#9a70a4'
|
||||
|
||||
foreground: '#a1a19a'
|
||||
background: '#002635'
|
||||
cursor: '#a1a19a'
|
||||
|
||||
empty: '#5dd7b9'
|
||||
header: { fg: '#7fc06e' attr: 'b' }
|
||||
hints: '#6c8b91'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7fc06e' attr: 'b' }
|
||||
search_result: { fg: '#ff5a67' bg: '#a1a19a' }
|
||||
separator: '#a1a19a'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#950095'
|
||||
block: '#2f5af3'
|
||||
cell-path: '#bbbbbb'
|
||||
closure: '#3e953a'
|
||||
custom: '#ffffff'
|
||||
duration: '#d2b67b'
|
||||
float: '#de3d35'
|
||||
glob: '#ffffff'
|
||||
int: '#950095'
|
||||
list: '#3e953a'
|
||||
nothing: '#de3d35'
|
||||
range: '#d2b67b'
|
||||
record: '#3e953a'
|
||||
string: '#3e953a'
|
||||
|
||||
bool: {|| if $in { '#3e953a' } else { '#d2b67b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#de3d35' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#de3d35'
|
||||
} else if $in < 1day {
|
||||
'#d2b67b'
|
||||
} else if $in < 3day {
|
||||
'#3e953a'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#3e953a' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#3e953a'
|
||||
} else if $in < 52wk {
|
||||
'#2f5af3'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bbbbbb'
|
||||
} else if $e < 1mb {
|
||||
'#3e953a'
|
||||
} else {{ fg: '#2f5af3' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#950095' attr: 'b' }
|
||||
shape_binary: { fg: '#950095' attr: 'b' }
|
||||
shape_block: { fg: '#2f5af3' attr: 'b' }
|
||||
shape_bool: '#3e953a'
|
||||
shape_closure: { fg: '#3e953a' attr: 'b' }
|
||||
shape_custom: '#3e953a'
|
||||
shape_datetime: { fg: '#3e953a' attr: 'b' }
|
||||
shape_directory: '#3e953a'
|
||||
shape_external: '#3e953a'
|
||||
shape_external_resolved: '#3e953a'
|
||||
shape_externalarg: { fg: '#3e953a' attr: 'b' }
|
||||
shape_filepath: '#3e953a'
|
||||
shape_flag: { fg: '#2f5af3' attr: 'b' }
|
||||
shape_float: { fg: '#de3d35' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#3e953a' attr: 'b' }
|
||||
shape_globpattern: { fg: '#3e953a' attr: 'b' }
|
||||
shape_int: { fg: '#950095' attr: 'b' }
|
||||
shape_internalcall: { fg: '#3e953a' attr: 'b' }
|
||||
shape_keyword: { fg: '#950095' attr: 'b' }
|
||||
shape_list: { fg: '#3e953a' attr: 'b' }
|
||||
shape_literal: '#2f5af3'
|
||||
shape_match_pattern: '#3e953a'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#de3d35'
|
||||
shape_operator: '#d2b67b'
|
||||
shape_or: { fg: '#950095' attr: 'b' }
|
||||
shape_pipe: { fg: '#950095' attr: 'b' }
|
||||
shape_range: { fg: '#d2b67b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#3e953a' attr: 'b' }
|
||||
shape_redirection: { fg: '#950095' attr: 'b' }
|
||||
shape_signature: { fg: '#3e953a' attr: 'b' }
|
||||
shape_string: '#3e953a'
|
||||
shape_string_interpolation: { fg: '#3e953a' attr: 'b' }
|
||||
shape_table: { fg: '#2f5af3' attr: 'b' }
|
||||
shape_vardecl: { fg: '#2f5af3' attr: 'u' }
|
||||
shape_variable: '#950095'
|
||||
|
||||
foreground: '#2a2b33'
|
||||
background: '#f8f8f8'
|
||||
cursor: '#bbbbbb'
|
||||
|
||||
empty: '#2f5af3'
|
||||
header: { fg: '#3e953a' attr: 'b' }
|
||||
hints: '#000000'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#3e953a' attr: 'b' }
|
||||
search_result: { fg: '#de3d35' bg: '#bbbbbb' }
|
||||
separator: '#bbbbbb'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b9b6fc'
|
||||
block: '#85befd'
|
||||
cell-path: '#e0e0e0'
|
||||
closure: '#85befd'
|
||||
custom: '#e0e0e0'
|
||||
duration: '#ffd7b1'
|
||||
float: '#fd5ff1'
|
||||
glob: '#e0e0e0'
|
||||
int: '#b9b6fc'
|
||||
list: '#85befd'
|
||||
nothing: '#fd5ff1'
|
||||
range: '#ffd7b1'
|
||||
record: '#85befd'
|
||||
string: '#87c38a'
|
||||
|
||||
bool: {|| if $in { '#85befd' } else { '#ffd7b1' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#fd5ff1' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#fd5ff1'
|
||||
} else if $in < 1day {
|
||||
'#ffd7b1'
|
||||
} else if $in < 3day {
|
||||
'#87c38a'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#87c38a' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#85befd'
|
||||
} else if $in < 52wk {
|
||||
'#85befd'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#e0e0e0'
|
||||
} else if $e < 1mb {
|
||||
'#85befd'
|
||||
} else {{ fg: '#85befd' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_binary: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_block: { fg: '#85befd' attr: 'b' }
|
||||
shape_bool: '#85befd'
|
||||
shape_closure: { fg: '#85befd' attr: 'b' }
|
||||
shape_custom: '#87c38a'
|
||||
shape_datetime: { fg: '#85befd' attr: 'b' }
|
||||
shape_directory: '#85befd'
|
||||
shape_external: '#85befd'
|
||||
shape_external_resolved: '#85befd'
|
||||
shape_externalarg: { fg: '#87c38a' attr: 'b' }
|
||||
shape_filepath: '#85befd'
|
||||
shape_flag: { fg: '#85befd' attr: 'b' }
|
||||
shape_float: { fg: '#fd5ff1' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#85befd' attr: 'b' }
|
||||
shape_globpattern: { fg: '#85befd' attr: 'b' }
|
||||
shape_int: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_internalcall: { fg: '#85befd' attr: 'b' }
|
||||
shape_keyword: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_list: { fg: '#85befd' attr: 'b' }
|
||||
shape_literal: '#85befd'
|
||||
shape_match_pattern: '#87c38a'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#fd5ff1'
|
||||
shape_operator: '#ffd7b1'
|
||||
shape_or: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_pipe: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_range: { fg: '#ffd7b1' attr: 'b' }
|
||||
shape_raw_string: { fg: '#e0e0e0' attr: 'b' }
|
||||
shape_record: { fg: '#85befd' attr: 'b' }
|
||||
shape_redirection: { fg: '#b9b6fc' attr: 'b' }
|
||||
shape_signature: { fg: '#87c38a' attr: 'b' }
|
||||
shape_string: '#87c38a'
|
||||
shape_string_interpolation: { fg: '#85befd' attr: 'b' }
|
||||
shape_table: { fg: '#85befd' attr: 'b' }
|
||||
shape_vardecl: { fg: '#85befd' attr: 'u' }
|
||||
shape_variable: '#b9b6fc'
|
||||
|
||||
foreground: '#c5c8c6'
|
||||
background: '#161719'
|
||||
cursor: '#c5c8c6'
|
||||
|
||||
empty: '#85befd'
|
||||
header: { fg: '#87c38a' attr: 'b' }
|
||||
hints: '#000000'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#87c38a' attr: 'b' }
|
||||
search_result: { fg: '#fd5ff1' bg: '#e0e0e0' }
|
||||
separator: '#e0e0e0'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#f07078'
|
||||
block: '#41a6d9'
|
||||
cell-path: '#ffffff'
|
||||
closure: '#4cbe99'
|
||||
custom: '#ffffff'
|
||||
duration: '#f19618'
|
||||
float: '#ff6565'
|
||||
glob: '#ffffff'
|
||||
int: '#f07078'
|
||||
list: '#4cbe99'
|
||||
nothing: '#ff3333'
|
||||
range: '#f19618'
|
||||
record: '#4cbe99'
|
||||
string: '#86b200'
|
||||
|
||||
bool: {|| if $in { '#7ff0cb' } else { '#f19618' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff3333' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff3333'
|
||||
} else if $in < 1day {
|
||||
'#f19618'
|
||||
} else if $in < 3day {
|
||||
'#86b200'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#86b200' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#4cbe99'
|
||||
} else if $in < 52wk {
|
||||
'#41a6d9'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ffffff'
|
||||
} else if $e < 1mb {
|
||||
'#4cbe99'
|
||||
} else {{ fg: '#41a6d9' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#f07078' attr: 'b' }
|
||||
shape_binary: { fg: '#f07078' attr: 'b' }
|
||||
shape_block: { fg: '#41a6d9' attr: 'b' }
|
||||
shape_bool: '#7ff0cb'
|
||||
shape_closure: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_custom: '#86b200'
|
||||
shape_datetime: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_directory: '#4cbe99'
|
||||
shape_external: '#4cbe99'
|
||||
shape_external_resolved: '#7ff0cb'
|
||||
shape_externalarg: { fg: '#86b200' attr: 'b' }
|
||||
shape_filepath: '#4cbe99'
|
||||
shape_flag: { fg: '#41a6d9' attr: 'b' }
|
||||
shape_float: { fg: '#ff6565' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_globpattern: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_int: { fg: '#f07078' attr: 'b' }
|
||||
shape_internalcall: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_keyword: { fg: '#f07078' attr: 'b' }
|
||||
shape_list: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_literal: '#41a6d9'
|
||||
shape_match_pattern: '#86b200'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff3333'
|
||||
shape_operator: '#f19618'
|
||||
shape_or: { fg: '#f07078' attr: 'b' }
|
||||
shape_pipe: { fg: '#f07078' attr: 'b' }
|
||||
shape_range: { fg: '#f19618' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_redirection: { fg: '#f07078' attr: 'b' }
|
||||
shape_signature: { fg: '#86b200' attr: 'b' }
|
||||
shape_string: '#86b200'
|
||||
shape_string_interpolation: { fg: '#4cbe99' attr: 'b' }
|
||||
shape_table: { fg: '#41a6d9' attr: 'b' }
|
||||
shape_vardecl: { fg: '#41a6d9' attr: 'u' }
|
||||
shape_variable: '#f07078'
|
||||
|
||||
foreground: '#5b6673'
|
||||
background: '#fafafa'
|
||||
cursor: '#ff6900'
|
||||
|
||||
empty: '#41a6d9'
|
||||
header: { fg: '#86b200' attr: 'b' }
|
||||
hints: '#323232'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#86b200' attr: 'b' }
|
||||
search_result: { fg: '#ff3333' bg: '#ffffff' }
|
||||
separator: '#ffffff'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#cfbafa'
|
||||
block: '#6dcbfa'
|
||||
cell-path: '#c7c7c7'
|
||||
closure: '#90e1c6'
|
||||
custom: '#ffffff'
|
||||
duration: '#fad07b'
|
||||
float: '#f28779'
|
||||
glob: '#ffffff'
|
||||
int: '#cfbafa'
|
||||
list: '#90e1c6'
|
||||
nothing: '#ed8274'
|
||||
range: '#fad07b'
|
||||
record: '#90e1c6'
|
||||
string: '#a6cc70'
|
||||
|
||||
bool: {|| if $in { '#95e6cb' } else { '#fad07b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ed8274' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ed8274'
|
||||
} else if $in < 1day {
|
||||
'#fad07b'
|
||||
} else if $in < 3day {
|
||||
'#a6cc70'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a6cc70' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#90e1c6'
|
||||
} else if $in < 52wk {
|
||||
'#6dcbfa'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c7c7c7'
|
||||
} else if $e < 1mb {
|
||||
'#90e1c6'
|
||||
} else {{ fg: '#6dcbfa' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_binary: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_block: { fg: '#6dcbfa' attr: 'b' }
|
||||
shape_bool: '#95e6cb'
|
||||
shape_closure: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_custom: '#a6cc70'
|
||||
shape_datetime: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_directory: '#90e1c6'
|
||||
shape_external: '#90e1c6'
|
||||
shape_external_resolved: '#95e6cb'
|
||||
shape_externalarg: { fg: '#a6cc70' attr: 'b' }
|
||||
shape_filepath: '#90e1c6'
|
||||
shape_flag: { fg: '#6dcbfa' attr: 'b' }
|
||||
shape_float: { fg: '#f28779' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_int: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_internalcall: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_keyword: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_list: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_literal: '#6dcbfa'
|
||||
shape_match_pattern: '#a6cc70'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ed8274'
|
||||
shape_operator: '#fad07b'
|
||||
shape_or: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_pipe: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_range: { fg: '#fad07b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_redirection: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_signature: { fg: '#a6cc70' attr: 'b' }
|
||||
shape_string: '#a6cc70'
|
||||
shape_string_interpolation: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_table: { fg: '#6dcbfa' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6dcbfa' attr: 'u' }
|
||||
shape_variable: '#cfbafa'
|
||||
|
||||
foreground: '#d9d7ce'
|
||||
background: '#212733'
|
||||
cursor: '#d9d7ce'
|
||||
|
||||
empty: '#6dcbfa'
|
||||
header: { fg: '#a6cc70' attr: 'b' }
|
||||
hints: '#686868'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a6cc70' attr: 'b' }
|
||||
search_result: { fg: '#ed8274' bg: '#c7c7c7' }
|
||||
separator: '#c7c7c7'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#cfbafa'
|
||||
block: '#6dcbfa'
|
||||
cell-path: '#c7c7c7'
|
||||
closure: '#90e1c6'
|
||||
custom: '#ffffff'
|
||||
duration: '#fad07b'
|
||||
float: '#f28779'
|
||||
glob: '#ffffff'
|
||||
int: '#cfbafa'
|
||||
list: '#90e1c6'
|
||||
nothing: '#ed8274'
|
||||
range: '#fad07b'
|
||||
record: '#90e1c6'
|
||||
string: '#a6cc70'
|
||||
|
||||
bool: {|| if $in { '#95e6cb' } else { '#fad07b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ed8274' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ed8274'
|
||||
} else if $in < 1day {
|
||||
'#fad07b'
|
||||
} else if $in < 3day {
|
||||
'#a6cc70'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a6cc70' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#90e1c6'
|
||||
} else if $in < 52wk {
|
||||
'#6dcbfa'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c7c7c7'
|
||||
} else if $e < 1mb {
|
||||
'#90e1c6'
|
||||
} else {{ fg: '#6dcbfa' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_binary: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_block: { fg: '#6dcbfa' attr: 'b' }
|
||||
shape_bool: '#95e6cb'
|
||||
shape_closure: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_custom: '#a6cc70'
|
||||
shape_datetime: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_directory: '#90e1c6'
|
||||
shape_external: '#90e1c6'
|
||||
shape_external_resolved: '#95e6cb'
|
||||
shape_externalarg: { fg: '#a6cc70' attr: 'b' }
|
||||
shape_filepath: '#90e1c6'
|
||||
shape_flag: { fg: '#6dcbfa' attr: 'b' }
|
||||
shape_float: { fg: '#f28779' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_int: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_internalcall: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_keyword: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_list: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_literal: '#6dcbfa'
|
||||
shape_match_pattern: '#a6cc70'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ed8274'
|
||||
shape_operator: '#fad07b'
|
||||
shape_or: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_pipe: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_range: { fg: '#fad07b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_redirection: { fg: '#cfbafa' attr: 'b' }
|
||||
shape_signature: { fg: '#a6cc70' attr: 'b' }
|
||||
shape_string: '#a6cc70'
|
||||
shape_string_interpolation: { fg: '#90e1c6' attr: 'b' }
|
||||
shape_table: { fg: '#6dcbfa' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6dcbfa' attr: 'u' }
|
||||
shape_variable: '#cfbafa'
|
||||
|
||||
foreground: '#d9d7ce'
|
||||
background: '#212733'
|
||||
cursor: '#ffcc66'
|
||||
|
||||
empty: '#6dcbfa'
|
||||
header: { fg: '#a6cc70' attr: 'b' }
|
||||
hints: '#686868'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a6cc70' attr: 'b' }
|
||||
search_result: { fg: '#ed8274' bg: '#c7c7c7' }
|
||||
separator: '#c7c7c7'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#f07078'
|
||||
block: '#36a3d9'
|
||||
cell-path: '#ffffff'
|
||||
closure: '#95e5cb'
|
||||
custom: '#ffffff'
|
||||
duration: '#e6c446'
|
||||
float: '#ff6565'
|
||||
glob: '#ffffff'
|
||||
int: '#f07078'
|
||||
list: '#95e5cb'
|
||||
nothing: '#ff3333'
|
||||
range: '#e6c446'
|
||||
record: '#95e5cb'
|
||||
string: '#b8cc52'
|
||||
|
||||
bool: {|| if $in { '#c7fffc' } else { '#e6c446' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff3333' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff3333'
|
||||
} else if $in < 1day {
|
||||
'#e6c446'
|
||||
} else if $in < 3day {
|
||||
'#b8cc52'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#b8cc52' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#95e5cb'
|
||||
} else if $in < 52wk {
|
||||
'#36a3d9'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ffffff'
|
||||
} else if $e < 1mb {
|
||||
'#95e5cb'
|
||||
} else {{ fg: '#36a3d9' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#f07078' attr: 'b' }
|
||||
shape_binary: { fg: '#f07078' attr: 'b' }
|
||||
shape_block: { fg: '#36a3d9' attr: 'b' }
|
||||
shape_bool: '#c7fffc'
|
||||
shape_closure: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_custom: '#b8cc52'
|
||||
shape_datetime: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_directory: '#95e5cb'
|
||||
shape_external: '#95e5cb'
|
||||
shape_external_resolved: '#c7fffc'
|
||||
shape_externalarg: { fg: '#b8cc52' attr: 'b' }
|
||||
shape_filepath: '#95e5cb'
|
||||
shape_flag: { fg: '#36a3d9' attr: 'b' }
|
||||
shape_float: { fg: '#ff6565' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_globpattern: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_int: { fg: '#f07078' attr: 'b' }
|
||||
shape_internalcall: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_keyword: { fg: '#f07078' attr: 'b' }
|
||||
shape_list: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_literal: '#36a3d9'
|
||||
shape_match_pattern: '#b8cc52'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff3333'
|
||||
shape_operator: '#e6c446'
|
||||
shape_or: { fg: '#f07078' attr: 'b' }
|
||||
shape_pipe: { fg: '#f07078' attr: 'b' }
|
||||
shape_range: { fg: '#e6c446' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_redirection: { fg: '#f07078' attr: 'b' }
|
||||
shape_signature: { fg: '#b8cc52' attr: 'b' }
|
||||
shape_string: '#b8cc52'
|
||||
shape_string_interpolation: { fg: '#95e5cb' attr: 'b' }
|
||||
shape_table: { fg: '#36a3d9' attr: 'b' }
|
||||
shape_vardecl: { fg: '#36a3d9' attr: 'u' }
|
||||
shape_variable: '#f07078'
|
||||
|
||||
foreground: '#e5e1cf'
|
||||
background: '#0e1419'
|
||||
cursor: '#f19618'
|
||||
|
||||
empty: '#36a3d9'
|
||||
header: { fg: '#b8cc52' attr: 'b' }
|
||||
hints: '#323232'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#b8cc52' attr: 'b' }
|
||||
search_result: { fg: '#ff3333' bg: '#ffffff' }
|
||||
separator: '#ffffff'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a46dac'
|
||||
block: '#6d74ac'
|
||||
cell-path: '#e6e6e6'
|
||||
closure: '#6daca4'
|
||||
custom: '#ffffff'
|
||||
duration: '#aca46d'
|
||||
float: '#d6b8bc'
|
||||
glob: '#ffffff'
|
||||
int: '#a46dac'
|
||||
list: '#6daca4'
|
||||
nothing: '#ac6d74'
|
||||
range: '#aca46d'
|
||||
record: '#6daca4'
|
||||
string: '#74ac6d'
|
||||
|
||||
bool: {|| if $in { '#b8d6d3' } else { '#aca46d' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ac6d74' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ac6d74'
|
||||
} else if $in < 1day {
|
||||
'#aca46d'
|
||||
} else if $in < 3day {
|
||||
'#74ac6d'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#74ac6d' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#6daca4'
|
||||
} else if $in < 52wk {
|
||||
'#6d74ac'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#e6e6e6'
|
||||
} else if $e < 1mb {
|
||||
'#6daca4'
|
||||
} else {{ fg: '#6d74ac' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a46dac' attr: 'b' }
|
||||
shape_binary: { fg: '#a46dac' attr: 'b' }
|
||||
shape_block: { fg: '#6d74ac' attr: 'b' }
|
||||
shape_bool: '#b8d6d3'
|
||||
shape_closure: { fg: '#6daca4' attr: 'b' }
|
||||
shape_custom: '#74ac6d'
|
||||
shape_datetime: { fg: '#6daca4' attr: 'b' }
|
||||
shape_directory: '#6daca4'
|
||||
shape_external: '#6daca4'
|
||||
shape_external_resolved: '#b8d6d3'
|
||||
shape_externalarg: { fg: '#74ac6d' attr: 'b' }
|
||||
shape_filepath: '#6daca4'
|
||||
shape_flag: { fg: '#6d74ac' attr: 'b' }
|
||||
shape_float: { fg: '#d6b8bc' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#6daca4' attr: 'b' }
|
||||
shape_globpattern: { fg: '#6daca4' attr: 'b' }
|
||||
shape_int: { fg: '#a46dac' attr: 'b' }
|
||||
shape_internalcall: { fg: '#6daca4' attr: 'b' }
|
||||
shape_keyword: { fg: '#a46dac' attr: 'b' }
|
||||
shape_list: { fg: '#6daca4' attr: 'b' }
|
||||
shape_literal: '#6d74ac'
|
||||
shape_match_pattern: '#74ac6d'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ac6d74'
|
||||
shape_operator: '#aca46d'
|
||||
shape_or: { fg: '#a46dac' attr: 'b' }
|
||||
shape_pipe: { fg: '#a46dac' attr: 'b' }
|
||||
shape_range: { fg: '#aca46d' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#6daca4' attr: 'b' }
|
||||
shape_redirection: { fg: '#a46dac' attr: 'b' }
|
||||
shape_signature: { fg: '#74ac6d' attr: 'b' }
|
||||
shape_string: '#74ac6d'
|
||||
shape_string_interpolation: { fg: '#6daca4' attr: 'b' }
|
||||
shape_table: { fg: '#6d74ac' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6d74ac' attr: 'u' }
|
||||
shape_variable: '#a46dac'
|
||||
|
||||
foreground: '#d9e6f2'
|
||||
background: '#09111a'
|
||||
cursor: '#d9e6f2'
|
||||
|
||||
empty: '#6d74ac'
|
||||
header: { fg: '#74ac6d' attr: 'b' }
|
||||
hints: '#262626'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#74ac6d' attr: 'b' }
|
||||
search_result: { fg: '#ac6d74' bg: '#e6e6e6' }
|
||||
separator: '#e6e6e6'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#737271'
|
||||
block: '#737074'
|
||||
cell-path: '#c5c5be'
|
||||
closure: '#615f5e'
|
||||
custom: '#dadad5'
|
||||
duration: '#f3fd21'
|
||||
float: '#fff68d'
|
||||
glob: '#dadad5'
|
||||
int: '#737271'
|
||||
list: '#615f5e'
|
||||
nothing: '#e6db43'
|
||||
range: '#f3fd21'
|
||||
record: '#615f5e'
|
||||
string: '#c8be46'
|
||||
|
||||
bool: {|| if $in { '#a2a2a5' } else { '#f3fd21' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#e6db43' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#e6db43'
|
||||
} else if $in < 1day {
|
||||
'#f3fd21'
|
||||
} else if $in < 3day {
|
||||
'#c8be46'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#c8be46' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#615f5e'
|
||||
} else if $in < 52wk {
|
||||
'#737074'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c5c5be'
|
||||
} else if $e < 1mb {
|
||||
'#615f5e'
|
||||
} else {{ fg: '#737074' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#737271' attr: 'b' }
|
||||
shape_binary: { fg: '#737271' attr: 'b' }
|
||||
shape_block: { fg: '#737074' attr: 'b' }
|
||||
shape_bool: '#a2a2a5'
|
||||
shape_closure: { fg: '#615f5e' attr: 'b' }
|
||||
shape_custom: '#c8be46'
|
||||
shape_datetime: { fg: '#615f5e' attr: 'b' }
|
||||
shape_directory: '#615f5e'
|
||||
shape_external: '#615f5e'
|
||||
shape_external_resolved: '#a2a2a5'
|
||||
shape_externalarg: { fg: '#c8be46' attr: 'b' }
|
||||
shape_filepath: '#615f5e'
|
||||
shape_flag: { fg: '#737074' attr: 'b' }
|
||||
shape_float: { fg: '#fff68d' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#615f5e' attr: 'b' }
|
||||
shape_globpattern: { fg: '#615f5e' attr: 'b' }
|
||||
shape_int: { fg: '#737271' attr: 'b' }
|
||||
shape_internalcall: { fg: '#615f5e' attr: 'b' }
|
||||
shape_keyword: { fg: '#737271' attr: 'b' }
|
||||
shape_list: { fg: '#615f5e' attr: 'b' }
|
||||
shape_literal: '#737074'
|
||||
shape_match_pattern: '#c8be46'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#e6db43'
|
||||
shape_operator: '#f3fd21'
|
||||
shape_or: { fg: '#737271' attr: 'b' }
|
||||
shape_pipe: { fg: '#737271' attr: 'b' }
|
||||
shape_range: { fg: '#f3fd21' attr: 'b' }
|
||||
shape_raw_string: { fg: '#dadad5' attr: 'b' }
|
||||
shape_record: { fg: '#615f5e' attr: 'b' }
|
||||
shape_redirection: { fg: '#737271' attr: 'b' }
|
||||
shape_signature: { fg: '#c8be46' attr: 'b' }
|
||||
shape_string: '#c8be46'
|
||||
shape_string_interpolation: { fg: '#615f5e' attr: 'b' }
|
||||
shape_table: { fg: '#737074' attr: 'b' }
|
||||
shape_vardecl: { fg: '#737074' attr: 'u' }
|
||||
shape_variable: '#737271'
|
||||
|
||||
foreground: '#6e6e6e'
|
||||
background: '#1b1d1e'
|
||||
cursor: '#fcee0b'
|
||||
|
||||
empty: '#737074'
|
||||
header: { fg: '#c8be46' attr: 'b' }
|
||||
hints: '#505354'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#c8be46' attr: 'b' }
|
||||
search_result: { fg: '#e6db43' bg: '#c5c5be' }
|
||||
separator: '#c5c5be'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#97522c'
|
||||
block: '#426a79'
|
||||
cell-path: '#968c83'
|
||||
closure: '#989a9c'
|
||||
custom: '#d5ccba'
|
||||
duration: '#eaa549'
|
||||
float: '#be100e'
|
||||
glob: '#d5ccba'
|
||||
int: '#97522c'
|
||||
list: '#989a9c'
|
||||
nothing: '#be100e'
|
||||
range: '#eaa549'
|
||||
record: '#989a9c'
|
||||
string: '#858162'
|
||||
|
||||
bool: {|| if $in { '#989a9c' } else { '#eaa549' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#be100e' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#be100e'
|
||||
} else if $in < 1day {
|
||||
'#eaa549'
|
||||
} else if $in < 3day {
|
||||
'#858162'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#858162' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#989a9c'
|
||||
} else if $in < 52wk {
|
||||
'#426a79'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#968c83'
|
||||
} else if $e < 1mb {
|
||||
'#989a9c'
|
||||
} else {{ fg: '#426a79' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#97522c' attr: 'b' }
|
||||
shape_binary: { fg: '#97522c' attr: 'b' }
|
||||
shape_block: { fg: '#426a79' attr: 'b' }
|
||||
shape_bool: '#989a9c'
|
||||
shape_closure: { fg: '#989a9c' attr: 'b' }
|
||||
shape_custom: '#858162'
|
||||
shape_datetime: { fg: '#989a9c' attr: 'b' }
|
||||
shape_directory: '#989a9c'
|
||||
shape_external: '#989a9c'
|
||||
shape_external_resolved: '#989a9c'
|
||||
shape_externalarg: { fg: '#858162' attr: 'b' }
|
||||
shape_filepath: '#989a9c'
|
||||
shape_flag: { fg: '#426a79' attr: 'b' }
|
||||
shape_float: { fg: '#be100e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#989a9c' attr: 'b' }
|
||||
shape_globpattern: { fg: '#989a9c' attr: 'b' }
|
||||
shape_int: { fg: '#97522c' attr: 'b' }
|
||||
shape_internalcall: { fg: '#989a9c' attr: 'b' }
|
||||
shape_keyword: { fg: '#97522c' attr: 'b' }
|
||||
shape_list: { fg: '#989a9c' attr: 'b' }
|
||||
shape_literal: '#426a79'
|
||||
shape_match_pattern: '#858162'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#be100e'
|
||||
shape_operator: '#eaa549'
|
||||
shape_or: { fg: '#97522c' attr: 'b' }
|
||||
shape_pipe: { fg: '#97522c' attr: 'b' }
|
||||
shape_range: { fg: '#eaa549' attr: 'b' }
|
||||
shape_raw_string: { fg: '#d5ccba' attr: 'b' }
|
||||
shape_record: { fg: '#989a9c' attr: 'b' }
|
||||
shape_redirection: { fg: '#97522c' attr: 'b' }
|
||||
shape_signature: { fg: '#858162' attr: 'b' }
|
||||
shape_string: '#858162'
|
||||
shape_string_interpolation: { fg: '#989a9c' attr: 'b' }
|
||||
shape_table: { fg: '#426a79' attr: 'b' }
|
||||
shape_vardecl: { fg: '#426a79' attr: 'u' }
|
||||
shape_variable: '#97522c'
|
||||
|
||||
foreground: '#45373c'
|
||||
background: '#d5ccba'
|
||||
cursor: '#45373c'
|
||||
|
||||
empty: '#426a79'
|
||||
header: { fg: '#858162' attr: 'b' }
|
||||
hints: '#5e5252'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#858162' attr: 'b' }
|
||||
search_result: { fg: '#be100e' bg: '#968c83' }
|
||||
separator: '#968c83'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#97522c'
|
||||
block: '#426a79'
|
||||
cell-path: '#968c83'
|
||||
closure: '#989a9c'
|
||||
custom: '#d5ccba'
|
||||
duration: '#eaa549'
|
||||
float: '#be100e'
|
||||
glob: '#d5ccba'
|
||||
int: '#97522c'
|
||||
list: '#989a9c'
|
||||
nothing: '#be100e'
|
||||
range: '#eaa549'
|
||||
record: '#989a9c'
|
||||
string: '#858162'
|
||||
|
||||
bool: {|| if $in { '#989a9c' } else { '#eaa549' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#be100e' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#be100e'
|
||||
} else if $in < 1day {
|
||||
'#eaa549'
|
||||
} else if $in < 3day {
|
||||
'#858162'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#858162' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#989a9c'
|
||||
} else if $in < 52wk {
|
||||
'#426a79'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#968c83'
|
||||
} else if $e < 1mb {
|
||||
'#989a9c'
|
||||
} else {{ fg: '#426a79' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#97522c' attr: 'b' }
|
||||
shape_binary: { fg: '#97522c' attr: 'b' }
|
||||
shape_block: { fg: '#426a79' attr: 'b' }
|
||||
shape_bool: '#989a9c'
|
||||
shape_closure: { fg: '#989a9c' attr: 'b' }
|
||||
shape_custom: '#858162'
|
||||
shape_datetime: { fg: '#989a9c' attr: 'b' }
|
||||
shape_directory: '#989a9c'
|
||||
shape_external: '#989a9c'
|
||||
shape_external_resolved: '#989a9c'
|
||||
shape_externalarg: { fg: '#858162' attr: 'b' }
|
||||
shape_filepath: '#989a9c'
|
||||
shape_flag: { fg: '#426a79' attr: 'b' }
|
||||
shape_float: { fg: '#be100e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#989a9c' attr: 'b' }
|
||||
shape_globpattern: { fg: '#989a9c' attr: 'b' }
|
||||
shape_int: { fg: '#97522c' attr: 'b' }
|
||||
shape_internalcall: { fg: '#989a9c' attr: 'b' }
|
||||
shape_keyword: { fg: '#97522c' attr: 'b' }
|
||||
shape_list: { fg: '#989a9c' attr: 'b' }
|
||||
shape_literal: '#426a79'
|
||||
shape_match_pattern: '#858162'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#be100e'
|
||||
shape_operator: '#eaa549'
|
||||
shape_or: { fg: '#97522c' attr: 'b' }
|
||||
shape_pipe: { fg: '#97522c' attr: 'b' }
|
||||
shape_range: { fg: '#eaa549' attr: 'b' }
|
||||
shape_raw_string: { fg: '#d5ccba' attr: 'b' }
|
||||
shape_record: { fg: '#989a9c' attr: 'b' }
|
||||
shape_redirection: { fg: '#97522c' attr: 'b' }
|
||||
shape_signature: { fg: '#858162' attr: 'b' }
|
||||
shape_string: '#858162'
|
||||
shape_string_interpolation: { fg: '#989a9c' attr: 'b' }
|
||||
shape_table: { fg: '#426a79' attr: 'b' }
|
||||
shape_vardecl: { fg: '#426a79' attr: 'u' }
|
||||
shape_variable: '#97522c'
|
||||
|
||||
foreground: '#968c83'
|
||||
background: '#20111b'
|
||||
cursor: '#968c83'
|
||||
|
||||
empty: '#426a79'
|
||||
header: { fg: '#858162' attr: 'b' }
|
||||
hints: '#5e5252'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#858162' attr: 'b' }
|
||||
search_result: { fg: '#be100e' bg: '#968c83' }
|
||||
separator: '#968c83'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#9b859d'
|
||||
block: '#5ea6ea'
|
||||
cell-path: '#8a8986'
|
||||
closure: '#afc4db'
|
||||
custom: '#baae9e'
|
||||
duration: '#f9ee98'
|
||||
float: '#cf6a4c'
|
||||
glob: '#baae9e'
|
||||
int: '#9b859d'
|
||||
list: '#afc4db'
|
||||
nothing: '#cf6a4c'
|
||||
range: '#f9ee98'
|
||||
record: '#afc4db'
|
||||
string: '#54be0d'
|
||||
|
||||
bool: {|| if $in { '#afc4db' } else { '#f9ee98' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#cf6a4c' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#cf6a4c'
|
||||
} else if $in < 1day {
|
||||
'#f9ee98'
|
||||
} else if $in < 3day {
|
||||
'#54be0d'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#54be0d' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#afc4db'
|
||||
} else if $in < 52wk {
|
||||
'#5ea6ea'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#8a8986'
|
||||
} else if $e < 1mb {
|
||||
'#afc4db'
|
||||
} else {{ fg: '#5ea6ea' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#9b859d' attr: 'b' }
|
||||
shape_binary: { fg: '#9b859d' attr: 'b' }
|
||||
shape_block: { fg: '#5ea6ea' attr: 'b' }
|
||||
shape_bool: '#afc4db'
|
||||
shape_closure: { fg: '#afc4db' attr: 'b' }
|
||||
shape_custom: '#54be0d'
|
||||
shape_datetime: { fg: '#afc4db' attr: 'b' }
|
||||
shape_directory: '#afc4db'
|
||||
shape_external: '#afc4db'
|
||||
shape_external_resolved: '#afc4db'
|
||||
shape_externalarg: { fg: '#54be0d' attr: 'b' }
|
||||
shape_filepath: '#afc4db'
|
||||
shape_flag: { fg: '#5ea6ea' attr: 'b' }
|
||||
shape_float: { fg: '#cf6a4c' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#afc4db' attr: 'b' }
|
||||
shape_globpattern: { fg: '#afc4db' attr: 'b' }
|
||||
shape_int: { fg: '#9b859d' attr: 'b' }
|
||||
shape_internalcall: { fg: '#afc4db' attr: 'b' }
|
||||
shape_keyword: { fg: '#9b859d' attr: 'b' }
|
||||
shape_list: { fg: '#afc4db' attr: 'b' }
|
||||
shape_literal: '#5ea6ea'
|
||||
shape_match_pattern: '#54be0d'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#cf6a4c'
|
||||
shape_operator: '#f9ee98'
|
||||
shape_or: { fg: '#9b859d' attr: 'b' }
|
||||
shape_pipe: { fg: '#9b859d' attr: 'b' }
|
||||
shape_range: { fg: '#f9ee98' attr: 'b' }
|
||||
shape_raw_string: { fg: '#baae9e' attr: 'b' }
|
||||
shape_record: { fg: '#afc4db' attr: 'b' }
|
||||
shape_redirection: { fg: '#9b859d' attr: 'b' }
|
||||
shape_signature: { fg: '#54be0d' attr: 'b' }
|
||||
shape_string: '#54be0d'
|
||||
shape_string_interpolation: { fg: '#afc4db' attr: 'b' }
|
||||
shape_table: { fg: '#5ea6ea' attr: 'b' }
|
||||
shape_vardecl: { fg: '#5ea6ea' attr: 'u' }
|
||||
shape_variable: '#9b859d'
|
||||
|
||||
foreground: '#8a8986'
|
||||
background: '#28211c'
|
||||
cursor: '#8a8986'
|
||||
|
||||
empty: '#5ea6ea'
|
||||
header: { fg: '#54be0d' attr: 'b' }
|
||||
hints: '#666666'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#54be0d' attr: 'b' }
|
||||
search_result: { fg: '#cf6a4c' bg: '#8a8986' }
|
||||
separator: '#8a8986'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a957ec'
|
||||
block: '#5ea2ec'
|
||||
cell-path: '#918988'
|
||||
closure: '#5eeea0'
|
||||
custom: '#f5eeec'
|
||||
duration: '#f5a255'
|
||||
float: '#f579b2'
|
||||
glob: '#f5eeec'
|
||||
int: '#a957ec'
|
||||
list: '#5eeea0'
|
||||
nothing: '#f557a0'
|
||||
range: '#f5a255'
|
||||
record: '#5eeea0'
|
||||
string: '#a9ee55'
|
||||
|
||||
bool: {|| if $in { '#81eeb2' } else { '#f5a255' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#f557a0' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#f557a0'
|
||||
} else if $in < 1day {
|
||||
'#f5a255'
|
||||
} else if $in < 3day {
|
||||
'#a9ee55'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a9ee55' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5eeea0'
|
||||
} else if $in < 52wk {
|
||||
'#5ea2ec'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#918988'
|
||||
} else if $e < 1mb {
|
||||
'#5eeea0'
|
||||
} else {{ fg: '#5ea2ec' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a957ec' attr: 'b' }
|
||||
shape_binary: { fg: '#a957ec' attr: 'b' }
|
||||
shape_block: { fg: '#5ea2ec' attr: 'b' }
|
||||
shape_bool: '#81eeb2'
|
||||
shape_closure: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_custom: '#a9ee55'
|
||||
shape_datetime: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_directory: '#5eeea0'
|
||||
shape_external: '#5eeea0'
|
||||
shape_external_resolved: '#81eeb2'
|
||||
shape_externalarg: { fg: '#a9ee55' attr: 'b' }
|
||||
shape_filepath: '#5eeea0'
|
||||
shape_flag: { fg: '#5ea2ec' attr: 'b' }
|
||||
shape_float: { fg: '#f579b2' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_int: { fg: '#a957ec' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_keyword: { fg: '#a957ec' attr: 'b' }
|
||||
shape_list: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_literal: '#5ea2ec'
|
||||
shape_match_pattern: '#a9ee55'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#f557a0'
|
||||
shape_operator: '#f5a255'
|
||||
shape_or: { fg: '#a957ec' attr: 'b' }
|
||||
shape_pipe: { fg: '#a957ec' attr: 'b' }
|
||||
shape_range: { fg: '#f5a255' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f5eeec' attr: 'b' }
|
||||
shape_record: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_redirection: { fg: '#a957ec' attr: 'b' }
|
||||
shape_signature: { fg: '#a9ee55' attr: 'b' }
|
||||
shape_string: '#a9ee55'
|
||||
shape_string_interpolation: { fg: '#5eeea0' attr: 'b' }
|
||||
shape_table: { fg: '#5ea2ec' attr: 'b' }
|
||||
shape_vardecl: { fg: '#5ea2ec' attr: 'u' }
|
||||
shape_variable: '#a957ec'
|
||||
|
||||
foreground: '#a9bed8'
|
||||
background: '#012849'
|
||||
cursor: '#a9bed8'
|
||||
|
||||
empty: '#5ea2ec'
|
||||
header: { fg: '#a9ee55' attr: 'b' }
|
||||
hints: '#918988'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a9ee55' attr: 'b' }
|
||||
search_result: { fg: '#f557a0' bg: '#918988' }
|
||||
separator: '#918988'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#ac80a6'
|
||||
block: '#5a86ad'
|
||||
cell-path: '#e0dbb7'
|
||||
closure: '#74a6ad'
|
||||
custom: '#fff9d5'
|
||||
duration: '#e99d2a'
|
||||
float: '#e84627'
|
||||
glob: '#fff9d5'
|
||||
int: '#ac80a6'
|
||||
list: '#74a6ad'
|
||||
nothing: '#be2d26'
|
||||
range: '#e99d2a'
|
||||
record: '#74a6ad'
|
||||
string: '#6ba18a'
|
||||
|
||||
bool: {|| if $in { '#93cfd7' } else { '#e99d2a' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#be2d26' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#be2d26'
|
||||
} else if $in < 1day {
|
||||
'#e99d2a'
|
||||
} else if $in < 3day {
|
||||
'#6ba18a'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#6ba18a' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#74a6ad'
|
||||
} else if $in < 52wk {
|
||||
'#5a86ad'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#e0dbb7'
|
||||
} else if $e < 1mb {
|
||||
'#74a6ad'
|
||||
} else {{ fg: '#5a86ad' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_binary: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_block: { fg: '#5a86ad' attr: 'b' }
|
||||
shape_bool: '#93cfd7'
|
||||
shape_closure: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_custom: '#6ba18a'
|
||||
shape_datetime: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_directory: '#74a6ad'
|
||||
shape_external: '#74a6ad'
|
||||
shape_external_resolved: '#93cfd7'
|
||||
shape_externalarg: { fg: '#6ba18a' attr: 'b' }
|
||||
shape_filepath: '#74a6ad'
|
||||
shape_flag: { fg: '#5a86ad' attr: 'b' }
|
||||
shape_float: { fg: '#e84627' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_globpattern: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_int: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_internalcall: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_keyword: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_list: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_literal: '#5a86ad'
|
||||
shape_match_pattern: '#6ba18a'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#be2d26'
|
||||
shape_operator: '#e99d2a'
|
||||
shape_or: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_pipe: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_range: { fg: '#e99d2a' attr: 'b' }
|
||||
shape_raw_string: { fg: '#fff9d5' attr: 'b' }
|
||||
shape_record: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_redirection: { fg: '#ac80a6' attr: 'b' }
|
||||
shape_signature: { fg: '#6ba18a' attr: 'b' }
|
||||
shape_string: '#6ba18a'
|
||||
shape_string_interpolation: { fg: '#74a6ad' attr: 'b' }
|
||||
shape_table: { fg: '#5a86ad' attr: 'b' }
|
||||
shape_vardecl: { fg: '#5a86ad' attr: 'u' }
|
||||
shape_variable: '#ac80a6'
|
||||
|
||||
foreground: '#e0dbb7'
|
||||
background: '#2a1f1d'
|
||||
cursor: '#e0dbb7'
|
||||
|
||||
empty: '#5a86ad'
|
||||
header: { fg: '#6ba18a' attr: 'b' }
|
||||
hints: '#9b6c4a'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#6ba18a' attr: 'b' }
|
||||
search_result: { fg: '#be2d26' bg: '#e0dbb7' }
|
||||
separator: '#e0dbb7'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#e78a53'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#e78a53'
|
||||
record: '#aaaaaa'
|
||||
string: '#fbcb97'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#e78a53' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#e78a53'
|
||||
} else if $in < 3day {
|
||||
'#fbcb97'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#fbcb97' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#fbcb97'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#fbcb97' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#fbcb97'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#e78a53'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#e78a53' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#fbcb97' attr: 'b' }
|
||||
shape_string: '#fbcb97'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#fbcb97' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#fbcb97' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#99bbaa'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#99bbaa'
|
||||
record: '#aaaaaa'
|
||||
string: '#ddeecc'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#99bbaa' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#99bbaa'
|
||||
} else if $in < 3day {
|
||||
'#ddeecc'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#ddeecc' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#ddeecc'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#ddeecc' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#ddeecc'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#99bbaa'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#99bbaa' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#ddeecc' attr: 'b' }
|
||||
shape_string: '#ddeecc'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#ddeecc' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#ddeecc' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#5f81a5'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#5f81a5'
|
||||
record: '#aaaaaa'
|
||||
string: '#d0dfee'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#5f81a5' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#5f81a5'
|
||||
} else if $in < 3day {
|
||||
'#d0dfee'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#d0dfee' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#d0dfee'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#d0dfee' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#d0dfee'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#5f81a5'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#5f81a5' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#d0dfee' attr: 'b' }
|
||||
shape_string: '#d0dfee'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#d0dfee' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#d0dfee' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#8c7f70'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#8c7f70'
|
||||
record: '#aaaaaa'
|
||||
string: '#9b8d7f'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#8c7f70' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#8c7f70'
|
||||
} else if $in < 3day {
|
||||
'#9b8d7f'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#9b8d7f' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#9b8d7f'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#9b8d7f' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#9b8d7f'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#8c7f70'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#8c7f70' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#9b8d7f' attr: 'b' }
|
||||
shape_string: '#9b8d7f'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#9b8d7f' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#9b8d7f' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#556677'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#556677'
|
||||
record: '#aaaaaa'
|
||||
string: '#7799bb'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#556677' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#556677'
|
||||
} else if $in < 3day {
|
||||
'#7799bb'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7799bb' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#7799bb'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#7799bb' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#7799bb'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#556677'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#556677' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#7799bb' attr: 'b' }
|
||||
shape_string: '#7799bb'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#7799bb' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7799bb' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#974b46'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#974b46'
|
||||
record: '#aaaaaa'
|
||||
string: '#eceee3'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#974b46' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#974b46'
|
||||
} else if $in < 3day {
|
||||
'#eceee3'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#eceee3' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#eceee3'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#eceee3' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#eceee3'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#974b46'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#974b46' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#eceee3' attr: 'b' }
|
||||
shape_string: '#eceee3'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#eceee3' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#eceee3' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#626b67'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#626b67'
|
||||
record: '#aaaaaa'
|
||||
string: '#a5aaa7'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#626b67' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#626b67'
|
||||
} else if $in < 3day {
|
||||
'#a5aaa7'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a5aaa7' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#a5aaa7'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#a5aaa7' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#a5aaa7'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#626b67'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#626b67' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#a5aaa7' attr: 'b' }
|
||||
shape_string: '#a5aaa7'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#a5aaa7' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a5aaa7' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#eecc6c'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#eecc6c'
|
||||
record: '#aaaaaa'
|
||||
string: '#f3ecd4'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#eecc6c' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#eecc6c'
|
||||
} else if $in < 3day {
|
||||
'#f3ecd4'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#f3ecd4' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#f3ecd4'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#f3ecd4' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#f3ecd4'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#eecc6c'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#eecc6c' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#f3ecd4' attr: 'b' }
|
||||
shape_string: '#f3ecd4'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#f3ecd4' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#f3ecd4' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#777755'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#777755'
|
||||
record: '#aaaaaa'
|
||||
string: '#aa9988'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#777755' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#777755'
|
||||
} else if $in < 3day {
|
||||
'#aa9988'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#aa9988' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#aa9988'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#aa9988' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#aa9988'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#777755'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#777755' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#aa9988' attr: 'b' }
|
||||
shape_string: '#aa9988'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#aa9988' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#aa9988' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#79241f'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#79241f'
|
||||
record: '#aaaaaa'
|
||||
string: '#f8f7f2'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#79241f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#79241f'
|
||||
} else if $in < 3day {
|
||||
'#f8f7f2'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#f8f7f2' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#f8f7f2'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#f8f7f2' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#f8f7f2'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#79241f'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#79241f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#f8f7f2' attr: 'b' }
|
||||
shape_string: '#f8f7f2'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#f8f7f2' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#f8f7f2' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#999999'
|
||||
block: '#888888'
|
||||
cell-path: '#c1c1c1'
|
||||
closure: '#aaaaaa'
|
||||
custom: '#c1c1c1'
|
||||
duration: '#a06666'
|
||||
float: '#5f8787'
|
||||
glob: '#c1c1c1'
|
||||
int: '#999999'
|
||||
list: '#aaaaaa'
|
||||
nothing: '#5f8787'
|
||||
range: '#a06666'
|
||||
record: '#aaaaaa'
|
||||
string: '#dd9999'
|
||||
|
||||
bool: {|| if $in { '#aaaaaa' } else { '#a06666' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#5f8787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#5f8787'
|
||||
} else if $in < 1day {
|
||||
'#a06666'
|
||||
} else if $in < 3day {
|
||||
'#dd9999'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#dd9999' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaaaaa'
|
||||
} else if $in < 52wk {
|
||||
'#888888'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c1c1'
|
||||
} else if $e < 1mb {
|
||||
'#aaaaaa'
|
||||
} else {{ fg: '#888888' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#999999' attr: 'b' }
|
||||
shape_binary: { fg: '#999999' attr: 'b' }
|
||||
shape_block: { fg: '#888888' attr: 'b' }
|
||||
shape_bool: '#aaaaaa'
|
||||
shape_closure: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_custom: '#dd9999'
|
||||
shape_datetime: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_directory: '#aaaaaa'
|
||||
shape_external: '#aaaaaa'
|
||||
shape_external_resolved: '#aaaaaa'
|
||||
shape_externalarg: { fg: '#dd9999' attr: 'b' }
|
||||
shape_filepath: '#aaaaaa'
|
||||
shape_flag: { fg: '#888888' attr: 'b' }
|
||||
shape_float: { fg: '#5f8787' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_int: { fg: '#999999' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_keyword: { fg: '#999999' attr: 'b' }
|
||||
shape_list: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_literal: '#888888'
|
||||
shape_match_pattern: '#dd9999'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#5f8787'
|
||||
shape_operator: '#a06666'
|
||||
shape_or: { fg: '#999999' attr: 'b' }
|
||||
shape_pipe: { fg: '#999999' attr: 'b' }
|
||||
shape_range: { fg: '#a06666' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c1c1' attr: 'b' }
|
||||
shape_record: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_redirection: { fg: '#999999' attr: 'b' }
|
||||
shape_signature: { fg: '#dd9999' attr: 'b' }
|
||||
shape_string: '#dd9999'
|
||||
shape_string_interpolation: { fg: '#aaaaaa' attr: 'b' }
|
||||
shape_table: { fg: '#888888' attr: 'b' }
|
||||
shape_vardecl: { fg: '#888888' attr: 'u' }
|
||||
shape_variable: '#999999'
|
||||
|
||||
foreground: '#c1c1c1'
|
||||
background: '#000000'
|
||||
cursor: '#c1c1c1'
|
||||
|
||||
empty: '#888888'
|
||||
header: { fg: '#dd9999' attr: 'b' }
|
||||
hints: '#333333'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#dd9999' attr: 'b' }
|
||||
search_result: { fg: '#5f8787' bg: '#c1c1c1' }
|
||||
separator: '#c1c1c1'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b87ab8'
|
||||
block: '#7a7ab8'
|
||||
cell-path: '#d9d9d9'
|
||||
closure: '#7ab8b8'
|
||||
custom: '#ffffff'
|
||||
duration: '#b8b87a'
|
||||
float: '#dbbdbd'
|
||||
glob: '#ffffff'
|
||||
int: '#b87ab8'
|
||||
list: '#7ab8b8'
|
||||
nothing: '#b87a7a'
|
||||
range: '#b8b87a'
|
||||
record: '#7ab8b8'
|
||||
string: '#7ab87a'
|
||||
|
||||
bool: {|| if $in { '#bddbdb' } else { '#b8b87a' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#b87a7a' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#b87a7a'
|
||||
} else if $in < 1day {
|
||||
'#b8b87a'
|
||||
} else if $in < 3day {
|
||||
'#7ab87a'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#7ab87a' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#7ab8b8'
|
||||
} else if $in < 52wk {
|
||||
'#7a7ab8'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#d9d9d9'
|
||||
} else if $e < 1mb {
|
||||
'#7ab8b8'
|
||||
} else {{ fg: '#7a7ab8' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_binary: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_block: { fg: '#7a7ab8' attr: 'b' }
|
||||
shape_bool: '#bddbdb'
|
||||
shape_closure: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_custom: '#7ab87a'
|
||||
shape_datetime: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_directory: '#7ab8b8'
|
||||
shape_external: '#7ab8b8'
|
||||
shape_external_resolved: '#bddbdb'
|
||||
shape_externalarg: { fg: '#7ab87a' attr: 'b' }
|
||||
shape_filepath: '#7ab8b8'
|
||||
shape_flag: { fg: '#7a7ab8' attr: 'b' }
|
||||
shape_float: { fg: '#dbbdbd' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_globpattern: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_int: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_internalcall: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_keyword: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_list: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_literal: '#7a7ab8'
|
||||
shape_match_pattern: '#7ab87a'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#b87a7a'
|
||||
shape_operator: '#b8b87a'
|
||||
shape_or: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_pipe: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_range: { fg: '#b8b87a' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_redirection: { fg: '#b87ab8' attr: 'b' }
|
||||
shape_signature: { fg: '#7ab87a' attr: 'b' }
|
||||
shape_string: '#7ab87a'
|
||||
shape_string_interpolation: { fg: '#7ab8b8' attr: 'b' }
|
||||
shape_table: { fg: '#7a7ab8' attr: 'b' }
|
||||
shape_vardecl: { fg: '#7a7ab8' attr: 'u' }
|
||||
shape_variable: '#b87ab8'
|
||||
|
||||
foreground: '#d9e6f2'
|
||||
background: '#0d1926'
|
||||
cursor: '#d9e6f2'
|
||||
|
||||
empty: '#7a7ab8'
|
||||
header: { fg: '#7ab87a' attr: 'b' }
|
||||
hints: '#262626'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#7ab87a' attr: 'b' }
|
||||
search_result: { fg: '#b87a7a' bg: '#d9d9d9' }
|
||||
separator: '#d9d9d9'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#ff73fd'
|
||||
block: '#96cbfe'
|
||||
cell-path: '#eeeeee'
|
||||
closure: '#c6c5fe'
|
||||
custom: '#ffffff'
|
||||
duration: '#ffffb6'
|
||||
float: '#ffb6b0'
|
||||
glob: '#ffffff'
|
||||
int: '#ff73fd'
|
||||
list: '#c6c5fe'
|
||||
nothing: '#ff6c60'
|
||||
range: '#ffffb6'
|
||||
record: '#c6c5fe'
|
||||
string: '#a8ff60'
|
||||
|
||||
bool: {|| if $in { '#dfdffe' } else { '#ffffb6' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff6c60' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff6c60'
|
||||
} else if $in < 1day {
|
||||
'#ffffb6'
|
||||
} else if $in < 3day {
|
||||
'#a8ff60'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a8ff60' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#c6c5fe'
|
||||
} else if $in < 52wk {
|
||||
'#96cbfe'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#eeeeee'
|
||||
} else if $e < 1mb {
|
||||
'#c6c5fe'
|
||||
} else {{ fg: '#96cbfe' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_binary: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_block: { fg: '#96cbfe' attr: 'b' }
|
||||
shape_bool: '#dfdffe'
|
||||
shape_closure: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_custom: '#a8ff60'
|
||||
shape_datetime: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_directory: '#c6c5fe'
|
||||
shape_external: '#c6c5fe'
|
||||
shape_external_resolved: '#dfdffe'
|
||||
shape_externalarg: { fg: '#a8ff60' attr: 'b' }
|
||||
shape_filepath: '#c6c5fe'
|
||||
shape_flag: { fg: '#96cbfe' attr: 'b' }
|
||||
shape_float: { fg: '#ffb6b0' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_globpattern: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_int: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_internalcall: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_keyword: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_list: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_literal: '#96cbfe'
|
||||
shape_match_pattern: '#a8ff60'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff6c60'
|
||||
shape_operator: '#ffffb6'
|
||||
shape_or: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_pipe: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_range: { fg: '#ffffb6' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_redirection: { fg: '#ff73fd' attr: 'b' }
|
||||
shape_signature: { fg: '#a8ff60' attr: 'b' }
|
||||
shape_string: '#a8ff60'
|
||||
shape_string_interpolation: { fg: '#c6c5fe' attr: 'b' }
|
||||
shape_table: { fg: '#96cbfe' attr: 'b' }
|
||||
shape_vardecl: { fg: '#96cbfe' attr: 'u' }
|
||||
shape_variable: '#ff73fd'
|
||||
|
||||
foreground: '#ffff4e'
|
||||
background: '#0000a4'
|
||||
cursor: '#ffff4e'
|
||||
|
||||
empty: '#96cbfe'
|
||||
header: { fg: '#a8ff60' attr: 'b' }
|
||||
hints: '#7c7c7c'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a8ff60' attr: 'b' }
|
||||
search_result: { fg: '#ff6c60' bg: '#eeeeee' }
|
||||
separator: '#eeeeee'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#756bb1'
|
||||
block: '#3182bd'
|
||||
cell-path: '#b7b8b9'
|
||||
closure: '#80b1d3'
|
||||
custom: '#fcfdfe'
|
||||
duration: '#dca060'
|
||||
float: '#e31a1c'
|
||||
glob: '#fcfdfe'
|
||||
int: '#756bb1'
|
||||
list: '#80b1d3'
|
||||
nothing: '#e31a1c'
|
||||
range: '#dca060'
|
||||
record: '#80b1d3'
|
||||
string: '#31a354'
|
||||
|
||||
bool: {|| if $in { '#80b1d3' } else { '#dca060' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#e31a1c' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#e31a1c'
|
||||
} else if $in < 1day {
|
||||
'#dca060'
|
||||
} else if $in < 3day {
|
||||
'#31a354'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#31a354' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#80b1d3'
|
||||
} else if $in < 52wk {
|
||||
'#3182bd'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#b7b8b9'
|
||||
} else if $e < 1mb {
|
||||
'#80b1d3'
|
||||
} else {{ fg: '#3182bd' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#756bb1' attr: 'b' }
|
||||
shape_binary: { fg: '#756bb1' attr: 'b' }
|
||||
shape_block: { fg: '#3182bd' attr: 'b' }
|
||||
shape_bool: '#80b1d3'
|
||||
shape_closure: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_custom: '#31a354'
|
||||
shape_datetime: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_directory: '#80b1d3'
|
||||
shape_external: '#80b1d3'
|
||||
shape_external_resolved: '#80b1d3'
|
||||
shape_externalarg: { fg: '#31a354' attr: 'b' }
|
||||
shape_filepath: '#80b1d3'
|
||||
shape_flag: { fg: '#3182bd' attr: 'b' }
|
||||
shape_float: { fg: '#e31a1c' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_int: { fg: '#756bb1' attr: 'b' }
|
||||
shape_internalcall: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_keyword: { fg: '#756bb1' attr: 'b' }
|
||||
shape_list: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_literal: '#3182bd'
|
||||
shape_match_pattern: '#31a354'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#e31a1c'
|
||||
shape_operator: '#dca060'
|
||||
shape_or: { fg: '#756bb1' attr: 'b' }
|
||||
shape_pipe: { fg: '#756bb1' attr: 'b' }
|
||||
shape_range: { fg: '#dca060' attr: 'b' }
|
||||
shape_raw_string: { fg: '#fcfdfe' attr: 'b' }
|
||||
shape_record: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_redirection: { fg: '#756bb1' attr: 'b' }
|
||||
shape_signature: { fg: '#31a354' attr: 'b' }
|
||||
shape_string: '#31a354'
|
||||
shape_string_interpolation: { fg: '#80b1d3' attr: 'b' }
|
||||
shape_table: { fg: '#3182bd' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3182bd' attr: 'u' }
|
||||
shape_variable: '#756bb1'
|
||||
|
||||
foreground: '#b7b8b9'
|
||||
background: '#0c0d0e'
|
||||
cursor: '#b7b8b9'
|
||||
|
||||
empty: '#3182bd'
|
||||
header: { fg: '#31a354' attr: 'b' }
|
||||
hints: '#737475'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#31a354' attr: 'b' }
|
||||
search_result: { fg: '#e31a1c' bg: '#b7b8b9' }
|
||||
separator: '#b7b8b9'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b975e6'
|
||||
block: '#75d3ff'
|
||||
cell-path: '#c1c8d6'
|
||||
closure: '#6cbeb5'
|
||||
custom: '#c1c8d6'
|
||||
duration: '#ffc150'
|
||||
float: '#ff355b'
|
||||
glob: '#c1c8d6'
|
||||
int: '#b975e6'
|
||||
list: '#6cbeb5'
|
||||
nothing: '#ff355b'
|
||||
range: '#ffc150'
|
||||
record: '#6cbeb5'
|
||||
string: '#b6e875'
|
||||
|
||||
bool: {|| if $in { '#6cbeb5' } else { '#ffc150' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff355b' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff355b'
|
||||
} else if $in < 1day {
|
||||
'#ffc150'
|
||||
} else if $in < 3day {
|
||||
'#b6e875'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#b6e875' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#6cbeb5'
|
||||
} else if $in < 52wk {
|
||||
'#75d3ff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c1c8d6'
|
||||
} else if $e < 1mb {
|
||||
'#6cbeb5'
|
||||
} else {{ fg: '#75d3ff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b975e6' attr: 'b' }
|
||||
shape_binary: { fg: '#b975e6' attr: 'b' }
|
||||
shape_block: { fg: '#75d3ff' attr: 'b' }
|
||||
shape_bool: '#6cbeb5'
|
||||
shape_closure: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_custom: '#b6e875'
|
||||
shape_datetime: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_directory: '#6cbeb5'
|
||||
shape_external: '#6cbeb5'
|
||||
shape_external_resolved: '#6cbeb5'
|
||||
shape_externalarg: { fg: '#b6e875' attr: 'b' }
|
||||
shape_filepath: '#6cbeb5'
|
||||
shape_flag: { fg: '#75d3ff' attr: 'b' }
|
||||
shape_float: { fg: '#ff355b' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_globpattern: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_int: { fg: '#b975e6' attr: 'b' }
|
||||
shape_internalcall: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_keyword: { fg: '#b975e6' attr: 'b' }
|
||||
shape_list: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_literal: '#75d3ff'
|
||||
shape_match_pattern: '#b6e875'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff355b'
|
||||
shape_operator: '#ffc150'
|
||||
shape_or: { fg: '#b975e6' attr: 'b' }
|
||||
shape_pipe: { fg: '#b975e6' attr: 'b' }
|
||||
shape_range: { fg: '#ffc150' attr: 'b' }
|
||||
shape_raw_string: { fg: '#c1c8d6' attr: 'b' }
|
||||
shape_record: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_redirection: { fg: '#b975e6' attr: 'b' }
|
||||
shape_signature: { fg: '#b6e875' attr: 'b' }
|
||||
shape_string: '#b6e875'
|
||||
shape_string_interpolation: { fg: '#6cbeb5' attr: 'b' }
|
||||
shape_table: { fg: '#75d3ff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#75d3ff' attr: 'u' }
|
||||
shape_variable: '#b975e6'
|
||||
|
||||
foreground: '#b2c8d6'
|
||||
background: '#191919'
|
||||
cursor: '#f34a00'
|
||||
|
||||
empty: '#75d3ff'
|
||||
header: { fg: '#b6e875' attr: 'b' }
|
||||
hints: '#191919'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#b6e875' attr: 'b' }
|
||||
search_result: { fg: '#ff355b' bg: '#c1c8d6' }
|
||||
separator: '#c1c8d6'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#d381c3'
|
||||
block: '#6fb3d2'
|
||||
cell-path: '#e0e0e0'
|
||||
closure: '#76c7b7'
|
||||
custom: '#ffffff'
|
||||
duration: '#fda331'
|
||||
float: '#fb0120'
|
||||
glob: '#ffffff'
|
||||
int: '#d381c3'
|
||||
list: '#76c7b7'
|
||||
nothing: '#fb0120'
|
||||
range: '#fda331'
|
||||
record: '#76c7b7'
|
||||
string: '#a1c659'
|
||||
|
||||
bool: {|| if $in { '#76c7b7' } else { '#fda331' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#fb0120' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#fb0120'
|
||||
} else if $in < 1day {
|
||||
'#fda331'
|
||||
} else if $in < 3day {
|
||||
'#a1c659'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a1c659' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#76c7b7'
|
||||
} else if $in < 52wk {
|
||||
'#6fb3d2'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#e0e0e0'
|
||||
} else if $e < 1mb {
|
||||
'#76c7b7'
|
||||
} else {{ fg: '#6fb3d2' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#d381c3' attr: 'b' }
|
||||
shape_binary: { fg: '#d381c3' attr: 'b' }
|
||||
shape_block: { fg: '#6fb3d2' attr: 'b' }
|
||||
shape_bool: '#76c7b7'
|
||||
shape_closure: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_custom: '#a1c659'
|
||||
shape_datetime: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_directory: '#76c7b7'
|
||||
shape_external: '#76c7b7'
|
||||
shape_external_resolved: '#76c7b7'
|
||||
shape_externalarg: { fg: '#a1c659' attr: 'b' }
|
||||
shape_filepath: '#76c7b7'
|
||||
shape_flag: { fg: '#6fb3d2' attr: 'b' }
|
||||
shape_float: { fg: '#fb0120' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_globpattern: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_int: { fg: '#d381c3' attr: 'b' }
|
||||
shape_internalcall: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_keyword: { fg: '#d381c3' attr: 'b' }
|
||||
shape_list: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_literal: '#6fb3d2'
|
||||
shape_match_pattern: '#a1c659'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#fb0120'
|
||||
shape_operator: '#fda331'
|
||||
shape_or: { fg: '#d381c3' attr: 'b' }
|
||||
shape_pipe: { fg: '#d381c3' attr: 'b' }
|
||||
shape_range: { fg: '#fda331' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_redirection: { fg: '#d381c3' attr: 'b' }
|
||||
shape_signature: { fg: '#a1c659' attr: 'b' }
|
||||
shape_string: '#a1c659'
|
||||
shape_string_interpolation: { fg: '#76c7b7' attr: 'b' }
|
||||
shape_table: { fg: '#6fb3d2' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6fb3d2' attr: 'u' }
|
||||
shape_variable: '#d381c3'
|
||||
|
||||
foreground: '#e0e0e0'
|
||||
background: '#000000'
|
||||
cursor: '#e0e0e0'
|
||||
|
||||
empty: '#6fb3d2'
|
||||
header: { fg: '#a1c659' attr: 'b' }
|
||||
hints: '#b0b0b0'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a1c659' attr: 'b' }
|
||||
search_result: { fg: '#fb0120' bg: '#e0e0e0' }
|
||||
separator: '#e0e0e0'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#d0d0ff'
|
||||
block: '#6d9cbe'
|
||||
cell-path: '#ffffff'
|
||||
closure: '#6e9cbe'
|
||||
custom: '#ffffff'
|
||||
duration: '#ffd24a'
|
||||
float: '#ff7b6b'
|
||||
glob: '#ffffff'
|
||||
int: '#d0d0ff'
|
||||
list: '#6e9cbe'
|
||||
nothing: '#da4939'
|
||||
range: '#ffd24a'
|
||||
record: '#6e9cbe'
|
||||
string: '#519f50'
|
||||
|
||||
bool: {|| if $in { '#a0cef0' } else { '#ffd24a' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#da4939' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#da4939'
|
||||
} else if $in < 1day {
|
||||
'#ffd24a'
|
||||
} else if $in < 3day {
|
||||
'#519f50'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#519f50' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#6e9cbe'
|
||||
} else if $in < 52wk {
|
||||
'#6d9cbe'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ffffff'
|
||||
} else if $e < 1mb {
|
||||
'#6e9cbe'
|
||||
} else {{ fg: '#6d9cbe' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_binary: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_block: { fg: '#6d9cbe' attr: 'b' }
|
||||
shape_bool: '#a0cef0'
|
||||
shape_closure: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_custom: '#519f50'
|
||||
shape_datetime: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_directory: '#6e9cbe'
|
||||
shape_external: '#6e9cbe'
|
||||
shape_external_resolved: '#a0cef0'
|
||||
shape_externalarg: { fg: '#519f50' attr: 'b' }
|
||||
shape_filepath: '#6e9cbe'
|
||||
shape_flag: { fg: '#6d9cbe' attr: 'b' }
|
||||
shape_float: { fg: '#ff7b6b' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_globpattern: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_int: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_internalcall: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_keyword: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_list: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_literal: '#6d9cbe'
|
||||
shape_match_pattern: '#519f50'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#da4939'
|
||||
shape_operator: '#ffd24a'
|
||||
shape_or: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_pipe: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_range: { fg: '#ffd24a' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_redirection: { fg: '#d0d0ff' attr: 'b' }
|
||||
shape_signature: { fg: '#519f50' attr: 'b' }
|
||||
shape_string: '#519f50'
|
||||
shape_string_interpolation: { fg: '#6e9cbe' attr: 'b' }
|
||||
shape_table: { fg: '#6d9cbe' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6d9cbe' attr: 'u' }
|
||||
shape_variable: '#d0d0ff'
|
||||
|
||||
foreground: '#e6e1dc'
|
||||
background: '#2b2b2b'
|
||||
cursor: '#e6e1dc'
|
||||
|
||||
empty: '#6d9cbe'
|
||||
header: { fg: '#519f50' attr: 'b' }
|
||||
hints: '#323232'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#519f50' attr: 'b' }
|
||||
search_result: { fg: '#da4939' bg: '#ffffff' }
|
||||
separator: '#ffffff'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#0f7ddb'
|
||||
block: '#5350b9'
|
||||
cell-path: '#4e5ab7'
|
||||
closure: '#1081d6'
|
||||
custom: '#d6dbe5'
|
||||
duration: '#1dd361'
|
||||
float: '#d6dbe5'
|
||||
glob: '#d6dbe5'
|
||||
int: '#0f7ddb'
|
||||
list: '#1081d6'
|
||||
nothing: '#d6dbe5'
|
||||
range: '#1dd361'
|
||||
record: '#1081d6'
|
||||
string: '#f3bd09'
|
||||
|
||||
bool: {|| if $in { '#1081d6' } else { '#1dd361' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d6dbe5' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d6dbe5'
|
||||
} else if $in < 1day {
|
||||
'#1dd361'
|
||||
} else if $in < 3day {
|
||||
'#f3bd09'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#f3bd09' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1081d6'
|
||||
} else if $in < 52wk {
|
||||
'#5350b9'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#4e5ab7'
|
||||
} else if $e < 1mb {
|
||||
'#1081d6'
|
||||
} else {{ fg: '#5350b9' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_binary: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_block: { fg: '#5350b9' attr: 'b' }
|
||||
shape_bool: '#1081d6'
|
||||
shape_closure: { fg: '#1081d6' attr: 'b' }
|
||||
shape_custom: '#f3bd09'
|
||||
shape_datetime: { fg: '#1081d6' attr: 'b' }
|
||||
shape_directory: '#1081d6'
|
||||
shape_external: '#1081d6'
|
||||
shape_external_resolved: '#1081d6'
|
||||
shape_externalarg: { fg: '#f3bd09' attr: 'b' }
|
||||
shape_filepath: '#1081d6'
|
||||
shape_flag: { fg: '#5350b9' attr: 'b' }
|
||||
shape_float: { fg: '#d6dbe5' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1081d6' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1081d6' attr: 'b' }
|
||||
shape_int: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1081d6' attr: 'b' }
|
||||
shape_keyword: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_list: { fg: '#1081d6' attr: 'b' }
|
||||
shape_literal: '#5350b9'
|
||||
shape_match_pattern: '#f3bd09'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d6dbe5'
|
||||
shape_operator: '#1dd361'
|
||||
shape_or: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_pipe: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_range: { fg: '#1dd361' attr: 'b' }
|
||||
shape_raw_string: { fg: '#d6dbe5' attr: 'b' }
|
||||
shape_record: { fg: '#1081d6' attr: 'b' }
|
||||
shape_redirection: { fg: '#0f7ddb' attr: 'b' }
|
||||
shape_signature: { fg: '#f3bd09' attr: 'b' }
|
||||
shape_string: '#f3bd09'
|
||||
shape_string_interpolation: { fg: '#1081d6' attr: 'b' }
|
||||
shape_table: { fg: '#5350b9' attr: 'b' }
|
||||
shape_vardecl: { fg: '#5350b9' attr: 'u' }
|
||||
shape_variable: '#0f7ddb'
|
||||
|
||||
foreground: '#4e5ab7'
|
||||
background: '#1f1f1f'
|
||||
cursor: '#4e5ab7'
|
||||
|
||||
empty: '#5350b9'
|
||||
header: { fg: '#f3bd09' attr: 'b' }
|
||||
hints: '#ecba0f'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#f3bd09' attr: 'b' }
|
||||
search_result: { fg: '#d6dbe5' bg: '#4e5ab7' }
|
||||
separator: '#4e5ab7'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b386b2'
|
||||
block: '#868cb3'
|
||||
cell-path: '#b0c5c8'
|
||||
closure: '#86b3b3'
|
||||
custom: '#e3efef'
|
||||
duration: '#aab386'
|
||||
float: '#b38686'
|
||||
glob: '#e3efef'
|
||||
int: '#b386b2'
|
||||
list: '#86b3b3'
|
||||
nothing: '#b38686'
|
||||
range: '#aab386'
|
||||
record: '#86b3b3'
|
||||
string: '#87b386'
|
||||
|
||||
bool: {|| if $in { '#86b3b3' } else { '#aab386' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#b38686' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#b38686'
|
||||
} else if $in < 1day {
|
||||
'#aab386'
|
||||
} else if $in < 3day {
|
||||
'#87b386'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#87b386' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#86b3b3'
|
||||
} else if $in < 52wk {
|
||||
'#868cb3'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#b0c5c8'
|
||||
} else if $e < 1mb {
|
||||
'#86b3b3'
|
||||
} else {{ fg: '#868cb3' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b386b2' attr: 'b' }
|
||||
shape_binary: { fg: '#b386b2' attr: 'b' }
|
||||
shape_block: { fg: '#868cb3' attr: 'b' }
|
||||
shape_bool: '#86b3b3'
|
||||
shape_closure: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_custom: '#87b386'
|
||||
shape_datetime: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_directory: '#86b3b3'
|
||||
shape_external: '#86b3b3'
|
||||
shape_external_resolved: '#86b3b3'
|
||||
shape_externalarg: { fg: '#87b386' attr: 'b' }
|
||||
shape_filepath: '#86b3b3'
|
||||
shape_flag: { fg: '#868cb3' attr: 'b' }
|
||||
shape_float: { fg: '#b38686' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_int: { fg: '#b386b2' attr: 'b' }
|
||||
shape_internalcall: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_keyword: { fg: '#b386b2' attr: 'b' }
|
||||
shape_list: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_literal: '#868cb3'
|
||||
shape_match_pattern: '#87b386'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#b38686'
|
||||
shape_operator: '#aab386'
|
||||
shape_or: { fg: '#b386b2' attr: 'b' }
|
||||
shape_pipe: { fg: '#b386b2' attr: 'b' }
|
||||
shape_range: { fg: '#aab386' attr: 'b' }
|
||||
shape_raw_string: { fg: '#e3efef' attr: 'b' }
|
||||
shape_record: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_redirection: { fg: '#b386b2' attr: 'b' }
|
||||
shape_signature: { fg: '#87b386' attr: 'b' }
|
||||
shape_string: '#87b386'
|
||||
shape_string_interpolation: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_table: { fg: '#868cb3' attr: 'b' }
|
||||
shape_vardecl: { fg: '#868cb3' attr: 'u' }
|
||||
shape_variable: '#b386b2'
|
||||
|
||||
foreground: '#b0c5c8'
|
||||
background: '#485867'
|
||||
cursor: '#b0c5c8'
|
||||
|
||||
empty: '#868cb3'
|
||||
header: { fg: '#87b386' attr: 'b' }
|
||||
hints: '#8299a1'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#87b386' attr: 'b' }
|
||||
search_result: { fg: '#b38686' bg: '#b0c5c8' }
|
||||
separator: '#b0c5c8'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b386b2'
|
||||
block: '#868cb3'
|
||||
cell-path: '#6d828e'
|
||||
closure: '#86b3b3'
|
||||
custom: '#485867'
|
||||
duration: '#aab386'
|
||||
float: '#b38686'
|
||||
glob: '#485867'
|
||||
int: '#b386b2'
|
||||
list: '#86b3b3'
|
||||
nothing: '#b38686'
|
||||
range: '#aab386'
|
||||
record: '#86b3b3'
|
||||
string: '#87b386'
|
||||
|
||||
bool: {|| if $in { '#86b3b3' } else { '#aab386' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#b38686' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#b38686'
|
||||
} else if $in < 1day {
|
||||
'#aab386'
|
||||
} else if $in < 3day {
|
||||
'#87b386'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#87b386' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#86b3b3'
|
||||
} else if $in < 52wk {
|
||||
'#868cb3'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#6d828e'
|
||||
} else if $e < 1mb {
|
||||
'#86b3b3'
|
||||
} else {{ fg: '#868cb3' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b386b2' attr: 'b' }
|
||||
shape_binary: { fg: '#b386b2' attr: 'b' }
|
||||
shape_block: { fg: '#868cb3' attr: 'b' }
|
||||
shape_bool: '#86b3b3'
|
||||
shape_closure: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_custom: '#87b386'
|
||||
shape_datetime: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_directory: '#86b3b3'
|
||||
shape_external: '#86b3b3'
|
||||
shape_external_resolved: '#86b3b3'
|
||||
shape_externalarg: { fg: '#87b386' attr: 'b' }
|
||||
shape_filepath: '#86b3b3'
|
||||
shape_flag: { fg: '#868cb3' attr: 'b' }
|
||||
shape_float: { fg: '#b38686' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_int: { fg: '#b386b2' attr: 'b' }
|
||||
shape_internalcall: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_keyword: { fg: '#b386b2' attr: 'b' }
|
||||
shape_list: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_literal: '#868cb3'
|
||||
shape_match_pattern: '#87b386'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#b38686'
|
||||
shape_operator: '#aab386'
|
||||
shape_or: { fg: '#b386b2' attr: 'b' }
|
||||
shape_pipe: { fg: '#b386b2' attr: 'b' }
|
||||
shape_range: { fg: '#aab386' attr: 'b' }
|
||||
shape_raw_string: { fg: '#485867' attr: 'b' }
|
||||
shape_record: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_redirection: { fg: '#b386b2' attr: 'b' }
|
||||
shape_signature: { fg: '#87b386' attr: 'b' }
|
||||
shape_string: '#87b386'
|
||||
shape_string_interpolation: { fg: '#86b3b3' attr: 'b' }
|
||||
shape_table: { fg: '#868cb3' attr: 'b' }
|
||||
shape_vardecl: { fg: '#868cb3' attr: 'u' }
|
||||
shape_variable: '#b386b2'
|
||||
|
||||
foreground: '#6d828e'
|
||||
background: '#e3efef'
|
||||
cursor: '#6d828e'
|
||||
|
||||
empty: '#868cb3'
|
||||
header: { fg: '#87b386' attr: 'b' }
|
||||
hints: '#98afb5'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#87b386' attr: 'b' }
|
||||
search_result: { fg: '#b38686' bg: '#6d828e' }
|
||||
separator: '#6d828e'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8b3f96'
|
||||
block: '#40318d'
|
||||
cell-path: '#ffffff'
|
||||
closure: '#67b6bd'
|
||||
custom: '#f7f7f7'
|
||||
duration: '#bfce72'
|
||||
float: '#883932'
|
||||
glob: '#f7f7f7'
|
||||
int: '#8b3f96'
|
||||
list: '#67b6bd'
|
||||
nothing: '#883932'
|
||||
range: '#bfce72'
|
||||
record: '#67b6bd'
|
||||
string: '#55a049'
|
||||
|
||||
bool: {|| if $in { '#67b6bd' } else { '#bfce72' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#883932' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#883932'
|
||||
} else if $in < 1day {
|
||||
'#bfce72'
|
||||
} else if $in < 3day {
|
||||
'#55a049'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#55a049' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#67b6bd'
|
||||
} else if $in < 52wk {
|
||||
'#40318d'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ffffff'
|
||||
} else if $e < 1mb {
|
||||
'#67b6bd'
|
||||
} else {{ fg: '#40318d' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_binary: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_block: { fg: '#40318d' attr: 'b' }
|
||||
shape_bool: '#67b6bd'
|
||||
shape_closure: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_custom: '#55a049'
|
||||
shape_datetime: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_directory: '#67b6bd'
|
||||
shape_external: '#67b6bd'
|
||||
shape_external_resolved: '#67b6bd'
|
||||
shape_externalarg: { fg: '#55a049' attr: 'b' }
|
||||
shape_filepath: '#67b6bd'
|
||||
shape_flag: { fg: '#40318d' attr: 'b' }
|
||||
shape_float: { fg: '#883932' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_globpattern: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_int: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_internalcall: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_keyword: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_list: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_literal: '#40318d'
|
||||
shape_match_pattern: '#55a049'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#883932'
|
||||
shape_operator: '#bfce72'
|
||||
shape_or: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_pipe: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_range: { fg: '#bfce72' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f7f7f7' attr: 'b' }
|
||||
shape_record: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_redirection: { fg: '#8b3f96' attr: 'b' }
|
||||
shape_signature: { fg: '#55a049' attr: 'b' }
|
||||
shape_string: '#55a049'
|
||||
shape_string_interpolation: { fg: '#67b6bd' attr: 'b' }
|
||||
shape_table: { fg: '#40318d' attr: 'b' }
|
||||
shape_vardecl: { fg: '#40318d' attr: 'u' }
|
||||
shape_variable: '#8b3f96'
|
||||
|
||||
foreground: '#7869c4'
|
||||
background: '#40318d'
|
||||
cursor: '#7869c4'
|
||||
|
||||
empty: '#40318d'
|
||||
header: { fg: '#55a049' attr: 'b' }
|
||||
hints: '#000000'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#55a049' attr: 'b' }
|
||||
search_result: { fg: '#883932' bg: '#ffffff' }
|
||||
separator: '#ffffff'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a427ca'
|
||||
block: '#274dca'
|
||||
cell-path: '#808080'
|
||||
closure: '#27caa4'
|
||||
custom: '#ffffff'
|
||||
duration: '#caa427'
|
||||
float: '#e98da3'
|
||||
glob: '#ffffff'
|
||||
int: '#a427ca'
|
||||
list: '#27caa4'
|
||||
nothing: '#ca274d'
|
||||
range: '#caa427'
|
||||
record: '#27caa4'
|
||||
string: '#4dca27'
|
||||
|
||||
bool: {|| if $in { '#8de9d4' } else { '#caa427' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ca274d' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ca274d'
|
||||
} else if $in < 1day {
|
||||
'#caa427'
|
||||
} else if $in < 3day {
|
||||
'#4dca27'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#4dca27' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#27caa4'
|
||||
} else if $in < 52wk {
|
||||
'#274dca'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#808080'
|
||||
} else if $e < 1mb {
|
||||
'#27caa4'
|
||||
} else {{ fg: '#274dca' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a427ca' attr: 'b' }
|
||||
shape_binary: { fg: '#a427ca' attr: 'b' }
|
||||
shape_block: { fg: '#274dca' attr: 'b' }
|
||||
shape_bool: '#8de9d4'
|
||||
shape_closure: { fg: '#27caa4' attr: 'b' }
|
||||
shape_custom: '#4dca27'
|
||||
shape_datetime: { fg: '#27caa4' attr: 'b' }
|
||||
shape_directory: '#27caa4'
|
||||
shape_external: '#27caa4'
|
||||
shape_external_resolved: '#8de9d4'
|
||||
shape_externalarg: { fg: '#4dca27' attr: 'b' }
|
||||
shape_filepath: '#27caa4'
|
||||
shape_flag: { fg: '#274dca' attr: 'b' }
|
||||
shape_float: { fg: '#e98da3' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#27caa4' attr: 'b' }
|
||||
shape_globpattern: { fg: '#27caa4' attr: 'b' }
|
||||
shape_int: { fg: '#a427ca' attr: 'b' }
|
||||
shape_internalcall: { fg: '#27caa4' attr: 'b' }
|
||||
shape_keyword: { fg: '#a427ca' attr: 'b' }
|
||||
shape_list: { fg: '#27caa4' attr: 'b' }
|
||||
shape_literal: '#274dca'
|
||||
shape_match_pattern: '#4dca27'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ca274d'
|
||||
shape_operator: '#caa427'
|
||||
shape_or: { fg: '#a427ca' attr: 'b' }
|
||||
shape_pipe: { fg: '#a427ca' attr: 'b' }
|
||||
shape_range: { fg: '#caa427' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#27caa4' attr: 'b' }
|
||||
shape_redirection: { fg: '#a427ca' attr: 'b' }
|
||||
shape_signature: { fg: '#4dca27' attr: 'b' }
|
||||
shape_string: '#4dca27'
|
||||
shape_string_interpolation: { fg: '#27caa4' attr: 'b' }
|
||||
shape_table: { fg: '#274dca' attr: 'b' }
|
||||
shape_vardecl: { fg: '#274dca' attr: 'u' }
|
||||
shape_variable: '#a427ca'
|
||||
|
||||
foreground: '#d9e6f2'
|
||||
background: '#09111a'
|
||||
cursor: '#d9e6f2'
|
||||
|
||||
empty: '#274dca'
|
||||
header: { fg: '#4dca27' attr: 'b' }
|
||||
hints: '#808080'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#4dca27' attr: 'b' }
|
||||
search_result: { fg: '#ca274d' bg: '#808080' }
|
||||
separator: '#808080'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,152 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
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"
|
||||
}
|
||||
|
||||
return {
|
||||
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
|
||||
'cell-path': $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 and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,152 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
const color_palette = {
|
||||
rosewater: "#f4dbd6"
|
||||
flamingo: "#f0c6c6"
|
||||
pink: "#f5bde6"
|
||||
mauve: "#c6a0f6"
|
||||
red: "#ed8796"
|
||||
maroon: "#ee99a0"
|
||||
peach: "#f5a97f"
|
||||
yellow: "#eed49f"
|
||||
green: "#a6da95"
|
||||
teal: "#8bd5ca"
|
||||
sky: "#91d7e3"
|
||||
sapphire: "#7dc4e4"
|
||||
blue: "#8aadf4"
|
||||
lavender: "#b7bdf8"
|
||||
text: "#cad3f5",
|
||||
subtext1: "#b8c0e0"
|
||||
subtext0: "#a5adcb"
|
||||
overlay2: "#939ab7"
|
||||
overlay1: "#8087a2"
|
||||
overlay0: "#6e738d"
|
||||
surface2: "#5b6078"
|
||||
surface1: "#494d64"
|
||||
surface0: "#363a4f"
|
||||
base: "#24273a"
|
||||
mantle: "#1e2030"
|
||||
crust: "#181926"
|
||||
}
|
||||
|
||||
return {
|
||||
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
|
||||
'cell-path': $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 and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,152 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
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"
|
||||
}
|
||||
|
||||
return {
|
||||
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
|
||||
'cell-path': $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 and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#e1a3ee'
|
||||
block: '#6fc2ef'
|
||||
cell-path: '#d0d0d0'
|
||||
closure: '#12cfc0'
|
||||
custom: '#f5f5f5'
|
||||
duration: '#ddb26f'
|
||||
float: '#fb9fb1'
|
||||
glob: '#f5f5f5'
|
||||
int: '#e1a3ee'
|
||||
list: '#12cfc0'
|
||||
nothing: '#fb9fb1'
|
||||
range: '#ddb26f'
|
||||
record: '#12cfc0'
|
||||
string: '#acc267'
|
||||
|
||||
bool: {|| if $in { '#12cfc0' } else { '#ddb26f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#fb9fb1' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#fb9fb1'
|
||||
} else if $in < 1day {
|
||||
'#ddb26f'
|
||||
} else if $in < 3day {
|
||||
'#acc267'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#acc267' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#12cfc0'
|
||||
} else if $in < 52wk {
|
||||
'#6fc2ef'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#d0d0d0'
|
||||
} else if $e < 1mb {
|
||||
'#12cfc0'
|
||||
} else {{ fg: '#6fc2ef' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_binary: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_block: { fg: '#6fc2ef' attr: 'b' }
|
||||
shape_bool: '#12cfc0'
|
||||
shape_closure: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_custom: '#acc267'
|
||||
shape_datetime: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_directory: '#12cfc0'
|
||||
shape_external: '#12cfc0'
|
||||
shape_external_resolved: '#12cfc0'
|
||||
shape_externalarg: { fg: '#acc267' attr: 'b' }
|
||||
shape_filepath: '#12cfc0'
|
||||
shape_flag: { fg: '#6fc2ef' attr: 'b' }
|
||||
shape_float: { fg: '#fb9fb1' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_globpattern: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_int: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_internalcall: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_keyword: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_list: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_literal: '#6fc2ef'
|
||||
shape_match_pattern: '#acc267'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#fb9fb1'
|
||||
shape_operator: '#ddb26f'
|
||||
shape_or: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_pipe: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_range: { fg: '#ddb26f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f5f5f5' attr: 'b' }
|
||||
shape_record: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_redirection: { fg: '#e1a3ee' attr: 'b' }
|
||||
shape_signature: { fg: '#acc267' attr: 'b' }
|
||||
shape_string: '#acc267'
|
||||
shape_string_interpolation: { fg: '#12cfc0' attr: 'b' }
|
||||
shape_table: { fg: '#6fc2ef' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6fc2ef' attr: 'u' }
|
||||
shape_variable: '#e1a3ee'
|
||||
|
||||
foreground: '#d0d0d0'
|
||||
background: '#151515'
|
||||
cursor: '#d0d0d0'
|
||||
|
||||
empty: '#6fc2ef'
|
||||
header: { fg: '#acc267' attr: 'b' }
|
||||
hints: '#505050'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#acc267' attr: 'b' }
|
||||
search_result: { fg: '#fb9fb1' bg: '#d0d0d0' }
|
||||
separator: '#d0d0d0'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#c372c2'
|
||||
block: '#7372c3'
|
||||
cell-path: '#d9d9d9'
|
||||
closure: '#72c2c3'
|
||||
custom: '#ffffff'
|
||||
duration: '#c2c372'
|
||||
float: '#dbaaaa'
|
||||
glob: '#ffffff'
|
||||
int: '#c372c2'
|
||||
list: '#72c2c3'
|
||||
nothing: '#c37372'
|
||||
range: '#c2c372'
|
||||
record: '#72c2c3'
|
||||
string: '#72c373'
|
||||
|
||||
bool: {|| if $in { '#aadadb' } else { '#c2c372' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#c37372' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#c37372'
|
||||
} else if $in < 1day {
|
||||
'#c2c372'
|
||||
} else if $in < 3day {
|
||||
'#72c373'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#72c373' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#72c2c3'
|
||||
} else if $in < 52wk {
|
||||
'#7372c3'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#d9d9d9'
|
||||
} else if $e < 1mb {
|
||||
'#72c2c3'
|
||||
} else {{ fg: '#7372c3' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#c372c2' attr: 'b' }
|
||||
shape_binary: { fg: '#c372c2' attr: 'b' }
|
||||
shape_block: { fg: '#7372c3' attr: 'b' }
|
||||
shape_bool: '#aadadb'
|
||||
shape_closure: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_custom: '#72c373'
|
||||
shape_datetime: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_directory: '#72c2c3'
|
||||
shape_external: '#72c2c3'
|
||||
shape_external_resolved: '#aadadb'
|
||||
shape_externalarg: { fg: '#72c373' attr: 'b' }
|
||||
shape_filepath: '#72c2c3'
|
||||
shape_flag: { fg: '#7372c3' attr: 'b' }
|
||||
shape_float: { fg: '#dbaaaa' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_int: { fg: '#c372c2' attr: 'b' }
|
||||
shape_internalcall: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_keyword: { fg: '#c372c2' attr: 'b' }
|
||||
shape_list: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_literal: '#7372c3'
|
||||
shape_match_pattern: '#72c373'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#c37372'
|
||||
shape_operator: '#c2c372'
|
||||
shape_or: { fg: '#c372c2' attr: 'b' }
|
||||
shape_pipe: { fg: '#c372c2' attr: 'b' }
|
||||
shape_range: { fg: '#c2c372' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_redirection: { fg: '#c372c2' attr: 'b' }
|
||||
shape_signature: { fg: '#72c373' attr: 'b' }
|
||||
shape_string: '#72c373'
|
||||
shape_string_interpolation: { fg: '#72c2c3' attr: 'b' }
|
||||
shape_table: { fg: '#7372c3' attr: 'b' }
|
||||
shape_vardecl: { fg: '#7372c3' attr: 'u' }
|
||||
shape_variable: '#c372c2'
|
||||
|
||||
foreground: '#d9e6f2'
|
||||
background: '#29262f'
|
||||
cursor: '#d9e6f2'
|
||||
|
||||
empty: '#7372c3'
|
||||
header: { fg: '#72c373' attr: 'b' }
|
||||
hints: '#323232'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#72c373' attr: 'b' }
|
||||
search_result: { fg: '#c37372' bg: '#d9d9d9' }
|
||||
separator: '#d9d9d9'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#c991e1'
|
||||
block: '#91ddff'
|
||||
cell-path: '#cbe3e7'
|
||||
closure: '#aaffe4'
|
||||
custom: '#a6b3cc'
|
||||
duration: '#ffe9aa'
|
||||
float: '#ff5458'
|
||||
glob: '#a6b3cc'
|
||||
int: '#c991e1'
|
||||
list: '#aaffe4'
|
||||
nothing: '#ff8080'
|
||||
range: '#ffe9aa'
|
||||
record: '#aaffe4'
|
||||
string: '#95ffa4'
|
||||
|
||||
bool: {|| if $in { '#63f2f1' } else { '#ffe9aa' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff8080' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff8080'
|
||||
} else if $in < 1day {
|
||||
'#ffe9aa'
|
||||
} else if $in < 3day {
|
||||
'#95ffa4'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#95ffa4' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#aaffe4'
|
||||
} else if $in < 52wk {
|
||||
'#91ddff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#cbe3e7'
|
||||
} else if $e < 1mb {
|
||||
'#aaffe4'
|
||||
} else {{ fg: '#91ddff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#c991e1' attr: 'b' }
|
||||
shape_binary: { fg: '#c991e1' attr: 'b' }
|
||||
shape_block: { fg: '#91ddff' attr: 'b' }
|
||||
shape_bool: '#63f2f1'
|
||||
shape_closure: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_custom: '#95ffa4'
|
||||
shape_datetime: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_directory: '#aaffe4'
|
||||
shape_external: '#aaffe4'
|
||||
shape_external_resolved: '#63f2f1'
|
||||
shape_externalarg: { fg: '#95ffa4' attr: 'b' }
|
||||
shape_filepath: '#aaffe4'
|
||||
shape_flag: { fg: '#91ddff' attr: 'b' }
|
||||
shape_float: { fg: '#ff5458' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_globpattern: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_int: { fg: '#c991e1' attr: 'b' }
|
||||
shape_internalcall: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_keyword: { fg: '#c991e1' attr: 'b' }
|
||||
shape_list: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_literal: '#91ddff'
|
||||
shape_match_pattern: '#95ffa4'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff8080'
|
||||
shape_operator: '#ffe9aa'
|
||||
shape_or: { fg: '#c991e1' attr: 'b' }
|
||||
shape_pipe: { fg: '#c991e1' attr: 'b' }
|
||||
shape_range: { fg: '#ffe9aa' attr: 'b' }
|
||||
shape_raw_string: { fg: '#a6b3cc' attr: 'b' }
|
||||
shape_record: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_redirection: { fg: '#c991e1' attr: 'b' }
|
||||
shape_signature: { fg: '#95ffa4' attr: 'b' }
|
||||
shape_string: '#95ffa4'
|
||||
shape_string_interpolation: { fg: '#aaffe4' attr: 'b' }
|
||||
shape_table: { fg: '#91ddff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#91ddff' attr: 'u' }
|
||||
shape_variable: '#c991e1'
|
||||
|
||||
foreground: '#cbe3e7'
|
||||
background: '#1e1c31'
|
||||
cursor: '#cbe3e7'
|
||||
|
||||
empty: '#91ddff'
|
||||
header: { fg: '#95ffa4' attr: 'b' }
|
||||
hints: '#100e23'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#95ffa4' attr: 'b' }
|
||||
search_result: { fg: '#ff8080' bg: '#cbe3e7' }
|
||||
separator: '#cbe3e7'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#724d7c'
|
||||
block: '#576d8c'
|
||||
cell-path: '#aea47f'
|
||||
closure: '#5c4f4b'
|
||||
custom: '#f4f4f4'
|
||||
duration: '#cc8b3f'
|
||||
float: '#ac3835'
|
||||
glob: '#f4f4f4'
|
||||
int: '#724d7c'
|
||||
list: '#5c4f4b'
|
||||
nothing: '#810009'
|
||||
range: '#cc8b3f'
|
||||
record: '#5c4f4b'
|
||||
string: '#48513b'
|
||||
|
||||
bool: {|| if $in { '#f3dbb2' } else { '#cc8b3f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#810009' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#810009'
|
||||
} else if $in < 1day {
|
||||
'#cc8b3f'
|
||||
} else if $in < 3day {
|
||||
'#48513b'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#48513b' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#5c4f4b'
|
||||
} else if $in < 52wk {
|
||||
'#576d8c'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#aea47f'
|
||||
} else if $e < 1mb {
|
||||
'#5c4f4b'
|
||||
} else {{ fg: '#576d8c' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#724d7c' attr: 'b' }
|
||||
shape_binary: { fg: '#724d7c' attr: 'b' }
|
||||
shape_block: { fg: '#576d8c' attr: 'b' }
|
||||
shape_bool: '#f3dbb2'
|
||||
shape_closure: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_custom: '#48513b'
|
||||
shape_datetime: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_directory: '#5c4f4b'
|
||||
shape_external: '#5c4f4b'
|
||||
shape_external_resolved: '#f3dbb2'
|
||||
shape_externalarg: { fg: '#48513b' attr: 'b' }
|
||||
shape_filepath: '#5c4f4b'
|
||||
shape_flag: { fg: '#576d8c' attr: 'b' }
|
||||
shape_float: { fg: '#ac3835' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_globpattern: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_int: { fg: '#724d7c' attr: 'b' }
|
||||
shape_internalcall: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_keyword: { fg: '#724d7c' attr: 'b' }
|
||||
shape_list: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_literal: '#576d8c'
|
||||
shape_match_pattern: '#48513b'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#810009'
|
||||
shape_operator: '#cc8b3f'
|
||||
shape_or: { fg: '#724d7c' attr: 'b' }
|
||||
shape_pipe: { fg: '#724d7c' attr: 'b' }
|
||||
shape_range: { fg: '#cc8b3f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f4f4f4' attr: 'b' }
|
||||
shape_record: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_redirection: { fg: '#724d7c' attr: 'b' }
|
||||
shape_signature: { fg: '#48513b' attr: 'b' }
|
||||
shape_string: '#48513b'
|
||||
shape_string_interpolation: { fg: '#5c4f4b' attr: 'b' }
|
||||
shape_table: { fg: '#576d8c' attr: 'b' }
|
||||
shape_vardecl: { fg: '#576d8c' attr: 'u' }
|
||||
shape_variable: '#724d7c'
|
||||
|
||||
foreground: '#aea47a'
|
||||
background: '#191c27'
|
||||
cursor: '#aea47a'
|
||||
|
||||
empty: '#576d8c'
|
||||
header: { fg: '#48513b' attr: 'b' }
|
||||
hints: '#555555'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#48513b' attr: 'b' }
|
||||
search_result: { fg: '#810009' bg: '#aea47f' }
|
||||
separator: '#aea47f'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#b888e2'
|
||||
block: '#639ee4'
|
||||
cell-path: '#a7a7a7'
|
||||
closure: '#4bb1a7'
|
||||
custom: '#ffffff'
|
||||
duration: '#c3ba63'
|
||||
float: '#dc657d'
|
||||
glob: '#ffffff'
|
||||
int: '#b888e2'
|
||||
list: '#4bb1a7'
|
||||
nothing: '#dc657d'
|
||||
range: '#c3ba63'
|
||||
record: '#4bb1a7'
|
||||
string: '#84b97c'
|
||||
|
||||
bool: {|| if $in { '#4bb1a7' } else { '#c3ba63' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#dc657d' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#dc657d'
|
||||
} else if $in < 1day {
|
||||
'#c3ba63'
|
||||
} else if $in < 3day {
|
||||
'#84b97c'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#84b97c' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#4bb1a7'
|
||||
} else if $in < 52wk {
|
||||
'#639ee4'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a7a7a7'
|
||||
} else if $e < 1mb {
|
||||
'#4bb1a7'
|
||||
} else {{ fg: '#639ee4' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#b888e2' attr: 'b' }
|
||||
shape_binary: { fg: '#b888e2' attr: 'b' }
|
||||
shape_block: { fg: '#639ee4' attr: 'b' }
|
||||
shape_bool: '#4bb1a7'
|
||||
shape_closure: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_custom: '#84b97c'
|
||||
shape_datetime: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_directory: '#4bb1a7'
|
||||
shape_external: '#4bb1a7'
|
||||
shape_external_resolved: '#4bb1a7'
|
||||
shape_externalarg: { fg: '#84b97c' attr: 'b' }
|
||||
shape_filepath: '#4bb1a7'
|
||||
shape_flag: { fg: '#639ee4' attr: 'b' }
|
||||
shape_float: { fg: '#dc657d' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_globpattern: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_int: { fg: '#b888e2' attr: 'b' }
|
||||
shape_internalcall: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_keyword: { fg: '#b888e2' attr: 'b' }
|
||||
shape_list: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_literal: '#639ee4'
|
||||
shape_match_pattern: '#84b97c'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#dc657d'
|
||||
shape_operator: '#c3ba63'
|
||||
shape_or: { fg: '#b888e2' attr: 'b' }
|
||||
shape_pipe: { fg: '#b888e2' attr: 'b' }
|
||||
shape_range: { fg: '#c3ba63' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_redirection: { fg: '#b888e2' attr: 'b' }
|
||||
shape_signature: { fg: '#84b97c' attr: 'b' }
|
||||
shape_string: '#84b97c'
|
||||
shape_string_interpolation: { fg: '#4bb1a7' attr: 'b' }
|
||||
shape_table: { fg: '#639ee4' attr: 'b' }
|
||||
shape_vardecl: { fg: '#639ee4' attr: 'u' }
|
||||
shape_variable: '#b888e2'
|
||||
|
||||
foreground: '#a7a7a7'
|
||||
background: '#191919'
|
||||
cursor: '#a7a7a7'
|
||||
|
||||
empty: '#639ee4'
|
||||
header: { fg: '#84b97c' attr: 'b' }
|
||||
hints: '#5f5a60'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#84b97c' attr: 'b' }
|
||||
search_result: { fg: '#dc657d' bg: '#a7a7a7' }
|
||||
separator: '#a7a7a7'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#aa759f'
|
||||
block: '#6a9fb5'
|
||||
cell-path: '#d0d0d0'
|
||||
closure: '#75b5aa'
|
||||
custom: '#f5f5f5'
|
||||
duration: '#f4bf75'
|
||||
float: '#ac4142'
|
||||
glob: '#f5f5f5'
|
||||
int: '#aa759f'
|
||||
list: '#75b5aa'
|
||||
nothing: '#ac4142'
|
||||
range: '#f4bf75'
|
||||
record: '#75b5aa'
|
||||
string: '#90a959'
|
||||
|
||||
bool: {|| if $in { '#75b5aa' } else { '#f4bf75' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ac4142' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ac4142'
|
||||
} else if $in < 1day {
|
||||
'#f4bf75'
|
||||
} else if $in < 3day {
|
||||
'#90a959'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#90a959' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#75b5aa'
|
||||
} else if $in < 52wk {
|
||||
'#6a9fb5'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#d0d0d0'
|
||||
} else if $e < 1mb {
|
||||
'#75b5aa'
|
||||
} else {{ fg: '#6a9fb5' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#aa759f' attr: 'b' }
|
||||
shape_binary: { fg: '#aa759f' attr: 'b' }
|
||||
shape_block: { fg: '#6a9fb5' attr: 'b' }
|
||||
shape_bool: '#75b5aa'
|
||||
shape_closure: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_custom: '#90a959'
|
||||
shape_datetime: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_directory: '#75b5aa'
|
||||
shape_external: '#75b5aa'
|
||||
shape_external_resolved: '#75b5aa'
|
||||
shape_externalarg: { fg: '#90a959' attr: 'b' }
|
||||
shape_filepath: '#75b5aa'
|
||||
shape_flag: { fg: '#6a9fb5' attr: 'b' }
|
||||
shape_float: { fg: '#ac4142' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_int: { fg: '#aa759f' attr: 'b' }
|
||||
shape_internalcall: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_keyword: { fg: '#aa759f' attr: 'b' }
|
||||
shape_list: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_literal: '#6a9fb5'
|
||||
shape_match_pattern: '#90a959'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ac4142'
|
||||
shape_operator: '#f4bf75'
|
||||
shape_or: { fg: '#aa759f' attr: 'b' }
|
||||
shape_pipe: { fg: '#aa759f' attr: 'b' }
|
||||
shape_range: { fg: '#f4bf75' attr: 'b' }
|
||||
shape_raw_string: { fg: '#f5f5f5' attr: 'b' }
|
||||
shape_record: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_redirection: { fg: '#aa759f' attr: 'b' }
|
||||
shape_signature: { fg: '#90a959' attr: 'b' }
|
||||
shape_string: '#90a959'
|
||||
shape_string_interpolation: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_table: { fg: '#6a9fb5' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6a9fb5' attr: 'u' }
|
||||
shape_variable: '#aa759f'
|
||||
|
||||
foreground: '#d0d0d0'
|
||||
background: '#151515'
|
||||
cursor: '#d0d0d0'
|
||||
|
||||
empty: '#6a9fb5'
|
||||
header: { fg: '#90a959' attr: 'b' }
|
||||
hints: '#505050'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#90a959' attr: 'b' }
|
||||
search_result: { fg: '#ac4142' bg: '#d0d0d0' }
|
||||
separator: '#d0d0d0'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#aa759f'
|
||||
block: '#6a9fb5'
|
||||
cell-path: '#303030'
|
||||
closure: '#75b5aa'
|
||||
custom: '#151515'
|
||||
duration: '#f4bf75'
|
||||
float: '#ac4142'
|
||||
glob: '#151515'
|
||||
int: '#aa759f'
|
||||
list: '#75b5aa'
|
||||
nothing: '#ac4142'
|
||||
range: '#f4bf75'
|
||||
record: '#75b5aa'
|
||||
string: '#90a959'
|
||||
|
||||
bool: {|| if $in { '#75b5aa' } else { '#f4bf75' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ac4142' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ac4142'
|
||||
} else if $in < 1day {
|
||||
'#f4bf75'
|
||||
} else if $in < 3day {
|
||||
'#90a959'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#90a959' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#75b5aa'
|
||||
} else if $in < 52wk {
|
||||
'#6a9fb5'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#303030'
|
||||
} else if $e < 1mb {
|
||||
'#75b5aa'
|
||||
} else {{ fg: '#6a9fb5' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#aa759f' attr: 'b' }
|
||||
shape_binary: { fg: '#aa759f' attr: 'b' }
|
||||
shape_block: { fg: '#6a9fb5' attr: 'b' }
|
||||
shape_bool: '#75b5aa'
|
||||
shape_closure: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_custom: '#90a959'
|
||||
shape_datetime: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_directory: '#75b5aa'
|
||||
shape_external: '#75b5aa'
|
||||
shape_external_resolved: '#75b5aa'
|
||||
shape_externalarg: { fg: '#90a959' attr: 'b' }
|
||||
shape_filepath: '#75b5aa'
|
||||
shape_flag: { fg: '#6a9fb5' attr: 'b' }
|
||||
shape_float: { fg: '#ac4142' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_globpattern: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_int: { fg: '#aa759f' attr: 'b' }
|
||||
shape_internalcall: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_keyword: { fg: '#aa759f' attr: 'b' }
|
||||
shape_list: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_literal: '#6a9fb5'
|
||||
shape_match_pattern: '#90a959'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ac4142'
|
||||
shape_operator: '#f4bf75'
|
||||
shape_or: { fg: '#aa759f' attr: 'b' }
|
||||
shape_pipe: { fg: '#aa759f' attr: 'b' }
|
||||
shape_range: { fg: '#f4bf75' attr: 'b' }
|
||||
shape_raw_string: { fg: '#151515' attr: 'b' }
|
||||
shape_record: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_redirection: { fg: '#aa759f' attr: 'b' }
|
||||
shape_signature: { fg: '#90a959' attr: 'b' }
|
||||
shape_string: '#90a959'
|
||||
shape_string_interpolation: { fg: '#75b5aa' attr: 'b' }
|
||||
shape_table: { fg: '#6a9fb5' attr: 'b' }
|
||||
shape_vardecl: { fg: '#6a9fb5' attr: 'u' }
|
||||
shape_variable: '#aa759f'
|
||||
|
||||
foreground: '#303030'
|
||||
background: '#f5f5f5'
|
||||
cursor: '#303030'
|
||||
|
||||
empty: '#6a9fb5'
|
||||
header: { fg: '#90a959' attr: 'b' }
|
||||
hints: '#b0b0b0'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#90a959' attr: 'b' }
|
||||
search_result: { fg: '#ac4142' bg: '#303030' }
|
||||
separator: '#303030'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#75507b'
|
||||
block: '#3465a4'
|
||||
cell-path: '#d3d7cf'
|
||||
closure: '#06989a'
|
||||
custom: '#eeeeec'
|
||||
duration: '#c4a000'
|
||||
float: '#ef2929'
|
||||
glob: '#eeeeec'
|
||||
int: '#75507b'
|
||||
list: '#06989a'
|
||||
nothing: '#cc0000'
|
||||
range: '#c4a000'
|
||||
record: '#06989a'
|
||||
string: '#4e9a06'
|
||||
|
||||
bool: {|| if $in { '#34e2e2' } else { '#c4a000' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#cc0000' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#cc0000'
|
||||
} else if $in < 1day {
|
||||
'#c4a000'
|
||||
} else if $in < 3day {
|
||||
'#4e9a06'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#4e9a06' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#06989a'
|
||||
} else if $in < 52wk {
|
||||
'#3465a4'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#d3d7cf'
|
||||
} else if $e < 1mb {
|
||||
'#06989a'
|
||||
} else {{ fg: '#3465a4' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#75507b' attr: 'b' }
|
||||
shape_binary: { fg: '#75507b' attr: 'b' }
|
||||
shape_block: { fg: '#3465a4' attr: 'b' }
|
||||
shape_bool: '#34e2e2'
|
||||
shape_closure: { fg: '#06989a' attr: 'b' }
|
||||
shape_custom: '#4e9a06'
|
||||
shape_datetime: { fg: '#06989a' attr: 'b' }
|
||||
shape_directory: '#06989a'
|
||||
shape_external: '#06989a'
|
||||
shape_external_resolved: '#34e2e2'
|
||||
shape_externalarg: { fg: '#4e9a06' attr: 'b' }
|
||||
shape_filepath: '#06989a'
|
||||
shape_flag: { fg: '#3465a4' attr: 'b' }
|
||||
shape_float: { fg: '#ef2929' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#06989a' attr: 'b' }
|
||||
shape_globpattern: { fg: '#06989a' attr: 'b' }
|
||||
shape_int: { fg: '#75507b' attr: 'b' }
|
||||
shape_internalcall: { fg: '#06989a' attr: 'b' }
|
||||
shape_keyword: { fg: '#75507b' attr: 'b' }
|
||||
shape_list: { fg: '#06989a' attr: 'b' }
|
||||
shape_literal: '#3465a4'
|
||||
shape_match_pattern: '#4e9a06'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#cc0000'
|
||||
shape_operator: '#c4a000'
|
||||
shape_or: { fg: '#75507b' attr: 'b' }
|
||||
shape_pipe: { fg: '#75507b' attr: 'b' }
|
||||
shape_range: { fg: '#c4a000' attr: 'b' }
|
||||
shape_raw_string: { fg: '#eeeeec' attr: 'b' }
|
||||
shape_record: { fg: '#06989a' attr: 'b' }
|
||||
shape_redirection: { fg: '#75507b' attr: 'b' }
|
||||
shape_signature: { fg: '#4e9a06' attr: 'b' }
|
||||
shape_string: '#4e9a06'
|
||||
shape_string_interpolation: { fg: '#06989a' attr: 'b' }
|
||||
shape_table: { fg: '#3465a4' attr: 'b' }
|
||||
shape_vardecl: { fg: '#3465a4' attr: 'u' }
|
||||
shape_variable: '#75507b'
|
||||
|
||||
foreground: '#ffffff'
|
||||
background: '#300a24'
|
||||
cursor: '#ffffff'
|
||||
|
||||
empty: '#3465a4'
|
||||
header: { fg: '#4e9a06' attr: 'b' }
|
||||
hints: '#555753'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#4e9a06' attr: 'b' }
|
||||
search_result: { fg: '#cc0000' bg: '#d3d7cf' }
|
||||
separator: '#d3d7cf'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#9f00bd'
|
||||
block: '#135cd0'
|
||||
cell-path: '#b3b3b3'
|
||||
closure: '#33c3c1'
|
||||
custom: '#eeeeec'
|
||||
duration: '#fa701d'
|
||||
float: '#fb0416'
|
||||
glob: '#eeeeec'
|
||||
int: '#9f00bd'
|
||||
list: '#33c3c1'
|
||||
nothing: '#f8282a'
|
||||
range: '#fa701d'
|
||||
record: '#33c3c1'
|
||||
string: '#328a5d'
|
||||
|
||||
bool: {|| if $in { '#3ad5ce' } else { '#fa701d' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#f8282a' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#f8282a'
|
||||
} else if $in < 1day {
|
||||
'#fa701d'
|
||||
} else if $in < 3day {
|
||||
'#328a5d'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#328a5d' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#33c3c1'
|
||||
} else if $in < 52wk {
|
||||
'#135cd0'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#b3b3b3'
|
||||
} else if $e < 1mb {
|
||||
'#33c3c1'
|
||||
} else {{ fg: '#135cd0' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_binary: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_block: { fg: '#135cd0' attr: 'b' }
|
||||
shape_bool: '#3ad5ce'
|
||||
shape_closure: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_custom: '#328a5d'
|
||||
shape_datetime: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_directory: '#33c3c1'
|
||||
shape_external: '#33c3c1'
|
||||
shape_external_resolved: '#3ad5ce'
|
||||
shape_externalarg: { fg: '#328a5d' attr: 'b' }
|
||||
shape_filepath: '#33c3c1'
|
||||
shape_flag: { fg: '#135cd0' attr: 'b' }
|
||||
shape_float: { fg: '#fb0416' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_globpattern: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_int: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_internalcall: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_keyword: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_list: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_literal: '#135cd0'
|
||||
shape_match_pattern: '#328a5d'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#f8282a'
|
||||
shape_operator: '#fa701d'
|
||||
shape_or: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_pipe: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_range: { fg: '#fa701d' attr: 'b' }
|
||||
shape_raw_string: { fg: '#eeeeec' attr: 'b' }
|
||||
shape_record: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_redirection: { fg: '#9f00bd' attr: 'b' }
|
||||
shape_signature: { fg: '#328a5d' attr: 'b' }
|
||||
shape_string: '#328a5d'
|
||||
shape_string_interpolation: { fg: '#33c3c1' attr: 'b' }
|
||||
shape_table: { fg: '#135cd0' attr: 'b' }
|
||||
shape_vardecl: { fg: '#135cd0' attr: 'u' }
|
||||
shape_variable: '#9f00bd'
|
||||
|
||||
foreground: '#262626'
|
||||
background: '#ffffff'
|
||||
cursor: '#262626'
|
||||
|
||||
empty: '#135cd0'
|
||||
header: { fg: '#328a5d' attr: 'b' }
|
||||
hints: '#555753'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#328a5d' attr: 'b' }
|
||||
search_result: { fg: '#f8282a' bg: '#b3b3b3' }
|
||||
separator: '#b3b3b3'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#781aa0'
|
||||
block: '#8ff586'
|
||||
cell-path: '#ba46b2'
|
||||
closure: '#8ff586'
|
||||
custom: '#8ff586'
|
||||
duration: '#e9e75c'
|
||||
float: '#d4312e'
|
||||
glob: '#8ff586'
|
||||
int: '#781aa0'
|
||||
list: '#8ff586'
|
||||
nothing: '#ff2320'
|
||||
range: '#e9e75c'
|
||||
record: '#8ff586'
|
||||
string: '#3ba5ff'
|
||||
|
||||
bool: {|| if $in { '#6cbc67' } else { '#e9e75c' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff2320' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff2320'
|
||||
} else if $in < 1day {
|
||||
'#e9e75c'
|
||||
} else if $in < 3day {
|
||||
'#3ba5ff'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#3ba5ff' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#8ff586'
|
||||
} else if $in < 52wk {
|
||||
'#8ff586'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#ba46b2'
|
||||
} else if $e < 1mb {
|
||||
'#8ff586'
|
||||
} else {{ fg: '#8ff586' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#781aa0' attr: 'b' }
|
||||
shape_binary: { fg: '#781aa0' attr: 'b' }
|
||||
shape_block: { fg: '#8ff586' attr: 'b' }
|
||||
shape_bool: '#6cbc67'
|
||||
shape_closure: { fg: '#8ff586' attr: 'b' }
|
||||
shape_custom: '#3ba5ff'
|
||||
shape_datetime: { fg: '#8ff586' attr: 'b' }
|
||||
shape_directory: '#8ff586'
|
||||
shape_external: '#8ff586'
|
||||
shape_external_resolved: '#6cbc67'
|
||||
shape_externalarg: { fg: '#3ba5ff' attr: 'b' }
|
||||
shape_filepath: '#8ff586'
|
||||
shape_flag: { fg: '#8ff586' attr: 'b' }
|
||||
shape_float: { fg: '#d4312e' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#8ff586' attr: 'b' }
|
||||
shape_globpattern: { fg: '#8ff586' attr: 'b' }
|
||||
shape_int: { fg: '#781aa0' attr: 'b' }
|
||||
shape_internalcall: { fg: '#8ff586' attr: 'b' }
|
||||
shape_keyword: { fg: '#781aa0' attr: 'b' }
|
||||
shape_list: { fg: '#8ff586' attr: 'b' }
|
||||
shape_literal: '#8ff586'
|
||||
shape_match_pattern: '#3ba5ff'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff2320'
|
||||
shape_operator: '#e9e75c'
|
||||
shape_or: { fg: '#781aa0' attr: 'b' }
|
||||
shape_pipe: { fg: '#781aa0' attr: 'b' }
|
||||
shape_range: { fg: '#e9e75c' attr: 'b' }
|
||||
shape_raw_string: { fg: '#8ff586' attr: 'b' }
|
||||
shape_record: { fg: '#8ff586' attr: 'b' }
|
||||
shape_redirection: { fg: '#781aa0' attr: 'b' }
|
||||
shape_signature: { fg: '#3ba5ff' attr: 'b' }
|
||||
shape_string: '#3ba5ff'
|
||||
shape_string_interpolation: { fg: '#8ff586' attr: 'b' }
|
||||
shape_table: { fg: '#8ff586' attr: 'b' }
|
||||
shape_vardecl: { fg: '#8ff586' attr: 'u' }
|
||||
shape_variable: '#781aa0'
|
||||
|
||||
foreground: '#8ff586'
|
||||
background: '#142838'
|
||||
cursor: '#8ff586'
|
||||
|
||||
empty: '#8ff586'
|
||||
header: { fg: '#3ba5ff' attr: 'b' }
|
||||
hints: '#fff688'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#3ba5ff' attr: 'b' }
|
||||
search_result: { fg: '#ff2320' bg: '#ba46b2' }
|
||||
separator: '#ba46b2'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#ff005d'
|
||||
block: '#1460d2'
|
||||
cell-path: '#bbbbbb'
|
||||
closure: '#00bbbb'
|
||||
custom: '#ffffff'
|
||||
duration: '#ffe50a'
|
||||
float: '#f40e17'
|
||||
glob: '#ffffff'
|
||||
int: '#ff005d'
|
||||
list: '#00bbbb'
|
||||
nothing: '#ff0000'
|
||||
range: '#ffe50a'
|
||||
record: '#00bbbb'
|
||||
string: '#38de21'
|
||||
|
||||
bool: {|| if $in { '#6ae3fa' } else { '#ffe50a' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff0000' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff0000'
|
||||
} else if $in < 1day {
|
||||
'#ffe50a'
|
||||
} else if $in < 3day {
|
||||
'#38de21'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#38de21' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#00bbbb'
|
||||
} else if $in < 52wk {
|
||||
'#1460d2'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bbbbbb'
|
||||
} else if $e < 1mb {
|
||||
'#00bbbb'
|
||||
} else {{ fg: '#1460d2' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#ff005d' attr: 'b' }
|
||||
shape_binary: { fg: '#ff005d' attr: 'b' }
|
||||
shape_block: { fg: '#1460d2' attr: 'b' }
|
||||
shape_bool: '#6ae3fa'
|
||||
shape_closure: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_custom: '#38de21'
|
||||
shape_datetime: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_directory: '#00bbbb'
|
||||
shape_external: '#00bbbb'
|
||||
shape_external_resolved: '#6ae3fa'
|
||||
shape_externalarg: { fg: '#38de21' attr: 'b' }
|
||||
shape_filepath: '#00bbbb'
|
||||
shape_flag: { fg: '#1460d2' attr: 'b' }
|
||||
shape_float: { fg: '#f40e17' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_globpattern: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_int: { fg: '#ff005d' attr: 'b' }
|
||||
shape_internalcall: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_keyword: { fg: '#ff005d' attr: 'b' }
|
||||
shape_list: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_literal: '#1460d2'
|
||||
shape_match_pattern: '#38de21'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff0000'
|
||||
shape_operator: '#ffe50a'
|
||||
shape_or: { fg: '#ff005d' attr: 'b' }
|
||||
shape_pipe: { fg: '#ff005d' attr: 'b' }
|
||||
shape_range: { fg: '#ffe50a' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_redirection: { fg: '#ff005d' attr: 'b' }
|
||||
shape_signature: { fg: '#38de21' attr: 'b' }
|
||||
shape_string: '#38de21'
|
||||
shape_string_interpolation: { fg: '#00bbbb' attr: 'b' }
|
||||
shape_table: { fg: '#1460d2' attr: 'b' }
|
||||
shape_vardecl: { fg: '#1460d2' attr: 'u' }
|
||||
shape_variable: '#ff005d'
|
||||
|
||||
foreground: '#ffffff'
|
||||
background: '#132738'
|
||||
cursor: '#ffffff'
|
||||
|
||||
empty: '#1460d2'
|
||||
header: { fg: '#38de21' attr: 'b' }
|
||||
hints: '#555555'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#38de21' attr: 'b' }
|
||||
search_result: { fg: '#ff0000' bg: '#bbbbbb' }
|
||||
separator: '#bbbbbb'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#c59820'
|
||||
block: '#484d79'
|
||||
cell-path: '#9ea7a6'
|
||||
closure: '#b02f30'
|
||||
custom: '#b5d8f6'
|
||||
duration: '#a03b1e'
|
||||
float: '#2a5491'
|
||||
glob: '#b5d8f6'
|
||||
int: '#c59820'
|
||||
list: '#b02f30'
|
||||
nothing: '#2a5491'
|
||||
range: '#a03b1e'
|
||||
record: '#b02f30'
|
||||
string: '#237986'
|
||||
|
||||
bool: {|| if $in { '#b02f30' } else { '#a03b1e' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#2a5491' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#2a5491'
|
||||
} else if $in < 1day {
|
||||
'#a03b1e'
|
||||
} else if $in < 3day {
|
||||
'#237986'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#237986' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#b02f30'
|
||||
} else if $in < 52wk {
|
||||
'#484d79'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#9ea7a6'
|
||||
} else if $e < 1mb {
|
||||
'#b02f30'
|
||||
} else {{ fg: '#484d79' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#c59820' attr: 'b' }
|
||||
shape_binary: { fg: '#c59820' attr: 'b' }
|
||||
shape_block: { fg: '#484d79' attr: 'b' }
|
||||
shape_bool: '#b02f30'
|
||||
shape_closure: { fg: '#b02f30' attr: 'b' }
|
||||
shape_custom: '#237986'
|
||||
shape_datetime: { fg: '#b02f30' attr: 'b' }
|
||||
shape_directory: '#b02f30'
|
||||
shape_external: '#b02f30'
|
||||
shape_external_resolved: '#b02f30'
|
||||
shape_externalarg: { fg: '#237986' attr: 'b' }
|
||||
shape_filepath: '#b02f30'
|
||||
shape_flag: { fg: '#484d79' attr: 'b' }
|
||||
shape_float: { fg: '#2a5491' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#b02f30' attr: 'b' }
|
||||
shape_globpattern: { fg: '#b02f30' attr: 'b' }
|
||||
shape_int: { fg: '#c59820' attr: 'b' }
|
||||
shape_internalcall: { fg: '#b02f30' attr: 'b' }
|
||||
shape_keyword: { fg: '#c59820' attr: 'b' }
|
||||
shape_list: { fg: '#b02f30' attr: 'b' }
|
||||
shape_literal: '#484d79'
|
||||
shape_match_pattern: '#237986'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#2a5491'
|
||||
shape_operator: '#a03b1e'
|
||||
shape_or: { fg: '#c59820' attr: 'b' }
|
||||
shape_pipe: { fg: '#c59820' attr: 'b' }
|
||||
shape_range: { fg: '#a03b1e' attr: 'b' }
|
||||
shape_raw_string: { fg: '#b5d8f6' attr: 'b' }
|
||||
shape_record: { fg: '#b02f30' attr: 'b' }
|
||||
shape_redirection: { fg: '#c59820' attr: 'b' }
|
||||
shape_signature: { fg: '#237986' attr: 'b' }
|
||||
shape_string: '#237986'
|
||||
shape_string_interpolation: { fg: '#b02f30' attr: 'b' }
|
||||
shape_table: { fg: '#484d79' attr: 'b' }
|
||||
shape_vardecl: { fg: '#484d79' attr: 'u' }
|
||||
shape_variable: '#c59820'
|
||||
|
||||
foreground: '#9ea7a6'
|
||||
background: '#232c31'
|
||||
cursor: '#9ea7a6'
|
||||
|
||||
empty: '#484d79'
|
||||
header: { fg: '#237986' attr: 'b' }
|
||||
hints: '#3f4944'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#237986' attr: 'b' }
|
||||
search_result: { fg: '#2a5491' bg: '#9ea7a6' }
|
||||
separator: '#9ea7a6'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#afafd7'
|
||||
block: '#87afd7'
|
||||
cell-path: '#c6c6c6'
|
||||
closure: '#87d7d7'
|
||||
custom: '#eeeeee'
|
||||
duration: '#d7d7af'
|
||||
float: '#ffafaf'
|
||||
glob: '#eeeeee'
|
||||
int: '#afafd7'
|
||||
list: '#87d7d7'
|
||||
nothing: '#d78787'
|
||||
range: '#d7d7af'
|
||||
record: '#87d7d7'
|
||||
string: '#87af5f'
|
||||
|
||||
bool: {|| if $in { '#5fd7d7' } else { '#d7d7af' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d78787' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d78787'
|
||||
} else if $in < 1day {
|
||||
'#d7d7af'
|
||||
} else if $in < 3day {
|
||||
'#87af5f'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#87af5f' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#87d7d7'
|
||||
} else if $in < 52wk {
|
||||
'#87afd7'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c6c6c6'
|
||||
} else if $e < 1mb {
|
||||
'#87d7d7'
|
||||
} else {{ fg: '#87afd7' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#afafd7' attr: 'b' }
|
||||
shape_binary: { fg: '#afafd7' attr: 'b' }
|
||||
shape_block: { fg: '#87afd7' attr: 'b' }
|
||||
shape_bool: '#5fd7d7'
|
||||
shape_closure: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_custom: '#87af5f'
|
||||
shape_datetime: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_directory: '#87d7d7'
|
||||
shape_external: '#87d7d7'
|
||||
shape_external_resolved: '#5fd7d7'
|
||||
shape_externalarg: { fg: '#87af5f' attr: 'b' }
|
||||
shape_filepath: '#87d7d7'
|
||||
shape_flag: { fg: '#87afd7' attr: 'b' }
|
||||
shape_float: { fg: '#ffafaf' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_globpattern: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_int: { fg: '#afafd7' attr: 'b' }
|
||||
shape_internalcall: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_keyword: { fg: '#afafd7' attr: 'b' }
|
||||
shape_list: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_literal: '#87afd7'
|
||||
shape_match_pattern: '#87af5f'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d78787'
|
||||
shape_operator: '#d7d7af'
|
||||
shape_or: { fg: '#afafd7' attr: 'b' }
|
||||
shape_pipe: { fg: '#afafd7' attr: 'b' }
|
||||
shape_range: { fg: '#d7d7af' attr: 'b' }
|
||||
shape_raw_string: { fg: '#eeeeee' attr: 'b' }
|
||||
shape_record: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_redirection: { fg: '#afafd7' attr: 'b' }
|
||||
shape_signature: { fg: '#87af5f' attr: 'b' }
|
||||
shape_string: '#87af5f'
|
||||
shape_string_interpolation: { fg: '#87d7d7' attr: 'b' }
|
||||
shape_table: { fg: '#87afd7' attr: 'b' }
|
||||
shape_vardecl: { fg: '#87afd7' attr: 'u' }
|
||||
shape_variable: '#afafd7'
|
||||
|
||||
foreground: '#c6c6c6'
|
||||
background: '#262626'
|
||||
cursor: '#c6c6c6'
|
||||
|
||||
empty: '#87afd7'
|
||||
header: { fg: '#87af5f' attr: 'b' }
|
||||
hints: '#626262'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#87af5f' attr: 'b' }
|
||||
search_result: { fg: '#d78787' bg: '#c6c6c6' }
|
||||
separator: '#c6c6c6'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#692f50'
|
||||
block: '#8c87b0'
|
||||
cell-path: '#68525a'
|
||||
closure: '#e8a866'
|
||||
custom: '#b0949d'
|
||||
duration: '#ab311b'
|
||||
float: '#c5255d'
|
||||
glob: '#b0949d'
|
||||
int: '#692f50'
|
||||
list: '#e8a866'
|
||||
nothing: '#91002b'
|
||||
range: '#ab311b'
|
||||
record: '#e8a866'
|
||||
string: '#579524'
|
||||
|
||||
bool: {|| if $in { '#ffceaf' } else { '#ab311b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#91002b' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#91002b'
|
||||
} else if $in < 1day {
|
||||
'#ab311b'
|
||||
} else if $in < 3day {
|
||||
'#579524'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#579524' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#e8a866'
|
||||
} else if $in < 52wk {
|
||||
'#8c87b0'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#68525a'
|
||||
} else if $e < 1mb {
|
||||
'#e8a866'
|
||||
} else {{ fg: '#8c87b0' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#692f50' attr: 'b' }
|
||||
shape_binary: { fg: '#692f50' attr: 'b' }
|
||||
shape_block: { fg: '#8c87b0' attr: 'b' }
|
||||
shape_bool: '#ffceaf'
|
||||
shape_closure: { fg: '#e8a866' attr: 'b' }
|
||||
shape_custom: '#579524'
|
||||
shape_datetime: { fg: '#e8a866' attr: 'b' }
|
||||
shape_directory: '#e8a866'
|
||||
shape_external: '#e8a866'
|
||||
shape_external_resolved: '#ffceaf'
|
||||
shape_externalarg: { fg: '#579524' attr: 'b' }
|
||||
shape_filepath: '#e8a866'
|
||||
shape_flag: { fg: '#8c87b0' attr: 'b' }
|
||||
shape_float: { fg: '#c5255d' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#e8a866' attr: 'b' }
|
||||
shape_globpattern: { fg: '#e8a866' attr: 'b' }
|
||||
shape_int: { fg: '#692f50' attr: 'b' }
|
||||
shape_internalcall: { fg: '#e8a866' attr: 'b' }
|
||||
shape_keyword: { fg: '#692f50' attr: 'b' }
|
||||
shape_list: { fg: '#e8a866' attr: 'b' }
|
||||
shape_literal: '#8c87b0'
|
||||
shape_match_pattern: '#579524'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#91002b'
|
||||
shape_operator: '#ab311b'
|
||||
shape_or: { fg: '#692f50' attr: 'b' }
|
||||
shape_pipe: { fg: '#692f50' attr: 'b' }
|
||||
shape_range: { fg: '#ab311b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#b0949d' attr: 'b' }
|
||||
shape_record: { fg: '#e8a866' attr: 'b' }
|
||||
shape_redirection: { fg: '#692f50' attr: 'b' }
|
||||
shape_signature: { fg: '#579524' attr: 'b' }
|
||||
shape_string: '#579524'
|
||||
shape_string_interpolation: { fg: '#e8a866' attr: 'b' }
|
||||
shape_table: { fg: '#8c87b0' attr: 'b' }
|
||||
shape_vardecl: { fg: '#8c87b0' attr: 'u' }
|
||||
shape_variable: '#692f50'
|
||||
|
||||
foreground: '#68525a'
|
||||
background: '#150707'
|
||||
cursor: '#68525a'
|
||||
|
||||
empty: '#8c87b0'
|
||||
header: { fg: '#579524' attr: 'b' }
|
||||
hints: '#3d2b2e'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#579524' attr: 'b' }
|
||||
search_result: { fg: '#91002b' bg: '#68525a' }
|
||||
separator: '#68525a'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#bb99b4'
|
||||
block: '#7297b9'
|
||||
cell-path: '#8b8198'
|
||||
closure: '#69a9a7'
|
||||
custom: '#585062'
|
||||
duration: '#dcb16c'
|
||||
float: '#d57e85'
|
||||
glob: '#585062'
|
||||
int: '#bb99b4'
|
||||
list: '#69a9a7'
|
||||
nothing: '#d57e85'
|
||||
range: '#dcb16c'
|
||||
record: '#69a9a7'
|
||||
string: '#a3b367'
|
||||
|
||||
bool: {|| if $in { '#69a9a7' } else { '#dcb16c' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#d57e85' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#d57e85'
|
||||
} else if $in < 1day {
|
||||
'#dcb16c'
|
||||
} else if $in < 3day {
|
||||
'#a3b367'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#a3b367' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#69a9a7'
|
||||
} else if $in < 52wk {
|
||||
'#7297b9'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#8b8198'
|
||||
} else if $e < 1mb {
|
||||
'#69a9a7'
|
||||
} else {{ fg: '#7297b9' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_binary: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_block: { fg: '#7297b9' attr: 'b' }
|
||||
shape_bool: '#69a9a7'
|
||||
shape_closure: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_custom: '#a3b367'
|
||||
shape_datetime: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_directory: '#69a9a7'
|
||||
shape_external: '#69a9a7'
|
||||
shape_external_resolved: '#69a9a7'
|
||||
shape_externalarg: { fg: '#a3b367' attr: 'b' }
|
||||
shape_filepath: '#69a9a7'
|
||||
shape_flag: { fg: '#7297b9' attr: 'b' }
|
||||
shape_float: { fg: '#d57e85' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_globpattern: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_int: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_internalcall: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_keyword: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_list: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_literal: '#7297b9'
|
||||
shape_match_pattern: '#a3b367'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#d57e85'
|
||||
shape_operator: '#dcb16c'
|
||||
shape_or: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_pipe: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_range: { fg: '#dcb16c' attr: 'b' }
|
||||
shape_raw_string: { fg: '#585062' attr: 'b' }
|
||||
shape_record: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_redirection: { fg: '#bb99b4' attr: 'b' }
|
||||
shape_signature: { fg: '#a3b367' attr: 'b' }
|
||||
shape_string: '#a3b367'
|
||||
shape_string_interpolation: { fg: '#69a9a7' attr: 'b' }
|
||||
shape_table: { fg: '#7297b9' attr: 'b' }
|
||||
shape_vardecl: { fg: '#7297b9' attr: 'u' }
|
||||
shape_variable: '#bb99b4'
|
||||
|
||||
foreground: '#8b8198'
|
||||
background: '#fbf1f2'
|
||||
cursor: '#8b8198'
|
||||
|
||||
empty: '#7297b9'
|
||||
header: { fg: '#a3b367' attr: 'b' }
|
||||
hints: '#bfb9c6'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#a3b367' attr: 'b' }
|
||||
search_result: { fg: '#d57e85' bg: '#8b8198' }
|
||||
separator: '#8b8198'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#a90d91'
|
||||
block: '#0000ff'
|
||||
cell-path: '#404040'
|
||||
closure: '#318495'
|
||||
custom: '#5e5e5e'
|
||||
duration: '#826b28'
|
||||
float: '#c41a15'
|
||||
glob: '#5e5e5e'
|
||||
int: '#a90d91'
|
||||
list: '#318495'
|
||||
nothing: '#c41a15'
|
||||
range: '#826b28'
|
||||
record: '#318495'
|
||||
string: '#007400'
|
||||
|
||||
bool: {|| if $in { '#318495' } else { '#826b28' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#c41a15' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#c41a15'
|
||||
} else if $in < 1day {
|
||||
'#826b28'
|
||||
} else if $in < 3day {
|
||||
'#007400'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#007400' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#318495'
|
||||
} else if $in < 52wk {
|
||||
'#0000ff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#404040'
|
||||
} else if $e < 1mb {
|
||||
'#318495'
|
||||
} else {{ fg: '#0000ff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#a90d91' attr: 'b' }
|
||||
shape_binary: { fg: '#a90d91' attr: 'b' }
|
||||
shape_block: { fg: '#0000ff' attr: 'b' }
|
||||
shape_bool: '#318495'
|
||||
shape_closure: { fg: '#318495' attr: 'b' }
|
||||
shape_custom: '#007400'
|
||||
shape_datetime: { fg: '#318495' attr: 'b' }
|
||||
shape_directory: '#318495'
|
||||
shape_external: '#318495'
|
||||
shape_external_resolved: '#318495'
|
||||
shape_externalarg: { fg: '#007400' attr: 'b' }
|
||||
shape_filepath: '#318495'
|
||||
shape_flag: { fg: '#0000ff' attr: 'b' }
|
||||
shape_float: { fg: '#c41a15' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#318495' attr: 'b' }
|
||||
shape_globpattern: { fg: '#318495' attr: 'b' }
|
||||
shape_int: { fg: '#a90d91' attr: 'b' }
|
||||
shape_internalcall: { fg: '#318495' attr: 'b' }
|
||||
shape_keyword: { fg: '#a90d91' attr: 'b' }
|
||||
shape_list: { fg: '#318495' attr: 'b' }
|
||||
shape_literal: '#0000ff'
|
||||
shape_match_pattern: '#007400'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#c41a15'
|
||||
shape_operator: '#826b28'
|
||||
shape_or: { fg: '#a90d91' attr: 'b' }
|
||||
shape_pipe: { fg: '#a90d91' attr: 'b' }
|
||||
shape_range: { fg: '#826b28' attr: 'b' }
|
||||
shape_raw_string: { fg: '#5e5e5e' attr: 'b' }
|
||||
shape_record: { fg: '#318495' attr: 'b' }
|
||||
shape_redirection: { fg: '#a90d91' attr: 'b' }
|
||||
shape_signature: { fg: '#007400' attr: 'b' }
|
||||
shape_string: '#007400'
|
||||
shape_string_interpolation: { fg: '#318495' attr: 'b' }
|
||||
shape_table: { fg: '#0000ff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#0000ff' attr: 'u' }
|
||||
shape_variable: '#a90d91'
|
||||
|
||||
foreground: '#404040'
|
||||
background: '#ffffff'
|
||||
cursor: '#404040'
|
||||
|
||||
empty: '#0000ff'
|
||||
header: { fg: '#007400' attr: 'b' }
|
||||
hints: '#808080'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#007400' attr: 'b' }
|
||||
search_result: { fg: '#c41a15' bg: '#404040' }
|
||||
separator: '#404040'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#cca4e3'
|
||||
block: '#b0a4e3'
|
||||
cell-path: '#e0f0ef'
|
||||
closure: '#30dff3'
|
||||
custom: '#fcfefd'
|
||||
duration: '#f0c239'
|
||||
float: '#f9906f'
|
||||
glob: '#fcfefd'
|
||||
int: '#cca4e3'
|
||||
list: '#30dff3'
|
||||
nothing: '#f9906f'
|
||||
range: '#f0c239'
|
||||
record: '#30dff3'
|
||||
string: '#8ab361'
|
||||
|
||||
bool: {|| if $in { '#30dff3' } else { '#f0c239' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#f9906f' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#f9906f'
|
||||
} else if $in < 1day {
|
||||
'#f0c239'
|
||||
} else if $in < 3day {
|
||||
'#8ab361'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#8ab361' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#30dff3'
|
||||
} else if $in < 52wk {
|
||||
'#b0a4e3'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#e0f0ef'
|
||||
} else if $e < 1mb {
|
||||
'#30dff3'
|
||||
} else {{ fg: '#b0a4e3' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_binary: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_block: { fg: '#b0a4e3' attr: 'b' }
|
||||
shape_bool: '#30dff3'
|
||||
shape_closure: { fg: '#30dff3' attr: 'b' }
|
||||
shape_custom: '#8ab361'
|
||||
shape_datetime: { fg: '#30dff3' attr: 'b' }
|
||||
shape_directory: '#30dff3'
|
||||
shape_external: '#30dff3'
|
||||
shape_external_resolved: '#30dff3'
|
||||
shape_externalarg: { fg: '#8ab361' attr: 'b' }
|
||||
shape_filepath: '#30dff3'
|
||||
shape_flag: { fg: '#b0a4e3' attr: 'b' }
|
||||
shape_float: { fg: '#f9906f' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#30dff3' attr: 'b' }
|
||||
shape_globpattern: { fg: '#30dff3' attr: 'b' }
|
||||
shape_int: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_internalcall: { fg: '#30dff3' attr: 'b' }
|
||||
shape_keyword: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_list: { fg: '#30dff3' attr: 'b' }
|
||||
shape_literal: '#b0a4e3'
|
||||
shape_match_pattern: '#8ab361'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#f9906f'
|
||||
shape_operator: '#f0c239'
|
||||
shape_or: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_pipe: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_range: { fg: '#f0c239' attr: 'b' }
|
||||
shape_raw_string: { fg: '#fcfefd' attr: 'b' }
|
||||
shape_record: { fg: '#30dff3' attr: 'b' }
|
||||
shape_redirection: { fg: '#cca4e3' attr: 'b' }
|
||||
shape_signature: { fg: '#8ab361' attr: 'b' }
|
||||
shape_string: '#8ab361'
|
||||
shape_string_interpolation: { fg: '#30dff3' attr: 'b' }
|
||||
shape_table: { fg: '#b0a4e3' attr: 'b' }
|
||||
shape_vardecl: { fg: '#b0a4e3' attr: 'u' }
|
||||
shape_variable: '#cca4e3'
|
||||
|
||||
foreground: '#e0f0ef'
|
||||
background: '#2d302f'
|
||||
cursor: '#e0f0ef'
|
||||
|
||||
empty: '#b0a4e3'
|
||||
header: { fg: '#8ab361' attr: 'b' }
|
||||
hints: '#9da8a3'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#8ab361' attr: 'b' }
|
||||
search_result: { fg: '#f9906f' bg: '#e0f0ef' }
|
||||
separator: '#e0f0ef'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#cc7832'
|
||||
block: '#9876aa'
|
||||
cell-path: '#a9b7c6'
|
||||
closure: '#629755'
|
||||
custom: '#ffffff'
|
||||
duration: '#bbb529'
|
||||
float: '#4eade5'
|
||||
glob: '#ffffff'
|
||||
int: '#cc7832'
|
||||
list: '#629755'
|
||||
nothing: '#4eade5'
|
||||
range: '#bbb529'
|
||||
record: '#629755'
|
||||
string: '#6a8759'
|
||||
|
||||
bool: {|| if $in { '#629755' } else { '#bbb529' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#4eade5' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#4eade5'
|
||||
} else if $in < 1day {
|
||||
'#bbb529'
|
||||
} else if $in < 3day {
|
||||
'#6a8759'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#6a8759' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#629755'
|
||||
} else if $in < 52wk {
|
||||
'#9876aa'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a9b7c6'
|
||||
} else if $e < 1mb {
|
||||
'#629755'
|
||||
} else {{ fg: '#9876aa' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#cc7832' attr: 'b' }
|
||||
shape_binary: { fg: '#cc7832' attr: 'b' }
|
||||
shape_block: { fg: '#9876aa' attr: 'b' }
|
||||
shape_bool: '#629755'
|
||||
shape_closure: { fg: '#629755' attr: 'b' }
|
||||
shape_custom: '#6a8759'
|
||||
shape_datetime: { fg: '#629755' attr: 'b' }
|
||||
shape_directory: '#629755'
|
||||
shape_external: '#629755'
|
||||
shape_external_resolved: '#629755'
|
||||
shape_externalarg: { fg: '#6a8759' attr: 'b' }
|
||||
shape_filepath: '#629755'
|
||||
shape_flag: { fg: '#9876aa' attr: 'b' }
|
||||
shape_float: { fg: '#4eade5' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#629755' attr: 'b' }
|
||||
shape_globpattern: { fg: '#629755' attr: 'b' }
|
||||
shape_int: { fg: '#cc7832' attr: 'b' }
|
||||
shape_internalcall: { fg: '#629755' attr: 'b' }
|
||||
shape_keyword: { fg: '#cc7832' attr: 'b' }
|
||||
shape_list: { fg: '#629755' attr: 'b' }
|
||||
shape_literal: '#9876aa'
|
||||
shape_match_pattern: '#6a8759'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#4eade5'
|
||||
shape_operator: '#bbb529'
|
||||
shape_or: { fg: '#cc7832' attr: 'b' }
|
||||
shape_pipe: { fg: '#cc7832' attr: 'b' }
|
||||
shape_range: { fg: '#bbb529' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#629755' attr: 'b' }
|
||||
shape_redirection: { fg: '#cc7832' attr: 'b' }
|
||||
shape_signature: { fg: '#6a8759' attr: 'b' }
|
||||
shape_string: '#6a8759'
|
||||
shape_string_interpolation: { fg: '#629755' attr: 'b' }
|
||||
shape_table: { fg: '#9876aa' attr: 'b' }
|
||||
shape_vardecl: { fg: '#9876aa' attr: 'u' }
|
||||
shape_variable: '#cc7832'
|
||||
|
||||
foreground: '#a9b7c6'
|
||||
background: '#2b2b2b'
|
||||
cursor: '#a9b7c6'
|
||||
|
||||
empty: '#9876aa'
|
||||
header: { fg: '#6a8759' attr: 'b' }
|
||||
hints: '#606366'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#6a8759' attr: 'b' }
|
||||
search_result: { fg: '#4eade5' bg: '#a9b7c6' }
|
||||
separator: '#a9b7c6'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#ff55ff'
|
||||
block: '#5555ff'
|
||||
cell-path: '#bbbbbb'
|
||||
closure: '#55ffff'
|
||||
custom: '#ffffff'
|
||||
duration: '#ffff55'
|
||||
float: '#ff5555'
|
||||
glob: '#ffffff'
|
||||
int: '#ff55ff'
|
||||
list: '#55ffff'
|
||||
nothing: '#ff5555'
|
||||
range: '#ffff55'
|
||||
record: '#55ffff'
|
||||
string: '#55ff55'
|
||||
|
||||
bool: {|| if $in { '#55ffff' } else { '#ffff55' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff5555' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff5555'
|
||||
} else if $in < 1day {
|
||||
'#ffff55'
|
||||
} else if $in < 3day {
|
||||
'#55ff55'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#55ff55' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#55ffff'
|
||||
} else if $in < 52wk {
|
||||
'#5555ff'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bbbbbb'
|
||||
} else if $e < 1mb {
|
||||
'#55ffff'
|
||||
} else {{ fg: '#5555ff' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_binary: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_block: { fg: '#5555ff' attr: 'b' }
|
||||
shape_bool: '#55ffff'
|
||||
shape_closure: { fg: '#55ffff' attr: 'b' }
|
||||
shape_custom: '#55ff55'
|
||||
shape_datetime: { fg: '#55ffff' attr: 'b' }
|
||||
shape_directory: '#55ffff'
|
||||
shape_external: '#55ffff'
|
||||
shape_external_resolved: '#55ffff'
|
||||
shape_externalarg: { fg: '#55ff55' attr: 'b' }
|
||||
shape_filepath: '#55ffff'
|
||||
shape_flag: { fg: '#5555ff' attr: 'b' }
|
||||
shape_float: { fg: '#ff5555' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#55ffff' attr: 'b' }
|
||||
shape_globpattern: { fg: '#55ffff' attr: 'b' }
|
||||
shape_int: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_internalcall: { fg: '#55ffff' attr: 'b' }
|
||||
shape_keyword: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_list: { fg: '#55ffff' attr: 'b' }
|
||||
shape_literal: '#5555ff'
|
||||
shape_match_pattern: '#55ff55'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff5555'
|
||||
shape_operator: '#ffff55'
|
||||
shape_or: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_pipe: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_range: { fg: '#ffff55' attr: 'b' }
|
||||
shape_raw_string: { fg: '#ffffff' attr: 'b' }
|
||||
shape_record: { fg: '#55ffff' attr: 'b' }
|
||||
shape_redirection: { fg: '#ff55ff' attr: 'b' }
|
||||
shape_signature: { fg: '#55ff55' attr: 'b' }
|
||||
shape_string: '#55ff55'
|
||||
shape_string_interpolation: { fg: '#55ffff' attr: 'b' }
|
||||
shape_table: { fg: '#5555ff' attr: 'b' }
|
||||
shape_vardecl: { fg: '#5555ff' attr: 'u' }
|
||||
shape_variable: '#ff55ff'
|
||||
|
||||
foreground: '#ffffff'
|
||||
background: '#000000'
|
||||
cursor: '#ffffff'
|
||||
|
||||
empty: '#5555ff'
|
||||
header: { fg: '#55ff55' attr: 'b' }
|
||||
hints: '#555555'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#55ff55' attr: 'b' }
|
||||
search_result: { fg: '#ff5555' bg: '#bbbbbb' }
|
||||
separator: '#bbbbbb'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#9bc0c8'
|
||||
block: '#498091'
|
||||
cell-path: '#c7c7a5'
|
||||
closure: '#66d9ef'
|
||||
custom: '#e1eaef'
|
||||
duration: '#fdb11f'
|
||||
float: '#ff4658'
|
||||
glob: '#e1eaef'
|
||||
int: '#9bc0c8'
|
||||
list: '#66d9ef'
|
||||
nothing: '#ff4658'
|
||||
range: '#fdb11f'
|
||||
record: '#66d9ef'
|
||||
string: '#499180'
|
||||
|
||||
bool: {|| if $in { '#66d9ef' } else { '#fdb11f' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#ff4658' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#ff4658'
|
||||
} else if $in < 1day {
|
||||
'#fdb11f'
|
||||
} else if $in < 3day {
|
||||
'#499180'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#499180' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#66d9ef'
|
||||
} else if $in < 52wk {
|
||||
'#498091'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#c7c7a5'
|
||||
} else if $e < 1mb {
|
||||
'#66d9ef'
|
||||
} else {{ fg: '#498091' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_binary: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_block: { fg: '#498091' attr: 'b' }
|
||||
shape_bool: '#66d9ef'
|
||||
shape_closure: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_custom: '#499180'
|
||||
shape_datetime: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_directory: '#66d9ef'
|
||||
shape_external: '#66d9ef'
|
||||
shape_external_resolved: '#66d9ef'
|
||||
shape_externalarg: { fg: '#499180' attr: 'b' }
|
||||
shape_filepath: '#66d9ef'
|
||||
shape_flag: { fg: '#498091' attr: 'b' }
|
||||
shape_float: { fg: '#ff4658' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_globpattern: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_int: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_internalcall: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_keyword: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_list: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_literal: '#498091'
|
||||
shape_match_pattern: '#499180'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#ff4658'
|
||||
shape_operator: '#fdb11f'
|
||||
shape_or: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_pipe: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_range: { fg: '#fdb11f' attr: 'b' }
|
||||
shape_raw_string: { fg: '#e1eaef' attr: 'b' }
|
||||
shape_record: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_redirection: { fg: '#9bc0c8' attr: 'b' }
|
||||
shape_signature: { fg: '#499180' attr: 'b' }
|
||||
shape_string: '#499180'
|
||||
shape_string_interpolation: { fg: '#66d9ef' attr: 'b' }
|
||||
shape_table: { fg: '#498091' attr: 'b' }
|
||||
shape_vardecl: { fg: '#498091' attr: 'u' }
|
||||
shape_variable: '#9bc0c8'
|
||||
|
||||
foreground: '#c7c7a5'
|
||||
background: '#171e1f'
|
||||
cursor: '#c7c7a5'
|
||||
|
||||
empty: '#498091'
|
||||
header: { fg: '#499180' attr: 'b' }
|
||||
hints: '#555e5f'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#499180' attr: 'b' }
|
||||
search_result: { fg: '#ff4658' bg: '#c7c7a5' }
|
||||
separator: '#c7c7a5'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8e69c9'
|
||||
block: '#1c98e8'
|
||||
cell-path: '#bababa'
|
||||
closure: '#1c98e8'
|
||||
custom: '#bababa'
|
||||
duration: '#f2d42c'
|
||||
float: '#e05a4f'
|
||||
glob: '#bababa'
|
||||
int: '#8e69c9'
|
||||
list: '#1c98e8'
|
||||
nothing: '#e8341c'
|
||||
range: '#f2d42c'
|
||||
record: '#1c98e8'
|
||||
string: '#68c256'
|
||||
|
||||
bool: {|| if $in { '#3d97e2' } else { '#f2d42c' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#e8341c' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#e8341c'
|
||||
} else if $in < 1day {
|
||||
'#f2d42c'
|
||||
} else if $in < 3day {
|
||||
'#68c256'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#68c256' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#1c98e8'
|
||||
} else if $in < 52wk {
|
||||
'#1c98e8'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#bababa'
|
||||
} else if $e < 1mb {
|
||||
'#1c98e8'
|
||||
} else {{ fg: '#1c98e8' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_binary: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_block: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_bool: '#3d97e2'
|
||||
shape_closure: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_custom: '#68c256'
|
||||
shape_datetime: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_directory: '#1c98e8'
|
||||
shape_external: '#1c98e8'
|
||||
shape_external_resolved: '#3d97e2'
|
||||
shape_externalarg: { fg: '#68c256' attr: 'b' }
|
||||
shape_filepath: '#1c98e8'
|
||||
shape_flag: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_float: { fg: '#e05a4f' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_globpattern: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_int: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_internalcall: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_keyword: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_list: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_literal: '#1c98e8'
|
||||
shape_match_pattern: '#68c256'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#e8341c'
|
||||
shape_operator: '#f2d42c'
|
||||
shape_or: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_pipe: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_range: { fg: '#f2d42c' attr: 'b' }
|
||||
shape_raw_string: { fg: '#bababa' attr: 'b' }
|
||||
shape_record: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_redirection: { fg: '#8e69c9' attr: 'b' }
|
||||
shape_signature: { fg: '#68c256' attr: 'b' }
|
||||
shape_string: '#68c256'
|
||||
shape_string_interpolation: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_table: { fg: '#1c98e8' attr: 'b' }
|
||||
shape_vardecl: { fg: '#1c98e8' attr: 'u' }
|
||||
shape_variable: '#8e69c9'
|
||||
|
||||
foreground: '#bababa'
|
||||
background: '#222324'
|
||||
cursor: '#bababa'
|
||||
|
||||
empty: '#1c98e8'
|
||||
header: { fg: '#68c256' attr: 'b' }
|
||||
hints: '#000000'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#68c256' attr: 'b' }
|
||||
search_result: { fg: '#e8341c' bg: '#bababa' }
|
||||
separator: '#bababa'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
@@ -0,0 +1,134 @@
|
||||
# Retrieve the theme settings
|
||||
export def main [] {
|
||||
return {
|
||||
binary: '#8f4673'
|
||||
block: '#0d6678'
|
||||
cell-path: '#a89984'
|
||||
closure: '#8ba59b'
|
||||
custom: '#fdf4c1'
|
||||
duration: '#fac03b'
|
||||
float: '#fb543f'
|
||||
glob: '#fdf4c1'
|
||||
int: '#8f4673'
|
||||
list: '#8ba59b'
|
||||
nothing: '#fb543f'
|
||||
range: '#fac03b'
|
||||
record: '#8ba59b'
|
||||
string: '#95c085'
|
||||
|
||||
bool: {|| if $in { '#8ba59b' } else { '#fac03b' } }
|
||||
|
||||
date: {|| (date now) - $in |
|
||||
if $in < 1hr {
|
||||
{ fg: '#fb543f' attr: 'b' }
|
||||
} else if $in < 6hr {
|
||||
'#fb543f'
|
||||
} else if $in < 1day {
|
||||
'#fac03b'
|
||||
} else if $in < 3day {
|
||||
'#95c085'
|
||||
} else if $in < 1wk {
|
||||
{ fg: '#95c085' attr: 'b' }
|
||||
} else if $in < 6wk {
|
||||
'#8ba59b'
|
||||
} else if $in < 52wk {
|
||||
'#0d6678'
|
||||
} else { 'dark_gray' }
|
||||
}
|
||||
|
||||
filesize: {|e|
|
||||
if $e == 0b {
|
||||
'#a89984'
|
||||
} else if $e < 1mb {
|
||||
'#8ba59b'
|
||||
} else {{ fg: '#0d6678' }}
|
||||
}
|
||||
|
||||
shape_and: { fg: '#8f4673' attr: 'b' }
|
||||
shape_binary: { fg: '#8f4673' attr: 'b' }
|
||||
shape_block: { fg: '#0d6678' attr: 'b' }
|
||||
shape_bool: '#8ba59b'
|
||||
shape_closure: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_custom: '#95c085'
|
||||
shape_datetime: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_directory: '#8ba59b'
|
||||
shape_external: '#8ba59b'
|
||||
shape_external_resolved: '#8ba59b'
|
||||
shape_externalarg: { fg: '#95c085' attr: 'b' }
|
||||
shape_filepath: '#8ba59b'
|
||||
shape_flag: { fg: '#0d6678' attr: 'b' }
|
||||
shape_float: { fg: '#fb543f' attr: 'b' }
|
||||
shape_garbage: { fg: '#FFFFFF' bg: '#FF0000' attr: 'b' }
|
||||
shape_glob_interpolation: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_globpattern: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_int: { fg: '#8f4673' attr: 'b' }
|
||||
shape_internalcall: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_keyword: { fg: '#8f4673' attr: 'b' }
|
||||
shape_list: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_literal: '#0d6678'
|
||||
shape_match_pattern: '#95c085'
|
||||
shape_matching_brackets: { attr: 'u' }
|
||||
shape_nothing: '#fb543f'
|
||||
shape_operator: '#fac03b'
|
||||
shape_or: { fg: '#8f4673' attr: 'b' }
|
||||
shape_pipe: { fg: '#8f4673' attr: 'b' }
|
||||
shape_range: { fg: '#fac03b' attr: 'b' }
|
||||
shape_raw_string: { fg: '#fdf4c1' attr: 'b' }
|
||||
shape_record: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_redirection: { fg: '#8f4673' attr: 'b' }
|
||||
shape_signature: { fg: '#95c085' attr: 'b' }
|
||||
shape_string: '#95c085'
|
||||
shape_string_interpolation: { fg: '#8ba59b' attr: 'b' }
|
||||
shape_table: { fg: '#0d6678' attr: 'b' }
|
||||
shape_vardecl: { fg: '#0d6678' attr: 'u' }
|
||||
shape_variable: '#8f4673'
|
||||
|
||||
foreground: '#a89984'
|
||||
background: '#1d2021'
|
||||
cursor: '#a89984'
|
||||
|
||||
empty: '#0d6678'
|
||||
header: { fg: '#95c085' attr: 'b' }
|
||||
hints: '#665c54'
|
||||
leading_trailing_space_bg: { attr: 'n' }
|
||||
row_index: { fg: '#95c085' attr: 'b' }
|
||||
search_result: { fg: '#fb543f' bg: '#a89984' }
|
||||
separator: '#a89984'
|
||||
}
|
||||
}
|
||||
|
||||
# Update the Nushell configuration
|
||||
export def --env "set color_config" [] {
|
||||
$env.config.color_config = (main)
|
||||
}
|
||||
|
||||
# Update terminal colors
|
||||
export def "update terminal" [] {
|
||||
let theme = (main)
|
||||
|
||||
# Set terminal colors
|
||||
let osc_screen_foreground_color = '10;'
|
||||
let osc_screen_background_color = '11;'
|
||||
let osc_cursor_color = '12;'
|
||||
|
||||
$"
|
||||
(ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel)
|
||||
(ansi -o $osc_screen_background_color)($theme.background)(char bel)
|
||||
(ansi -o $osc_cursor_color)($theme.cursor)(char bel)
|
||||
"
|
||||
# Line breaks above are just for source readability
|
||||
# but create extra whitespace when activating. Collapse
|
||||
# to one line and print with no-newline
|
||||
| str replace --all "\n" ''
|
||||
| print -n $"($in)\r"
|
||||
}
|
||||
|
||||
export module activate {
|
||||
export-env {
|
||||
set color_config
|
||||
update terminal
|
||||
}
|
||||
}
|
||||
|
||||
# Activate the theme when sourced
|
||||
use activate
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user