nushell: Small fixes

This commit is contained in:
2024-11-04 17:14:22 +01:00
parent e0d95e3bd0
commit c9a710b86b
2 changed files with 54 additions and 43 deletions

View File

@ -30,6 +30,13 @@ source theme.nu
$env.config = { $env.config = {
show_banner: false show_banner: false
display_errors: {
exit_code: false # assume the external command prints an error message
# Core dump errors are always printed, and SIGPIPE never triggers an error.
# The setting below controls message printing for termination by all other signals.
termination_signal: true
}
ls: { ls: {
use_ls_colors: true # use the LS_COLORS environment variable to colorize output use_ls_colors: true # use the LS_COLORS environment variable to colorize output
clickable_links: true # enable or disable clickable links. Your terminal has to support links. clickable_links: true # enable or disable clickable links. Your terminal has to support links.

View File

@ -78,6 +78,10 @@ $env.NU_PLUGIN_DIRS = [
# ($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins # ($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins
] ]
if XDG_CONFIG_HOME not-in $env {
$env.XDG_CONFIG_HOME = $"($env.HOME)/.config"
}
$env.PATH = ($env.PATH | split row (char esep) | prepend [ $env.PATH = ($env.PATH | split row (char esep) | prepend [
($env.HOME + "/.local/bin"), ($env.HOME + "/.local/bin"),
($env.HOME + "/.cargo/bin"), ($env.HOME + "/.cargo/bin"),