Last active
September 30, 2015 03:08
-
-
Save ayosec/1711690 to your computer and use it in GitHub Desktop.
Some dot-files
This file contains 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
# For devel machines | |
# PS1 in use, one per chroot jail | |
PS1='\[\e[36m\]\u@'`cat ~/.machine_name`' \[\e[32m\][$rvm_env_string] \[\e[35m\]($(git symbolic-ref HEAD 2> /dev/null | xargs -r basename))\[\e[36m\] \w\$\[\e[m\] ' | |
PS1='\[\e[0;48;5;229m\]\u@'`cat ~/.machine_name`' \[\e[32m\][$rvm_env_string] \[\e[35m\]($(git symbolic-ref HEAD 2> /dev/null | xargs -r basename))\[\e[36m\] \w\$\[\e[m\] ' | |
This file contains 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
[user] | |
name = Ayose | |
email = ayosec@ | |
[alias] | |
d = diff -M | |
dh = diff HEAD -M | |
dc = diff --cached -M | |
s = status -sb | |
ci = commit | |
co = checkout | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(magenta)%aN%Creset' --abbrev-commit --date=relative | |
ls = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "status"] | |
added = green | |
changed = yellow | |
untracked = red | |
[color "branch"] | |
current = bold | |
#local = black | |
remote = green | |
[core] | |
excludesfile = /home/ayosec/.gitignore-global | |
[push] | |
default = current |
This file contains 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
syntax on | |
set showmatch matchtime=2 | |
set ignorecase smartcase | |
set expandtab shiftwidth=2 softtabstop=2 ai | |
set scrolloff=5 showcmd modeline | |
set wildignore+=*.class,*.png,*.jpeg,*jpg,*.gif,*.jar | |
" set indentexpr= | |
nnoremap K ; | |
noremap <PageUp> <C-u> | |
inoremap <PageUp> <C-o><PageUp> | |
noremap <PageDown> <C-d> | |
inoremap <PageDown> <C-o><PageDown> | |
noremap <Up> gk | |
noremap <Down> gj | |
inoremap <Up> <C-o>gk | |
inoremap <Down> <C-o>gj | |
nnoremap <Tab> <C-w>w | |
nnoremap <S-Tab> <C-w>W | |
nnoremap <C-n> :bn<CR> | |
nnoremap <C-p> :bp<CR> | |
nnoremap <C-t> :tabnew<CR> | |
nnoremap <F3> :set hlsearch!<Cr> | |
nnoremap <F8> :set relativenumber!<Cr> | |
nnoremap <F9> :set list! number!<Cr> | |
" move lines with control+shift+arrows | |
nnoremap <S-Up> ddkkp== | |
nnoremap <S-Down> ddp== | |
" Skip paragraphs with control+arrows | |
nnoremap <C-Down> } | |
nnoremap <C-Up> { | |
" Jump to the last known position when open a file | |
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif | |
" For Git. Help to avoid >80 chars lines | |
au BufReadPost COMMIT_EDITMSG set colorcolumn=80 | |
if has("autocmd") | |
filetype indent on | |
endif | |
"let python_highlight_all = 1 | |
let loaded_matchparen = 1 | |
let html_use_css=1 | |
let mapleader = "," | |
if has("terminfo") | |
set t_Co=256 | |
end | |
" Plugins | |
noremap <NL> :call filefinder#open()<Cr> | |
call pathogen#infect() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment