mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-11-11 01:45:56 +03:00
cc0719bdad
related to - https://github.com/nushell/nupm/pull/33 ## description with https://github.com/nushell/nupm/pull/33, Nupm can now install separate modules from a single package 🥳 the `nu_scripts` are a package and looks like they contain a few potential standalone modules: - the themes - the hooks - the custom completions - ... this PR is a proposal to move `themes/` to `nu-themes/` and add `./nu-themes/` as a module to the `nu-scripts` package. that way when running `nupm install --path .` in the root of the `nu_scripts`, a `nu-themes` module will be installed in `$env.NUPM_HOME/modules`. then one can run ```nushell use nu-themes/themes/nushell-dark.nu ``` and next get the theme with ```nushell nushell-dark ```
82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
export def main [] { return {
|
|
separator: "#fffefe"
|
|
leading_trailing_space_bg: { attr: "n" }
|
|
header: { fg: "#d1f1a9" attr: "b" }
|
|
empty: "#bbdaff"
|
|
bool: {|| if $in { "#99ffff" } else { "light_gray" } }
|
|
int: "#fffefe"
|
|
filesize: {|e|
|
|
if $e == 0b {
|
|
"#fffefe"
|
|
} else if $e < 1mb {
|
|
"#99ffff"
|
|
} else {{ fg: "#bbdaff" }}
|
|
}
|
|
duration: "#fffefe"
|
|
date: {|| (date now) - $in |
|
|
if $in < 1hr {
|
|
{ fg: "#ff9da3" attr: "b" }
|
|
} else if $in < 6hr {
|
|
"#ff9da3"
|
|
} else if $in < 1day {
|
|
"#ffeead"
|
|
} else if $in < 3day {
|
|
"#d1f1a9"
|
|
} else if $in < 1wk {
|
|
{ fg: "#d1f1a9" attr: "b" }
|
|
} else if $in < 6wk {
|
|
"#99ffff"
|
|
} else if $in < 52wk {
|
|
"#bbdaff"
|
|
} else { "dark_gray" }
|
|
}
|
|
range: "#fffefe"
|
|
float: "#fffefe"
|
|
string: "#fffefe"
|
|
nothing: "#fffefe"
|
|
binary: "#fffefe"
|
|
cellpath: "#fffefe"
|
|
row_index: { fg: "#d1f1a9" attr: "b" }
|
|
record: "#fffefe"
|
|
list: "#fffefe"
|
|
block: "#fffefe"
|
|
hints: "dark_gray"
|
|
search_result: { fg: "#ff9da3" bg: "#fffefe" }
|
|
|
|
shape_and: { fg: "#ebbbff" attr: "b" }
|
|
shape_binary: { fg: "#ebbbff" attr: "b" }
|
|
shape_block: { fg: "#bbdaff" attr: "b" }
|
|
shape_bool: "#99ffff"
|
|
shape_custom: "#d1f1a9"
|
|
shape_datetime: { fg: "#99ffff" attr: "b" }
|
|
shape_directory: "#99ffff"
|
|
shape_external: "#99ffff"
|
|
shape_externalarg: { fg: "#d1f1a9" attr: "b" }
|
|
shape_filepath: "#99ffff"
|
|
shape_flag: { fg: "#bbdaff" attr: "b" }
|
|
shape_float: { fg: "#ebbbff" attr: "b" }
|
|
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
|
|
shape_globpattern: { fg: "#99ffff" attr: "b" }
|
|
shape_int: { fg: "#ebbbff" attr: "b" }
|
|
shape_internalcall: { fg: "#99ffff" attr: "b" }
|
|
shape_list: { fg: "#99ffff" attr: "b" }
|
|
shape_literal: "#bbdaff"
|
|
shape_match_pattern: "#d1f1a9"
|
|
shape_matching_brackets: { attr: "u" }
|
|
shape_nothing: "#99ffff"
|
|
shape_operator: "#ffeead"
|
|
shape_or: { fg: "#ebbbff" attr: "b" }
|
|
shape_pipe: { fg: "#ebbbff" attr: "b" }
|
|
shape_range: { fg: "#ffeead" attr: "b" }
|
|
shape_record: { fg: "#99ffff" attr: "b" }
|
|
shape_redirection: { fg: "#ebbbff" attr: "b" }
|
|
shape_signature: { fg: "#d1f1a9" attr: "b" }
|
|
shape_string: "#d1f1a9"
|
|
shape_string_interpolation: { fg: "#99ffff" attr: "b" }
|
|
shape_table: { fg: "#bbdaff" attr: "b" }
|
|
shape_variable: "#ebbbff"
|
|
|
|
background: "#002451"
|
|
foreground: "#fffefe"
|
|
cursor: "#fffefe"
|
|
}} |