nushell: update to $env
This commit is contained in:
parent
f3b706adfb
commit
38febf1f96
2 changed files with 10 additions and 10 deletions
|
@ -26,7 +26,7 @@ alias dl = yt-dlp -P ~/Videos/downloaded
|
||||||
alias dlcd = yt-dlp
|
alias dlcd = yt-dlp
|
||||||
alias up = rpaste -s "https://img.notohh.dev/" -e 1day
|
alias up = rpaste -s "https://img.notohh.dev/" -e 1day
|
||||||
|
|
||||||
let-env config = {
|
$env.config = {
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -16,13 +16,13 @@ def create_right_prompt [] {
|
||||||
$time_segment
|
$time_segment
|
||||||
}
|
}
|
||||||
|
|
||||||
let-env PROMPT_COMMAND = {|| create_left_prompt }
|
$env.PROMPT_COMMAND = {|| create_left_prompt }
|
||||||
let-env PROMPT_COMMAND_RIGHT = {|| create_right_prompt }
|
$env.PROMPT_COMMAND_RIGHT = {|| create_right_prompt }
|
||||||
let-env PROMPT_INDICATOR = {|| "〉" }
|
$env.PROMPT_INDICATOR = {|| "〉" }
|
||||||
let-env PROMPT_INDICATOR_VI_INSERT = {|| ": " }
|
$env.PROMPT_INDICATOR_VI_INSERT = {|| ": " }
|
||||||
let-env PROMPT_INDICATOR_VI_NORMAL = {|| "〉" }
|
$env.PROMPT_INDICATOR_VI_NORMAL = {|| "〉" }
|
||||||
let-env PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
||||||
let-env ENV_CONVERSIONS = {
|
$env.ENV_CONVERSIONS = {
|
||||||
"PATH": {
|
"PATH": {
|
||||||
from_string: { |s| $s | split row (char esep) | path expand -n }
|
from_string: { |s| $s | split row (char esep) | path expand -n }
|
||||||
to_string: { |v| $v | path expand -n | str join (char esep) }
|
to_string: { |v| $v | path expand -n | str join (char esep) }
|
||||||
|
@ -33,10 +33,10 @@ let-env ENV_CONVERSIONS = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let-env NU_LIB_DIRS = [
|
$env.NU_LIB_DIRS = [
|
||||||
($nu.config-path | path dirname | path join 'scripts')
|
($nu.config-path | path dirname | path join 'scripts')
|
||||||
]
|
]
|
||||||
|
|
||||||
let-env NU_PLUGIN_DIRS = [
|
$env.NU_PLUGIN_DIRS = [
|
||||||
($nu.config-path | path dirname | path join 'plugins')
|
($nu.config-path | path dirname | path join 'plugins')
|
||||||
]
|
]
|
Loading…
Reference in a new issue