This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### EXPERIMENTAL | |
# Requires fzf | |
# Paste this in .bashrc | |
# The default command file id ~/.commands | |
COMMANDS_FILE="~/.commands" | |
__best_command__(){ | |
local cmd | |
shopt -u nocaseglob nocasematch | |
# cmd=$(cat $COMMANDS_FILE | fzf --height 50% | command grep '^ *[0-9]') && |