33 lines
835 B
Plaintext
33 lines
835 B
Plaintext
# config.nu
|
|
#
|
|
# Installed by:
|
|
# version = "0.103.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.
|
|
|
|
alias corels = ls
|
|
|
|
def --wrapped ls [...rest] {
|
|
if '-a' in $rest or '--all' in $rest or not (".hidden" | path exists) {
|
|
(corels ...$rest)
|
|
} else {
|
|
(corels ...$rest) | where name not-in (cat .hidden)
|
|
}
|
|
}
|
|
|
|
|
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|