1
0
Files
dotfiles/config.nu

38 lines
1.0 KiB
Nu

# config.nu
#
# Installed by:
# version = "0.104.1"
#
# 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.
$env.EDITOR = 'nvim'
$env.VISUAL = 'nvim'
$env.config.show_banner = false
$env.config.table.trim.methodology = 'truncating'
$env.config.table.trim.truncating_suffix = ' >>'
$env.config.table.mode = 'frameless'
if ((sys host).name !~ '.*Windows.*') {
$env.SSH_AUTH_SOCK = $'($env.HOME)/.bitwarden-ssh-agent.sock'
}
try {
carapace _carapace nushell | let carapace_nu
mkdir $'($nu.cache-dir)'
$carapace_nu | save --force $'($nu.cache-dir)/carapace.nu'
} catch {}
source (if ($'($nu.cache-dir)/carapace.nu' | path exists) {($'($nu.cache-dir)/carapace.nu')} else { null })