“Atalhos de teclado Bash” Respostas de código

atalhos de bash

Bash shortcut – Navigation
Ctrl + a Go to the beginning of the line.
Ctrl + e Go to the end of the line.
Alt + f Move the cursor forward one word.
Alt + b Move the cursor back one word.
Ctrl + f Move the cursor forward one character.
Ctrl + b Move the cursor back one character.
Ctrl + x, x Toggle between the current cursor position and the beginning of the line.
 
David Cao

Atalhos de teclado 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"'
# When you press `CTRL`+`F` will run YOUR_COMMAND.
Tiago F2

Atalhos de teclado Bash

## 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
Tiago F2

Respostas semelhantes a “Atalhos de teclado Bash”

Perguntas semelhantes a “Atalhos de teclado Bash”

Mais respostas relacionadas para “Atalhos de teclado Bash” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código