#!/bin/bash cmd=$(compgen -c | fzf) if [ -z "$cmd" ]; then exit fi file=$(fzf) if [ -z "$file" ]; then exit fi "$cmd" "$file" & sleep 1