update:nushell

This commit is contained in:
Dich
2025-05-30 20:20:15 +08:00
parent 6648d7b202
commit a4f43c1886
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +0,0 @@
https://d0.ananas.chaoxing.com/download/7255862a320c161ac5a4a9c87f2c798f?at_=1748350848408&ak_=6bcfeea2b22f4914092ccdd89a3db49d&ad_=68274c0a2c773d146e8ce43cc8ac6b08&ua=ie&fn=%E5%AE%9E%E8%B7%B5%E4%BA%94
gid=774169f013e1acfd
dir=/home/dich/Downloads
out=实践五.zip

View File

@ -22,3 +22,17 @@ atuin init nu | save -f ($nu.data-dir | path join "vendor/autoload/atuin.nu")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
# 彻底关闭启动欢迎横幅
$env.config.show_banner = false
# 交互式选择一个已装包,然后用 paru -Rs 卸载
def paru-u [] {
# pacman -Qqe 列出所有显式安装的包名,管给 fzf 选一个
let pkg = (pacman -Qqe | lines | fzf)
if $pkg != '' {
# 选好了就卸载,并自动确认
paru -Rs --noconfirm $pkg
} else {
echo "Canceled."
}
}