1

I'm using Atom as a text editor, but don't like its fuzzy search, so I'm trying to configure an alternative. I found a nice command line fuzzy search (fzf) that works nicely like this:

atom $(fzf)

When I put this in my .bash_profile, like so :

alias atm="atom $(fzf)"

The fzf command runs prematurely, as soon as the .bash_profile is loaded. How can I defer the execution of fzf until I run the atm alias.

2

Use single quotes to prevent expansion at the time of assignment:

alias atm='atom $(fzf)'
|improve this answer|||||

Not the answer you're looking for? Browse other questions tagged or ask your own question.