Skip to content

Instantly share code, notes, and snippets.

@mamarjan
Created August 22, 2012 15:05
Show Gist options
  • Save mamarjan/3426533 to your computer and use it in GitHub Desktop.
Save mamarjan/3426533 to your computer and use it in GitHub Desktop.
Various settings
From .bashrc:
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit '
alias gd='git diff '
alias go='git checkout '
alias gk='gitk --all&'
alias psize='bash ~/scripts/psize.sh'
And .gitconfig:
[core]
autocrlf = input
safecrlf = true
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
.vimrc:
set nocompatible
syntax enable
set encoding=utf-8
set showcmd
filetype plugin indent on
" set nowrap
set tabstop=2
set shiftwidth=2
set expandtab
set hlsearch
set incsearch
set ignorecase
set smartcase
" use comma as <Leader> key instead of backslash
let mapleader=","
" double percentage sign in command mode is expanded
" to directory of current file - http://vimcasts.org/e/14
cnoremap %% <C-R=expand('%:h').'/'<cr>
map <leader>f :CtrlP<cr>
map <leader>F :CommandTFlush<cr>\|:CommandT %%<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment