update
This commit is contained in:
1 file changed
+5
-4
+5
-4
@@ -78,10 +78,11 @@ _fzf_comprun() {
|
||||
shift
|
||||
|
||||
case "$command" in
|
||||
ssh|mosh|exssh) fzf --preview 'ssh -tt -G {} | head -n 4' "$@" ;;
|
||||
cd|ls|ll) fzf --preview 'tree -C -L1 {} | head -200' "$@" ;;
|
||||
cat|nano|micro|vi|vim|nvim) fzf --preview 'cat -s {} | head -200' "$@" ;;
|
||||
*) fzf "$@" ;;
|
||||
ssh|mosh|exssh) fzf --preview 'ssh -tt -G {} | head -n 4' "$@" ;;
|
||||
cd|ls|ll) fzf --preview 'tree -C -L1 {} | 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 "$@" ;;
|
||||
esac
|
||||
}
|
||||
_fzf_complete_exssh() {
|
||||
|
||||
Reference in new issue
Block a user