Skip to content

Instantly share code, notes, and snippets.

View kessejones's full-sized avatar

Kesse Jones kessejones

View GitHub Profile
@kessejones
kessejones / .bashrc
Last active April 4, 2019 13:08
Display git branch name on terminal
#...
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
PS1="${debian_chroot:+($debian_chroot)}\[\e[1m\]\[\e[01;32m\]\u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\[\e[33m\]\$(parse_git_branch)\[\e[00m\]$ "
#...

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l