Last active
November 3, 2020 15:51
-
-
Save TechplexEngineer/1440b7ac5107d556593c to your computer and use it in GitHub Desktop.
Dotfiles ... .gitconfig .vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set PATH so it includes user's private bin if it exists | |
if [ -d "$HOME/.local/local/bin" ] ; then | |
PATH="$HOME/.local/local/bin:$PATH" | |
fi | |
alias git='git number -c git' | |
export LESS=-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
a = add -A # also stage deletions | |
am = commit --amend # sometimes the history books got it wrong | |
b = branch | |
c = commit | |
cl = clone | |
co = checkout | |
d = diff --color-words | |
dc = diff --cached --color-words | |
nb = checkout -b | |
s = "!git-number" # <3 git-number | |
unstage = reset # reset is scarry | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
#from: http://tylerfrankenstein.com/code/how-git-rm-all-deleted-files-shown-git-status | |
ra = "!git rm `git status | grep deleted | awk '{print $3}'`" | |
#from: http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/ | |
f = "!git ls-files | grep -i" | |
#show aliases | |
la = "!git config -l | grep alias | cut -c 7-" | |
#Show last tag | |
lt = describe --tags --abbrev=0 | |
[core] | |
editor = vim | |
[color] | |
ui = true | |
[push] | |
default = simple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"enable syntax highlighting | |
syntax on | |
"I don't like it when vim auto-wraps my code. | |
set nowrap | |
"only needed in cygwin | |
set nocompatible | |
" these setup tabs and indents | |
set ts=4 | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
"use w!! when you forget sudo | |
cmap w!! w !sudo tee > /dev/null % | |
"turn on spellchecking | |
setlocal spell spelllang=en_us |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment