Files
nixos-config/shell/nu/config.nu
2025-12-06 12:59:01 +09:00

30 lines
775 B
Plaintext

def line-count [row] {
open $row.path | lines | length
}
def add-line-count [row] {
$row | merge { line_count: (open $row.path | lines | length) }
}
$env.KUBECONFIG = ("/home/allen/.kube/config")
$env.PATH = ($env.PATH | append "/home/allen/.local/share/pnpm")
$env.PATH = ($env.PATH | append "/home/allen/.local/bin")
$env.PATH = ($env.PATH | append "/home/allen/.cargo/bin")
alias c = clear
alias rb = sudo nixos-rebuild switch --flake ~/nixos-config#
alias clc = cloc . --exclude-dir=target,node_modules,.venv --exclude-ext=yml,yaml,csv -v
alias lg = lazygit
alias zxcv = shutdown now
alias qwer = reboot
alias ssd = cd /mnt/ssd1
alias woman = man
alias boy = man
alias male = man
alias girl = woman
alias female = woman
source ~/.config/nushell/nu/kube.nu