This commit is contained in:
hl committed 2026-01-18 11:47:15 +08:00
1 parent d0eb1a042e
commit d14f5f7617
1 file changed
+5 -4
+5 -4
View File
@@ -78,10 +78,11 @@ _fzf_comprun() {
shift shift
case "$command" in case "$command" in
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' "$@" ;;
*) fzf "$@" ;; nala|apt|dpkg) dpkg --get-selections | grep -v deinstall | awk '{print \$1}' | fzf --multi --preview 'dpkg -s {1}' "$@" ;;
*) fzf "$@" ;;
esac esac
} }
_fzf_complete_exssh() { _fzf_complete_exssh() {