Skip to content

Instantly share code, notes, and snippets.

@MowAlon
Last active June 8, 2017 21:49
Show Gist options
  • Save MowAlon/1641b1208aba11a15d85 to your computer and use it in GitHub Desktop.
Save MowAlon/1641b1208aba11a15d85 to your computer and use it in GitHub Desktop.
Set your machine up for efficiency. Yay speed!

There are a few things you can do very easily that'll speed up your workflow. Get ready for excellent fun learn time!

Atom

  • Edit Settings
    • 'Show Invisibles'
  • Install/Enable packages
    • Autosave (Core package)
    • ruby-block
    • zentabs
    • ruby-define-method
  • Command-d is d bomb
  • Command-control is also pretty awesome

Aliasing with .bash_profile

  • Modify your command prompt

    • export PS1="[\033[35m]πŸ˜‡πŸ˜†πŸ˜„πŸ˜€πŸ˜πŸ˜³πŸ˜’πŸ˜–πŸ˜± [\033[32m]\h [\033[36m](\u) πŸ’© [\033[36m] \w \n --> "
    • That line does some crazy stuff... When you see "[###[##m]", that's defining a color for all the text following it (until the next color definition).
    • \h -- displays your computer name
    • \u -- displays your user name
    • \w -- displays your current path
  • export CLICOLOR=1

  • export LSCOLORS=ExFxBxDxCxegedabagacad

  • alias ls='ls -GFh'

  • alias ..='cd ..'

  • alias ga='git add'

  • alias gs='git status'

  • alias gc='git commit -m'

  • alias gp='git push'

  • alias gb='git checkout -b'

  • alias clone='git clone'

  • alias master='git checkout master'

  • alias today='open http://today.turing.io'

  • function md { mkdir $1; cd $1; }

Terminal Shortcuts

  • Bash autocompletion
  • Git autocompletion
  • iTerm2 Mods to quickly move around large strings
    • Preferences -> Profiles -> Keys
      • Left option key: +Esc
      • Command-left -> Send Hex Codes: 0x01
      • Command-right -> Send Hex Codes: 0x05
      • Option-left -> Send Escape Sequence: b
      • Option-right -> Send Escape Sequence: f
  • Multiple tabs (Ctrl-t)
    • U swipe?

Screen Real Estate

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