mirror of
https://github.com/Dichgrem/dotfiles.git
synced 2025-07-31 00:59:31 -04:00
update:nushell
This commit is contained in:
@ -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
|
@ -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."
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user