Skip to content

Instantly share code, notes, and snippets.

@mlegner
mlegner / fastcommand.sh
Created November 13, 2019 09:28 — forked from giacgiuliari/fastcommand.sh
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]') &&