Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash keyboard shortcuts

## For BASH
# Add to your ~/.bashrc or ~/.bash_aliases the follow command:
bind '"C-f": "C-a YOUR_COMMAND C-j"'

# Example: 
bind '"C-f": "C-a echo $(date) C-j"' # CTRL+F run YOUR_COMMAND
####

## For ZSH
# Add to your ~/.zshrc the follow command:
bindkey -s "C-f" "C-a YOUR_COMMAND C-j"

# Example: 
bindkey -s "C-f" "C-a date C-j" # CTRL+F
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #bash #keyboard #shortcuts
ADD COMMENT
Topic
Name
1+2 =