mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-26 22:08:03 +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: "#d5c4a1"
|
|
leading_trailing_space_bg: { attr: "n" }
|
|
header: { fg: "#b8bb26" attr: "b" }
|
|
empty: "#83a598"
|
|
bool: {|| if $in { "#8ec07c" } else { "light_gray" } }
|
|
int: "#d5c4a1"
|
|
filesize: {|e|
|
|
if $e == 0b {
|
|
"#d5c4a1"
|
|
} else if $e < 1mb {
|
|
"#8ec07c"
|
|
} else {{ fg: "#83a598" }}
|
|
}
|
|
duration: "#d5c4a1"
|
|
date: {|| (date now) - $in |
|
|
if $in < 1hr {
|
|
{ fg: "#fb4934" attr: "b" }
|
|
} else if $in < 6hr {
|
|
"#fb4934"
|
|
} else if $in < 1day {
|
|
"#fabd2f"
|
|
} else if $in < 3day {
|
|
"#b8bb26"
|
|
} else if $in < 1wk {
|
|
{ fg: "#b8bb26" attr: "b" }
|
|
} else if $in < 6wk {
|
|
"#8ec07c"
|
|
} else if $in < 52wk {
|
|
"#83a598"
|
|
} else { "dark_gray" }
|
|
}
|
|
range: "#d5c4a1"
|
|
float: "#d5c4a1"
|
|
string: "#d5c4a1"
|
|
nothing: "#d5c4a1"
|
|
binary: "#d5c4a1"
|
|
cellpath: "#d5c4a1"
|
|
row_index: { fg: "#b8bb26" attr: "b" }
|
|
record: "#d5c4a1"
|
|
list: "#d5c4a1"
|
|
block: "#d5c4a1"
|
|
hints: "dark_gray"
|
|
search_result: { fg: "#fb4934" bg: "#d5c4a1" }
|
|
|
|
shape_and: { fg: "#d3869b" attr: "b" }
|
|
shape_binary: { fg: "#d3869b" attr: "b" }
|
|
shape_block: { fg: "#83a598" attr: "b" }
|
|
shape_bool: "#8ec07c"
|
|
shape_custom: "#b8bb26"
|
|
shape_datetime: { fg: "#8ec07c" attr: "b" }
|
|
shape_directory: "#8ec07c"
|
|
shape_external: "#8ec07c"
|
|
shape_externalarg: { fg: "#b8bb26" attr: "b" }
|
|
shape_filepath: "#8ec07c"
|
|
shape_flag: { fg: "#83a598" attr: "b" }
|
|
shape_float: { fg: "#d3869b" attr: "b" }
|
|
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
|
|
shape_globpattern: { fg: "#8ec07c" attr: "b" }
|
|
shape_int: { fg: "#d3869b" attr: "b" }
|
|
shape_internalcall: { fg: "#8ec07c" attr: "b" }
|
|
shape_list: { fg: "#8ec07c" attr: "b" }
|
|
shape_literal: "#83a598"
|
|
shape_match_pattern: "#b8bb26"
|
|
shape_matching_brackets: { attr: "u" }
|
|
shape_nothing: "#8ec07c"
|
|
shape_operator: "#fabd2f"
|
|
shape_or: { fg: "#d3869b" attr: "b" }
|
|
shape_pipe: { fg: "#d3869b" attr: "b" }
|
|
shape_range: { fg: "#fabd2f" attr: "b" }
|
|
shape_record: { fg: "#8ec07c" attr: "b" }
|
|
shape_redirection: { fg: "#d3869b" attr: "b" }
|
|
shape_signature: { fg: "#b8bb26" attr: "b" }
|
|
shape_string: "#b8bb26"
|
|
shape_string_interpolation: { fg: "#8ec07c" attr: "b" }
|
|
shape_table: { fg: "#83a598" attr: "b" }
|
|
shape_variable: "#d3869b"
|
|
|
|
background: "#32302f"
|
|
foreground: "#d5c4a1"
|
|
cursor: "#d5c4a1"
|
|
}} |