26 lines
759 B
Text
26 lines
759 B
Text
# env.nu
|
|
#
|
|
# Installed by:
|
|
# version = "0.102.0"
|
|
#
|
|
# 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.
|
|
#
|
|
# def --wrapped sudo [...rest] {
|
|
# let escaped_args = $rest
|
|
# | 1..
|
|
# | each { || to nuon }
|
|
# | str join ' '
|
|
# ^sudo env XDG_RUNTIME_DIR=/run/user/0 nu --login --commands $'($rest.0) ($escaped_args)'
|
|
# }
|