dotfiles-mirror/config/nushell/config.nu

100 lines
2.2 KiB
Text
Raw Normal View History

2025-11-07 03:03:16 +03:30
$env.config.buffer_editor = "vim"
$env.PROMPT_COMMAND_RIGHT = ""
$env.path ++= ["~/.local/bin"]
$env.config.show_banner = false
$env.config.table.mode = 'none'
$env.TERM = "xterm"
$env.USER = "coast"
2025-11-12 00:24:39 +03:30
2025-11-07 03:03:16 +03:30
$env.PROMPT_COMMAND = {
let dir = (pwd | path basename)
2025-11-12 00:24:39 +03:30
let home_dir = ($dir | str replace "coast" "home")
$"(ansi reset)0 ($env.USER) ($home_dir) "
2025-11-07 03:03:16 +03:30
}
2025-11-12 00:24:39 +03:30
2025-11-07 03:03:16 +03:30
$env.PROMPT_INDICATOR = ""
let carapace_completer = {|spans|
2025-11-12 00:24:39 +03:30
carapace $spans.0 nushell ...$spans | from json
2025-11-07 03:03:16 +03:30
}
$env.config = {
2025-11-12 00:24:39 +03:30
show_banner: false
completions: {
case_sensitive: false
quick: true
partial: true
algorithm: "fuzzy"
external: {
enable: true
max_results: 100
completer: $carapace_completer
}
}
}
2025-11-07 03:03:16 +03:30
alias sd = sudo
alias nano = vim
alias suod = sudo
alias sduo = sudo
alias hotp = htop
alias c = clear
2025-11-12 00:24:39 +03:30
alias dir = tree -idA
let bg0 = "#191724"
let bg1 = "#1e1e2e"
let bg2 = "#26233a"
let bg3 = "#2a2736"
let fg0 = "#e0def4"
let fg1 = "#dcd7ba"
let fg2 = "#c4a7e7"
let red = "#eb6f92"
let green = "#9ccfd8"
let yellow = "#f6c177"
let blue = "#31748f"
let purple = "#c4a7e7"
let aqua = "#9ccfd8"
let orange = "#f6c177"
let gray = "#6e6a86"
2025-11-12 00:24:39 +03:30
let dark = {
separator: $gray,
leading_trailing_space_bg: $bg1,
header: $yellow,
datetime: $blue,
filesize: $green,
row_index: $gray,
2025-11-12 00:24:39 +03:30
bool: $green,
int: $orange,
float: $yellow,
string: $fg1,
nothing: $gray,
binary: $red,
cell-path: $blue,
hints: $gray,
2025-11-12 00:24:39 +03:30
shape_garbage: { fg: $fg0 bg: $red attr: b },
shape_bool: $green,
shape_int: { fg: $orange attr: b },
shape_float: { fg: $yellow attr: b },
shape_range: { fg: $yellow attr: b },
shape_internalcall: { fg: $aqua attr: b },
shape_external: $blue,
shape_externalarg: { fg: $green attr: b },
shape_literal: $fg1,
shape_operator: $orange,
shape_signature: { fg: $yellow attr: b },
shape_string: $purple,
shape_filepath: $blue,
shape_globpattern: { fg: $blue attr: b },
shape_variable: $aqua,
shape_flag: { fg: $yellow attr: b },
2025-11-12 00:24:39 +03:30
shape_custom: { attr: b }
}
2025-11-07 03:03:16 +03:30
$env.config.color_config = $dark
2025-11-12 00:24:39 +03:30
$env.config.use_ansi_coloring = true
source ~/.config/nushell/starship.nu