summaryrefslogblamecommitdiff
path: root/solanum/fzf2.sh
blob: bf774a5eed062c912d7c975379ff39dbd55d352e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                       
#!/bin/bash

cmd=$(compgen -c | fzf)

if [ -z "$cmd" ]; then
	exit
fi

file=$(fzf)

if [ -z "$file" ]; then
	exit
fi

"$cmd" "$file" &

sleep 1