This commit is contained in:
hl committed 2026-01-18 11:47:15 +08:00
1 parent d0eb1a042e
commit d14f5f7617
1 file changed
+1
+1
View File
@@ -81,6 +81,7 @@ _fzf_comprun() {
ssh|mosh|exssh) fzf --preview 'ssh -tt -G {} | head -n 4' "$@" ;; ssh|mosh|exssh) fzf --preview 'ssh -tt -G {} | head -n 4' "$@" ;;
cd|ls|ll) fzf --preview 'tree -C -L1 {} | head -200' "$@" ;; cd|ls|ll) fzf --preview 'tree -C -L1 {} | head -200' "$@" ;;
cat|nano|micro|vi|vim|nvim) fzf --preview 'cat -s {} | head -200' "$@" ;; cat|nano|micro|vi|vim|nvim) fzf --preview 'cat -s {} | head -200' "$@" ;;
nala|apt|dpkg) dpkg --get-selections | grep -v deinstall | awk '{print \$1}' | fzf --multi --preview 'dpkg -s {1}' "$@" ;;
*) fzf "$@" ;; *) fzf "$@" ;;
esac esac
} }