|
|
|
@ -1,154 +1,10 @@
|
|
|
|
|
# Nushell Config File
|
|
|
|
|
#
|
|
|
|
|
# version = "0.100.0"
|
|
|
|
|
|
|
|
|
|
# For more information on defining custom themes, see
|
|
|
|
|
# https://www.nushell.sh/book/coloring_and_theming.html
|
|
|
|
|
# And here is the theme collection
|
|
|
|
|
# https://github.com/nushell/nu_scripts/tree/main/themes
|
|
|
|
|
let dark_theme = {
|
|
|
|
|
# color for nushell primitives
|
|
|
|
|
separator: white
|
|
|
|
|
# no fg, no bg, attr none effectively turns this off
|
|
|
|
|
leading_trailing_space_bg: { attr: n }
|
|
|
|
|
header: green_bold
|
|
|
|
|
empty: blue
|
|
|
|
|
# Closures can be used to choose colors for specific values.
|
|
|
|
|
# The value (in this case, a bool) is piped into the closure.
|
|
|
|
|
# eg) {|| if $in { 'light_cyan' } else { 'light_gray' } }
|
|
|
|
|
bool: light_cyan
|
|
|
|
|
int: white
|
|
|
|
|
filesize: cyan
|
|
|
|
|
duration: white
|
|
|
|
|
date: purple
|
|
|
|
|
range: white
|
|
|
|
|
float: white
|
|
|
|
|
string: white
|
|
|
|
|
nothing: white
|
|
|
|
|
binary: white
|
|
|
|
|
cell-path: white
|
|
|
|
|
row_index: green_bold
|
|
|
|
|
record: white
|
|
|
|
|
list: white
|
|
|
|
|
block: white
|
|
|
|
|
hints: dark_gray
|
|
|
|
|
search_result: { bg: red fg: white }
|
|
|
|
|
shape_and: purple_bold
|
|
|
|
|
shape_binary: purple_bold
|
|
|
|
|
shape_block: blue_bold
|
|
|
|
|
shape_bool: light_cyan
|
|
|
|
|
shape_closure: green_bold
|
|
|
|
|
shape_custom: green
|
|
|
|
|
shape_datetime: cyan_bold
|
|
|
|
|
shape_directory: cyan
|
|
|
|
|
shape_external: cyan
|
|
|
|
|
shape_externalarg: green_bold
|
|
|
|
|
shape_external_resolved: light_yellow_bold
|
|
|
|
|
shape_filepath: cyan
|
|
|
|
|
shape_flag: blue_bold
|
|
|
|
|
shape_float: purple_bold
|
|
|
|
|
# shapes are used to change the cli syntax highlighting
|
|
|
|
|
shape_garbage: { fg: white bg: red attr: b }
|
|
|
|
|
shape_glob_interpolation: cyan_bold
|
|
|
|
|
shape_globpattern: cyan_bold
|
|
|
|
|
shape_int: purple_bold
|
|
|
|
|
shape_internalcall: cyan_bold
|
|
|
|
|
shape_keyword: cyan_bold
|
|
|
|
|
shape_list: cyan_bold
|
|
|
|
|
shape_literal: blue
|
|
|
|
|
shape_match_pattern: green
|
|
|
|
|
shape_matching_brackets: { attr: u }
|
|
|
|
|
shape_nothing: light_cyan
|
|
|
|
|
shape_operator: yellow
|
|
|
|
|
shape_or: purple_bold
|
|
|
|
|
shape_pipe: purple_bold
|
|
|
|
|
shape_range: yellow_bold
|
|
|
|
|
shape_record: cyan_bold
|
|
|
|
|
shape_redirection: purple_bold
|
|
|
|
|
shape_signature: green_bold
|
|
|
|
|
shape_string: green
|
|
|
|
|
shape_string_interpolation: cyan_bold
|
|
|
|
|
shape_table: blue_bold
|
|
|
|
|
shape_variable: purple
|
|
|
|
|
shape_vardecl: purple
|
|
|
|
|
shape_raw_string: light_purple
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let light_theme = {
|
|
|
|
|
# color for nushell primitives
|
|
|
|
|
separator: dark_gray
|
|
|
|
|
# no fg, no bg, attr none effectively turns this off
|
|
|
|
|
leading_trailing_space_bg: { attr: n }
|
|
|
|
|
header: green_bold
|
|
|
|
|
empty: blue
|
|
|
|
|
# Closures can be used to choose colors for specific values.
|
|
|
|
|
# The value (in this case, a bool) is piped into the closure.
|
|
|
|
|
# eg) {|| if $in { 'dark_cyan' } else { 'dark_gray' } }
|
|
|
|
|
bool: dark_cyan
|
|
|
|
|
int: dark_gray
|
|
|
|
|
filesize: cyan_bold
|
|
|
|
|
duration: dark_gray
|
|
|
|
|
date: purple
|
|
|
|
|
range: dark_gray
|
|
|
|
|
float: dark_gray
|
|
|
|
|
string: dark_gray
|
|
|
|
|
nothing: dark_gray
|
|
|
|
|
binary: dark_gray
|
|
|
|
|
cell-path: dark_gray
|
|
|
|
|
row_index: green_bold
|
|
|
|
|
record: dark_gray
|
|
|
|
|
list: dark_gray
|
|
|
|
|
block: dark_gray
|
|
|
|
|
hints: dark_gray
|
|
|
|
|
search_result: { fg: white bg: red }
|
|
|
|
|
shape_and: purple_bold
|
|
|
|
|
shape_binary: purple_bold
|
|
|
|
|
shape_block: blue_bold
|
|
|
|
|
shape_bool: light_cyan
|
|
|
|
|
shape_closure: green_bold
|
|
|
|
|
shape_custom: green
|
|
|
|
|
shape_datetime: cyan_bold
|
|
|
|
|
shape_directory: cyan
|
|
|
|
|
shape_external: cyan
|
|
|
|
|
shape_externalarg: green_bold
|
|
|
|
|
shape_external_resolved: light_purple_bold
|
|
|
|
|
shape_filepath: cyan
|
|
|
|
|
shape_flag: blue_bold
|
|
|
|
|
shape_float: purple_bold
|
|
|
|
|
# shapes are used to change the cli syntax highlighting
|
|
|
|
|
shape_garbage: { fg: white bg: red attr: b }
|
|
|
|
|
shape_glob_interpolation: cyan_bold
|
|
|
|
|
shape_globpattern: cyan_bold
|
|
|
|
|
shape_int: purple_bold
|
|
|
|
|
shape_internalcall: cyan_bold
|
|
|
|
|
shape_keyword: cyan_bold
|
|
|
|
|
shape_list: cyan_bold
|
|
|
|
|
shape_literal: blue
|
|
|
|
|
shape_match_pattern: green
|
|
|
|
|
shape_matching_brackets: { attr: u }
|
|
|
|
|
shape_nothing: light_cyan
|
|
|
|
|
shape_operator: yellow
|
|
|
|
|
shape_or: purple_bold
|
|
|
|
|
shape_pipe: purple_bold
|
|
|
|
|
shape_range: yellow_bold
|
|
|
|
|
shape_record: cyan_bold
|
|
|
|
|
shape_redirection: purple_bold
|
|
|
|
|
shape_signature: green_bold
|
|
|
|
|
shape_string: green
|
|
|
|
|
shape_string_interpolation: cyan_bold
|
|
|
|
|
shape_table: blue_bold
|
|
|
|
|
shape_variable: purple
|
|
|
|
|
shape_vardecl: purple
|
|
|
|
|
shape_raw_string: light_purple
|
|
|
|
|
}
|
|
|
|
|
source ($nu.default-config-dir | path join 'themes.nu')
|
|
|
|
|
|
|
|
|
|
# External completer example
|
|
|
|
|
# let carapace_completer = {|spans|
|
|
|
|
|
# carapace $spans.0 nushell ...$spans | from json
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
# The default config record. This is where much of your global configuration
|
|
|
|
|
# is setup.
|
|
|
|
|
$env.config = {
|
|
|
|
|
# true or false to enable or disable the welcome banner at startup
|
|
|
|
|
show_banner: false
|
|
|
|
@ -176,6 +32,13 @@ $env.config = {
|
|
|
|
|
show_empty: true
|
|
|
|
|
# a left right padding of each column in a table
|
|
|
|
|
padding: { left: 1, right: 1 }
|
|
|
|
|
# show header text on separator/border line
|
|
|
|
|
header_on_separator: false
|
|
|
|
|
# render footer in parent table if child is big enough
|
|
|
|
|
# (extended table option)
|
|
|
|
|
footer_inheritance: false
|
|
|
|
|
# limit data rows from top and bottom after reaching a set point
|
|
|
|
|
# abbreviated_row_count: 10
|
|
|
|
|
trim: {
|
|
|
|
|
# wrapping or truncating
|
|
|
|
|
methodology: wrapping
|
|
|
|
@ -184,13 +47,6 @@ $env.config = {
|
|
|
|
|
# A suffix used by the 'truncating' methodology
|
|
|
|
|
truncating_suffix: "…"
|
|
|
|
|
}
|
|
|
|
|
# show header text on separator/border line
|
|
|
|
|
header_on_separator: false
|
|
|
|
|
# render footer in parent table if child is big enough
|
|
|
|
|
# (extended table option)
|
|
|
|
|
footer_inheritance: false
|
|
|
|
|
# limit data rows from top and bottom after reaching a set point
|
|
|
|
|
# abbreviated_row_count: 10
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# "fancy" or "plain" for screen reader-friendly error messages
|
|
|
|
@ -259,6 +115,9 @@ $env.config = {
|
|
|
|
|
# "smart" (alphabetical for prefix matching, fuzzy score for
|
|
|
|
|
# fuzzy matching) or "alphabetical"
|
|
|
|
|
sort: "smart"
|
|
|
|
|
# set this to true to enable file/path/directory completions
|
|
|
|
|
# using LS_COLORS
|
|
|
|
|
use_ls_colors: true
|
|
|
|
|
external: {
|
|
|
|
|
# set to false to prevent nushell looking into $env.PATH to find
|
|
|
|
|
# more suggestions, `false` recommended for WSL users as this look
|
|
|
|
@ -270,9 +129,6 @@ $env.config = {
|
|
|
|
|
# check 'carapace_completer' above as an example
|
|
|
|
|
completer: null
|
|
|
|
|
}
|
|
|
|
|
# set this to true to enable file/path/directory completions
|
|
|
|
|
# using LS_COLORS
|
|
|
|
|
use_ls_colors: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
filesize: {
|
|
|
|
@ -299,7 +155,7 @@ $env.config = {
|
|
|
|
|
#color_config: $dark_theme
|
|
|
|
|
# if you want a more interesting theme, you can replace the empty record
|
|
|
|
|
# with `$dark_theme`, `$light_theme` or another custom record
|
|
|
|
|
color_config: $light_theme
|
|
|
|
|
color_config: $dark_theme
|
|
|
|
|
# always, never, number_of_rows, auto
|
|
|
|
|
footer_mode: 25
|
|
|
|
|
# the precision for displaying floats in tables
|
|
|
|
|