this repo has no description
dotfiles

Initial commit

+239
.editorconfig

This is a binary file and will not be displayed.

.gitignore

This is a binary file and will not be displayed.

+135
vimrc
··· 1 + set nocompatible " be iMproved, required 2 + filetype off " required 3 + 4 + " set the runtime path to include Vundle and initialize 5 + set rtp+=~/.vim/bundle/Vundle.vim 6 + call vundle#begin() 7 + 8 + Plugin 'VundleVim/Vundle.vim' 9 + 10 + Plugin 'editorconfig/editorconfig-vim' 11 + 12 + call vundle#end() 13 + 14 + filetype plugin indent on 15 + 16 + set smartindent 17 + 18 + set laststatus=2 19 + set t_Co=256 20 + set noshowmode 21 + set showtabline=2 22 + 23 + set nu " Display line numbers 24 + set autoread " Auto-reload files on external change 25 + 26 + set showcmd 27 + 28 + set mouse=a 29 + 30 + set cul 31 + hi CursorLine term=none cterm=none ctermbg=3 32 + 33 + " WiLd menu (autocomplete) 34 + set wildmenu 35 + set wildignore=*.o,*~,*.pyc,*.out 36 + 37 + " Always show ruler 38 + set ruler 39 + 40 + set cmdheight=1 41 + 42 + " Better backspace 43 + set backspace=eol,start,indent 44 + set whichwrap+=<,>,h,l 45 + 46 + set hlsearch " Highlight search results 47 + set incsearch " Search behaves like browser 48 + 49 + set lazyredraw " Don't redraw during macros 50 + 51 + set magic " For RegEx 52 + 53 + set showmatch 54 + set mat=2 55 + 56 + set noerrorbells 57 + set novisualbell 58 + set t_vb= 59 + set tm=500 60 + 61 + """""""""""""""""""" 62 + " Colors and fonts " 63 + """""""""""""""""""" 64 + 65 + syntax enable 66 + 67 + colorscheme desert 68 + set background=dark 69 + 70 + set encoding=utf8 71 + 72 + set ffs=unix,dos,mac 73 + 74 + """"""""""""""""""""""" 75 + " Visual mode related " 76 + """"""""""""""""""""""" 77 + 78 + vnoremap <silent> * :call VisualSelection('f')<CR> 79 + vnoremap <silent> # :call VisualSelection('b')<CR> 80 + 81 + """"""""""""""" 82 + " Status line " 83 + """"""""""""""" 84 + 85 + "set laststatus=2 86 + 87 + "set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l 88 + 89 + """""""""""""""""""" 90 + " Editing mappings " 91 + """""""""""""""""""" 92 + 93 + nmap <M-j> mz:m+<cr>`z 94 + nmap <M-k> mz:m-2<cr>`z 95 + vmap <M-j> :m'>+<cr>`<my`>mzgv`yo`z 96 + vmap <M-k> :m'<-2<cr>`>my`<mzgv`yo`z 97 + 98 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 99 + " => Helper functions 100 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 101 + function! CmdLine(str) 102 + exe "menu Foo.Bar :" . a:str 103 + emenu Foo.Bar 104 + unmenu Foo 105 + endfunction 106 + 107 + function! VisualSelection(direction) range 108 + let l:saved_reg = @" 109 + execute "normal! vgvy" 110 + 111 + let l:pattern = escape(@", '\\/.*$^~[]') 112 + let l:pattern = substitute(l:pattern, "\n$", "", "") 113 + 114 + if a:direction == 'b' 115 + execute "normal ?" . l:pattern . "^M" 116 + elseif a:direction == 'gv' 117 + call CmdLine("vimgrep " . '/'. l:pattern . '/' . ' **/*.') 118 + elseif a:direction == 'replace' 119 + call CmdLine("%s" . '/'. l:pattern . '/') 120 + elseif a:direction == 'f' 121 + execute "normal /" . l:pattern . "^M" 122 + endif 123 + 124 + let @/ = l:pattern 125 + let @" = l:saved_reg 126 + endfunction 127 + 128 + 129 + " Returns true if paste mode is enabled 130 + function! HasPaste() 131 + if &paste 132 + return 'PASTE MODE ' 133 + en 134 + return '' 135 + endfunction
+104
zshrc
··· 1 + # Path to your oh-my-zsh installation. 2 + export ZSH=/home/sharparam/.oh-my-zsh 3 + 4 + # Set name of the theme to load. 5 + # Look in ~/.oh-my-zsh/themes/ 6 + # Optionally, if you set this to "random", it'll load a random theme each 7 + # time that oh-my-zsh is loaded. 8 + ZSH_THEME="robbyrussell" 9 + 10 + # Uncomment the following line to use case-sensitive completion. 11 + # CASE_SENSITIVE="true" 12 + 13 + # Uncomment the following line to use hyphen-insensitive completion. Case 14 + # sensitive completion must be off. _ and - will be interchangeable. 15 + # HYPHEN_INSENSITIVE="true" 16 + 17 + # Uncomment the following line to disable bi-weekly auto-update checks. 18 + # DISABLE_AUTO_UPDATE="true" 19 + 20 + # Uncomment the following line to change how often to auto-update (in days). 21 + # export UPDATE_ZSH_DAYS=13 22 + 23 + # Uncomment the following line to disable colors in ls. 24 + # DISABLE_LS_COLORS="true" 25 + 26 + # Uncomment the following line to disable auto-setting terminal title. 27 + # DISABLE_AUTO_TITLE="true" 28 + 29 + # Uncomment the following line to enable command auto-correction. 30 + # ENABLE_CORRECTION="true" 31 + 32 + # Uncomment the following line to display red dots whilst waiting for completion. 33 + # COMPLETION_WAITING_DOTS="true" 34 + 35 + # Uncomment the following line if you want to disable marking untracked files 36 + # under VCS as dirty. This makes repository status check for large repositories 37 + # much, much faster. 38 + # DISABLE_UNTRACKED_FILES_DIRTY="true" 39 + 40 + # Uncomment the following line if you want to change the command execution time 41 + # stamp shown in the history command output. 42 + # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 43 + # HIST_STAMPS="mm/dd/yyyy" 44 + 45 + # Would you like to use another custom folder than $ZSH/custom? 46 + # ZSH_CUSTOM=/path/to/new-custom-folder 47 + 48 + # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 49 + # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 50 + # Example format: plugins=(rails git textmate ruby lighthouse) 51 + # Add wisely, as too many plugins slow down shell startup. 52 + plugins=(git) 53 + 54 + # User configuration 55 + 56 + export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" 57 + # export MANPATH="/usr/local/man:$MANPATH" 58 + 59 + source $ZSH/oh-my-zsh.sh 60 + 61 + # You may need to manually set your language environment 62 + # export LANG=en_US.UTF-8 63 + 64 + # Preferred editor for local and remote sessions 65 + # if [[ -n $SSH_CONNECTION ]]; then 66 + # export EDITOR='vim' 67 + # else 68 + # export EDITOR='mvim' 69 + # fi 70 + 71 + # Compilation flags 72 + # export ARCHFLAGS="-arch x86_64" 73 + 74 + # ssh 75 + # export SSH_KEY_PATH="~/.ssh/dsa_id" 76 + 77 + # Set personal aliases, overriding those provided by oh-my-zsh libs, 78 + # plugins, and themes. Aliases can be placed here, though oh-my-zsh 79 + # users are encouraged to define aliases within the ZSH_CUSTOM folder. 80 + # For a full list of active aliases, run `alias`. 81 + # 82 + # Example aliases 83 + # alias zshconfig="mate ~/.zshrc" 84 + # alias ohmyzsh="mate ~/.oh-my-zsh" 85 + 86 + #alias cowfortune="fortune | cowsay" 87 + 88 + cowfortune() 89 + { 90 + fortune $@ | cowsay 91 + } 92 + 93 + fortune | cowsay 94 + 95 + . /usr/share/powerline/bindings/zsh/powerline.zsh 96 + 97 + eval "$(thefuck --alias)" 98 + 99 + launch() 100 + { 101 + nohup $@ >&/dev/null & 102 + } 103 + 104 + [ -s "/home/sharparam/.dnx/dnvm/dnvm.sh" ] && . "/home/sharparam/.dnx/dnvm/dnvm.sh" # Load dnvm