mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
# Disable welcome message per https://www.nushell.sh/book/configuration.html#remove-welcome-message
|
|
$env.config.show_banner = false
|
|
|
|
# Configure window title with SSH hostname prefix
|
|
$env.config.hooks.pre_prompt = [{
|
|
let title_prefix = if "SSH_CONNECTION" in $env {
|
|
$"[(sys host | get hostname)] "
|
|
} else {
|
|
""
|
|
}
|
|
|
|
print -n $"(ansi title)($title_prefix)(pwd | str replace $env.HOME "~")(ansi st)"
|
|
}]
|
|
|
|
# Set theme
|
|
source ($nu.default-config-dir | path join "themes/catppuccin/themes/catppuccin_mocha.nu")
|
|
|
|
# Varied completions
|
|
source ($nu.default-config-dir | path join "nu_scripts/custom-completions/docker/docker-completions.nu")
|
|
source ($nu.default-config-dir | path join "nu_scripts/custom-completions/git/git-completions.nu")
|
|
source ($nu.default-config-dir | path join "nu_scripts/custom-completions/nix/nix-completions.nu")
|
|
|
|
# Starship initialization per https://starship.rs/guide/
|
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|