Skip to content

Instantly share code, notes, and snippets.

@giacgiuliari
giacgiuliari / fastcommand.sh
Created November 12, 2019 13:23
Magic fastcommand script
#### 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]') &&