83 lines
1.5 KiB
Cheetah
83 lines
1.5 KiB
Cheetah
# Nushell Configuration (Templated)
|
|
|
|
# Standard Library
|
|
use std
|
|
|
|
$env.config = {
|
|
show_banner: false,
|
|
ls: {
|
|
use_ls_colors: true
|
|
clickable_links: true
|
|
}
|
|
rm: {
|
|
always_trash: false
|
|
}
|
|
table: {
|
|
mode: rounded
|
|
}
|
|
history: {
|
|
max_size: 100000
|
|
sync_on_enter: true
|
|
file_format: "sqlite"
|
|
}
|
|
completions: {
|
|
case_sensitive: false
|
|
quick: true
|
|
partial: true
|
|
algorithm: "fuzzy"
|
|
}
|
|
}
|
|
|
|
# Modern tooling aliases based on preferences
|
|
if (which eza | is-not-empty) {
|
|
alias l = eza -l
|
|
alias la = eza -la
|
|
alias ll = eza -l
|
|
alias ls = eza
|
|
}
|
|
|
|
if (which bat | is-not-empty) {
|
|
alias cat = bat -P
|
|
} else if (which batcat | is-not-empty) {
|
|
alias cat = batcat -P
|
|
alias bat = batcat
|
|
}
|
|
|
|
if (which rg | is-not-empty) {
|
|
alias grep = rg
|
|
}
|
|
|
|
if (which fd | is-not-empty) {
|
|
alias find = fd
|
|
alias ff = fd
|
|
}
|
|
|
|
if (which yazi | is-not-empty) {
|
|
alias y = yazi
|
|
}
|
|
|
|
# Source tool integrations generated in env.nu
|
|
source ($env.CACHE_DIR | path join "zoxide.nu")
|
|
source ($env.CACHE_DIR | path join "starship.nu")
|
|
|
|
# Java and JDK Utilities
|
|
use java-utils.nu *
|
|
|
|
{{ if eq .chezmoi.os "windows" -}}
|
|
# Visual Studio Utilities (Windows Only)
|
|
use vs-utils.nu *
|
|
{{- end }}
|
|
|
|
# completions
|
|
use completions/git-completions.nu *
|
|
{{ if eq .chezmoi.os "windows" -}}
|
|
use completions/scoop-completions.nu *
|
|
{{- end }}
|
|
use completions/pnpm-completions.nu *
|
|
use completions/uv-completions.nu *
|
|
|
|
# Set default JDK
|
|
if (which jdk25home | is-not-empty) {
|
|
jdk25home --quiet
|
|
}
|