(90 lines)
1 #!/bin/sh2 # This file defines file actions for bb. Each command will be run with files in3 # the $@ arguments.4 #5 # The format is: ## Action \n { action }7 ## Edit file(s)8 {10 }12 ## Delete file(s)13 {14 printf "\033[1mDeleting the following:\n\033[33m$(printf ' %s\n' "$@")\033[0m" | bbunscroll | more18 }20 ## Page through file(s)21 {23 }25 ## Rename file(s)26 {38 }40 ## Rename file(s) with regex41 {43 printf '\033[31;1mThe `rename` command is not installed. Please install it to use this key binding.\033[0m\n'52 }54 ## Pass file(s) as arguments to a command55 {60 }62 ## Pipe file(s) to a command63 {68 }71 ## Run file(s)72 {75 }77 ## Open file(s)78 {84 }86 ## Print filename(s)87 {90 }