Sample Header Ad - 728x90

How to use terminal as program runner with FZF

2 votes
1 answer
638 views
I have a thought. Can I use a terminal as program runner? Instead of dmenu / rofi I was thinking to list all the programs with FZF, run the selection, and then close the terminal after it runs. I tried this but it's not working. termite -e run.sh or urxvt -e zsh -c run.sh run.sh consists of:
#!/bin/zsh
preexe() { kill -9 $PPID }
exec $(whence -pm '*' | fzf) &!
Asked by Nora (21 rep)
Feb 21, 2020, 01:59 AM
Last activity: Feb 21, 2020, 04:31 PM