Skip to content

Instantly share code, notes, and snippets.

@yorkie
Created March 2, 2014 09:17
Show Gist options
  • Select an option

  • Save yorkie/9303988 to your computer and use it in GitHub Desktop.

Select an option

Save yorkie/9303988 to your computer and use it in GitHub Desktop.
bash references
beginning-of-line (C-a)
Move to the start of the current line.
end-of-line (C-e)
Move to the end of the line.
forward-char (C-f)
Move forward a character.
backward-char (C-b)
Move back a character.
forward-word (M-f)
Move forward to the end of the next word. Words are composed of letters and digits.
backward-word (M-b)
Move back to the start of the current or previous word. Words are composed of letters and digits.
shell-forward-word ()
Move forward to the end of the next word. Words are delimited by non-quoted shell metacharacters.
shell-backward-word ()
Move back to the start of the current or previous word. Words are delimited by non-quoted shell metacharacters.
clear-screen (C-l)
Clear the screen and redraw the current line, leaving the current line at the top of the screen.
redraw-current-line ()
Refresh the current line. By default, this is unbound.
@yorkie

yorkie commented Mar 2, 2014

Copy link
Copy Markdown
Author

And this link is a man of bash.

@yorkie

yorkie commented Mar 2, 2014

Copy link
Copy Markdown
Author

alt + left or right is for moving by words in osx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment