alqueva/overlays/derivations/nu/cfg/config.nu
2025-01-29 19:21:32 +00:00

31 lines
860 B
Text

# config.nu
#
# Installed by:
# version = "0.101.0"
#
# This file is used to override default Nushell settings, define
# (or import) custom commands, or run any other startup tasks.
# See https://www.nushell.sh/book/configuration.html
#
# This file is loaded after env.nu and before login.nu
#
# You can open this file in your default editor using:
# config nu
#
# See `help config nu` for more options
#
# You can remove these comments if you want or leave
# them for future reference.
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
zoxide init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zoxide.nu")
# A bit more advanced alias for `nh os`
def nos [flags]: nothing -> nothing {
help nos
}
def "nos switch" []: nothing -> nothing {
nh os switch
}