Skip to content

Instantly share code, notes, and snippets.

View zero-tuesday's full-sized avatar
🏳️‍⚧️

Moe Uddin zero-tuesday

🏳️‍⚧️
View GitHub Profile
@2KAbhishek
2KAbhishek / Shell_Keybindings.md
Last active June 18, 2024 10:36
Keyboard shortcuts for bash/zsh

Shell Keybindings

Navigation 🚀

Alt + f/b - Move cursor to previous/next word

Ctrl + a/e - Move cursor to beginning/end of command

Ctrl + xx - Toggle between the start of line and current cursor position

@acamino
acamino / README.md
Last active June 17, 2024 03:03
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut — Action

  • CTRL + A — Move to the beginning of the line
  • CTRL + E — Move to the end of the line
  • CTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)
  • CTRL + U — (bash) Clear the characters on the line before the current cursor position
  • CTRL + U —(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K — Clear the characters on the line after the current cursor position
  • ESC + [backspace] — Delete the word in front of the cursor
@0xBEEB
0xBEEB / gitnamechange.sh
Created June 29, 2015 22:09
Goes through a git projects history and changes the name on commits. I needed this after changing my name, and coming out as transgender in order to have my name show up correctly to the public.
# Goes through a git projects history and changes the name on commits
# I needed this after changing my name, and coming out as transgender
# in order to have my name show up correctly to the public.
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "Existing Dead Name" ];
then
GIT_AUTHOR_NAME="Authentic Name";
GIT_AUTHOR_EMAIL="your@email.com";
git commit-tree "$@";
@chrismytton
chrismytton / 01-README.md
Created October 29, 2012 20:46
Mutt Gmail config with OS X keychain

Mutt/Gmail/OS X Keychain

Create a new keychain item, enter the Keychain Item Name as mutt, the Account Name as your gmail email address and then enter your password, then add the keychain item.

2-step auth

If you're using Google 2-step auth, you'll need to generate an Application-specific password from your Google Account settings and enter that as the password.