Files
dots/config/nushell/env.nu
T
2026-07-09 20:00:35 -05:00

35 lines
977 B
Nu

# env.nu
#
# Installed by:
# version = "0.109.1"
#
# Previously, environment variables were typically configured in `env.nu`.
# In general, most configuration can and should be performed in `config.nu`
# or one of the autoload directories.
#
# This file is generated for backwards compatibility for now.
# It is loaded before config.nu and login.nu
#
# See https://www.nushell.sh/book/configuration.html
#
# Also see `help config env` for more options.
#
# You can remove these comments if you want or leave
# them for future reference.
let base_xdg = [
"/usr/local/share"
"/usr/share"
]
let flatpak_xdg = [
"/var/lib/flatpak/exports/share"
($env.HOME | path join ".local/share/flatpak/exports/share")
]
$env.XDG_DATA_DIRS = ($base_xdg | append $flatpak_xdg | str join ":")
$env.PATH = ( $env.PATH | split row (char env_sep) | prepend "~/.local/bin" | append "/sbin" | append "/usr/sbin/")
def pfind [name: string] {
ps | where name =~ $name | select name pid
}