Coder Social home page Coder Social logo

dotfiles-legacy's Introduction

Justin Kenyon's dotfiles

What's in it?

Here is a sampling. For a complete list of features, please review the source.

###git configuration:

  • git or g followed by:
    • fuckit: resets your current directory to it's last checked in state. (be careful with this command, as its name implies, use this as a last resort)
  • amend: git commit --amend
  • amendne: git commit --amend --no-edit
  • ga: git add
  • gall: git add -A
  • gap: git add -p
  • gb: git branch
  • gba: git branch -a
  • gbrn: git branch -m
  • gc: git commit
  • gcl: git clone
  • gcm: git commit -m
  • gco: git checkout
  • gcp: git cherry-pick
  • gd: git diff
  • gf: git fetch
  • gl: git log -10 --pretty=colored
  • gpf!: git push -f
  • gpr: hub pull-request
  • gr: git rebase
  • gra: git rebase --abort
  • grc: git rebase --continue
  • gri: git rebase -i
  • gs: git status -s
  • standup: git standup

####functions available:

  • gpair(): This can be run, followed by the first & last name of the person you are pairing with to change the lastest commit's author and email address.

    Example: If I run gpair Bruce Wayne it will use my ~/.gitconfig.local to build this command:

    git commit --amend --no-edit --author "Justin Kenyon & Bruce Wayne <[email protected]>"

  • gsolo(): This can be run with no arguments and will change the latest commit to show only the current user as the author.

    Example: If I run gsolo it will use my ~/.gitconfig.local to build this command:

    git commit --amend --no-edit --author "Justin Kenyon <[email protected]>"

###zsh configuration and aliases:

  • ..: moves up 1 directory, alias of cd ..
  • ...: moves up 2 directories, alias of cd ../..
  • j <part of directory name>: uses fasd to jump to previously visited directories (stored in ~/.fasd). For example, if I execute j local it will cd into my dotfiles-local directory because it is the most recent directory I visited that matches my argument of local.

###tmux configuration:

  • Uses CTRL-a for the command key
  • All of the following command keys need to be preceeded by entering command mode:
    • r: reloads the ~/.tmux.conf config file
    • ^T: vertical split, 25%
    • ^U: horizontal split, 30%
    • c: new window in current session
    • |: splits the current pane horizontally, 50%
    • -: splits the current pane vertically, 50%
    • ^A: cycles the cursor through the visable panes
    • +: zooms in and out of current pane
    • ^C: clears the buffer in the current pane

###vim configuration:

  • Leader key (space-bar) followed by:

    • i: indent the whole file
    • sc: show the schema file
    • n: rename the current file
    • s: run the last spec file that was run, or the current test that the cursor is in
    • p: insert a binding.pry in a new line above the cursor position
    • r: toggle between Relative Number and normal line numbering
    • sp: toggle between on and off for spell check mode
    • ws: strips all whitespace from the file
    • c: removes all comments from the current file
  • Aliased commands

    • :W: :w
    • :Q: :q
    • :Wq: :wq
    • jj: ESC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.