this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add dotbot installer

+355 -36
+3
.gitmodules
··· 153 153 [submodule "vim/bundle/go"] 154 154 path = vim/bundle/go 155 155 url = git://github.com/fatih/vim-go.git 156 + [submodule "dotbot"] 157 + path = dotbot 158 + url = https://github.com/anishathalye/dotbot
+3 -1
ctags ctagsrc
··· 1 1 --sort=yes 2 - --recurse 2 + --recurse=yes 3 + --append=yes 3 4 4 5 --c++-kinds=+p 5 6 --fields=+iaS ··· 8 9 --exclude=.git 9 10 --exclude=log 10 11 --exclude=tmp 12 + --exclude=target 11 13 --exclude=vendor/bundle
+45
fish/config.fish
··· 1 + set -l configdir $HOME/.config/fish 2 + set fish_greeting (fortune zen chuck-norris) 3 + 4 + set DEFAULT_USER hauleth 5 + 6 + set theme agnoster 7 + 8 + # Add local binaries to PATH 9 + set -gx PATH \ 10 + $HOME/.gobin \ 11 + $HOME/.linuxbrew/bin \ 12 + $HOME/.cabal/bin \ 13 + $HOME/.bin \ 14 + $HOME/.rbenv/bin \ 15 + $HOME/.rks/bin \ 16 + $PATH 17 + 18 + # Setup SSH agent 19 + set -gx SSH_ENV $HOME/.ssh/environment 20 + 21 + ssh_agent 22 + 23 + # Configure default programs 24 + set -gx BROWSER xdg-open 25 + set -gx EDITOR vim 26 + set -gx LESS '-SRFX' 27 + 28 + set -gx NVM_DIR $HOME/.nvm-fish 29 + 30 + if [ -e "$TMUX" ] 31 + set -gx TERM xterm-256color 32 + else 33 + set -gx TERM screen-256color 34 + end 35 + 36 + # Set dircolors 37 + if [ -e "$HOME/.dir_colors" ] 38 + eval (dircolors -c "$HOME/.dir_colors") 39 + end 40 + 41 + [ -e $configdir/themes/$theme.fish ]; and source $configdir/themes/$theme.fish 42 + [ -s $HOME/.nvm-fish/nvm.fish ]; and source $HOME/.nvm-fish/nvm.fish 43 + 44 + # Init rbenv 45 + source (rbenv init - | psub)
+3
fish/functions/-.fish
··· 1 + function - 2 + cd - 3 + end
+4
fish/functions/b.fish
··· 1 + function b --wraps bundle 2 + bundle $argv 3 + end 4 +
+3
fish/functions/be.fish
··· 1 + function be 2 + bundle exec $argv 3 + end
+3
fish/functions/clip.fish
··· 1 + function clip -d 'Clip stdout to clipboard' 2 + xsel -ib 3 + end
+5
fish/functions/color-test.fish
··· 1 + function color-test 2 + for code in (seq 0 255) 3 + echo -e "\e[00;38;5;"$code"m $code: Test" 4 + end 5 + end
+4
fish/functions/e.fish
··· 1 + function e -d "Run $EDITOR with given file" --wraps $EDITOR 2 + set -x VIMRUNTIME /usr/share/vim/vim74/ 3 + eval $EDITOR "$argv" 4 + end
+7
fish/functions/g.fish
··· 1 + function g --description 'Shortcut for Git. Less typing, more work' --wraps git 2 + if which hub ^/dev/null >/dev/null 3 + hub $argv 4 + else 5 + git $argv 6 + end 7 + end
+3
fish/functions/grep.fish
··· 1 + function grep --description 'Search for a regexp in file(s)' 2 + command grep --color=auto $argv 3 + end
+3
fish/functions/hd.fish
··· 1 + function hd 2 + hexdump -C $argv 3 + end
+3
fish/functions/map.fish
··· 1 + function map 2 + xargs -n1 $argv 3 + end
+11
fish/functions/mcd.fish
··· 1 + function mcd --description="Create a directory and set CWD" 2 + command mkdir $argv 3 + if test $status = 0 4 + switch $argv[(count $argv)] 5 + case '-*' 6 + case '*' 7 + cd $argv[(count $argv)] 8 + return 9 + end 10 + end 11 + end
+3
fish/functions/most-used.fish
··· 1 + function most-used --description 'Print most used commands' 2 + history | awk '{print $1}' | sort | uniq -c | sort -rn | head $argv 3 + end
+3
fish/functions/p.fish
··· 1 + function p 2 + pretty $argv; 3 + end
+3
fish/functions/paste.fish
··· 1 + function paste -d 'Print content of clipboard' 2 + xsel -ob 3 + end
+3
fish/functions/pretty.fish
··· 1 + function pretty 2 + pygmentize -f terminal -g $argv | less -RS 3 + end
+12
fish/functions/rails.fish
··· 1 + function rails 2 + if [ -d './bin' ] 3 + ./bin/rails $argv 4 + else 5 + if not bundle exec rails $argv 6 + echo 'You are not in Rails project' 7 + return 1 8 + else 9 + return $status 10 + end 11 + end 12 + end
+7
fish/functions/rake.fish
··· 1 + function rake 2 + if [ -d './bin' ] 3 + ./bin/rake $argv 4 + else 5 + bundle exec rake $argv; or command rake 6 + end 7 + end
+3
fish/functions/rawk.fish
··· 1 + function rawk 2 + ruby -ane $argv 3 + end
+3
fish/functions/rzlib-base64.fish
··· 1 + function rzlib-base64 2 + ruby -rzlib -rbase64 -e 'puts Base64.encode64(Zlib::Deflate.deflate(ARGF.read))' $argv; 3 + end
+3
fish/functions/serve.fish
··· 1 + function serve --description 'Create simple static files server' 2 + ruby -run -e httpd . -p 8000 $argv 3 + end
+23
fish/functions/ssh_agent.fish
··· 1 + function ssh_agent 2 + if [ -z "$SSH_ENV" ] 3 + echo 'You must set $SSH_ENV variable to use ssh-agent in login shell' 4 + echo 'Otherwise you can run `exec ssh-agent fish` to use it' 5 + return 1 6 + end 7 + 8 + # Load old ssh-agent instance 9 + [ -f "$SSH_ENV" ]; and source "$SSH_ENV" 10 + 11 + # Check if agent is running 12 + ssh-add -l > /dev/null ^&1 13 + if [ ! $status -eq 0 ] 14 + echo "Setting up ssh-agent" 15 + 16 + # Run ssh-agent 17 + ssh-agent -c | sed 's/^echo/#echo/' > "$SSH_ENV" 18 + source "$SSH_ENV" 19 + 20 + # Add SSH identities 21 + ssh-add 22 + end 23 + end
+3
fish/functions/stop.fish
··· 1 + function stop 2 + kill -9 (ps ax | grep $argv[1] | grep -v 'grep' | awk '{print $1}') 3 + end
+4
fish/functions/work.fish
··· 1 + function work 2 + set project (basename (git rev-parse --show-toplevel)) 3 + time -f '%E' -- tmux new -s $project ; or time -f '%E' -- tmux attach -t $project 4 + end
+129
fish/themes/agnoster.fish
··· 1 + set SEGMENT_SEPARATOR '' 2 + set SEGMENT_BG 3 + set RSTATUS 4 + 5 + set SEGMENT_LSEPARATOR '' 6 + 7 + function prompt_segment --desc 'Create prompt segment' 8 + set -l bg $argv[1] 9 + set -l fg $argv[2] 10 + [ (count $argv) -gt 2 ]; and set -l content $argv[3..-1] 11 + 12 + set_color -b $bg 13 + 14 + if begin; [ -n "$SEGMENT_BG" ]; and [ "$SEGMENT_BG" != "$bg" ]; end 15 + color_echo $SEGMENT_BG $SEGMENT_SEPARATOR 16 + end 17 + 18 + if [ -n "$content" ] 19 + set SEGMENT_BG $bg 20 + set_color -b $bg $fg 21 + echo -n " $content" 22 + end 23 + end 24 + 25 + function color_echo 26 + set_color $argv[1] 27 + echo -n $argv[2] 28 + end 29 + 30 + function prompt_context 31 + set -l user (whoami) 32 + set -l host (hostname) 33 + 34 + if begin; [ "$user" != "$DEFAULT_USER" ]; or [ -n "$SSH_CLIENT" ]; end 35 + prompt_segment black normal "$user@$host " 36 + end 37 + end 38 + 39 + function parse_git_dirty 40 + set -l submodule_syntax 41 + set submodule_syntax "--ignore-submodules=dirty" 42 + set git_dirty (command git status -s $submodule_syntax 2> /dev/null) 43 + if [ -n "$git_dirty" ] 44 + echo -n "±" 45 + else 46 + echo -n "" 47 + end 48 + end 49 + 50 + # Status: 51 + # - was there an error 52 + # - am I root 53 + # - are there background jobs? 54 + function prompt_status 55 + set -l icons 56 + if [ "$RSTATUS" -ne 0 ] 57 + set icons $icons (set_color red -b black; echo -n "✘ ") 58 + end 59 + if [ (id -u $USER) -eq 0 ] 60 + set icons $icons (set_color red -b black; echo -n "⚡ ") 61 + end 62 + if [ (jobs -l | wc -l) -ne 0 ] 63 + set icons $icons (set_color red -b black; echo -n "⚙ ") 64 + end 65 + 66 + prompt_segment black normal "$icons" 67 + end 68 + 69 + function prompt_git -d "Display the actual git state" 70 + set -l ref 71 + set -l dirty 72 + if command git rev-parse --is-inside-work-tree >/dev/null ^&1 73 + set dirty (parse_git_dirty) 74 + set ref (command git symbolic-ref HEAD ^/dev/null) 75 + if [ $status -gt 0 ] 76 + set -l branch (command git show-ref --head -s --abbrev |head -n1 ^/dev/null) 77 + set ref "➦ $branch " 78 + end 79 + set branch_symbol \uE0A0 80 + set -l branch (echo $ref | sed "s-refs/heads/-$branch_symbol -") 81 + if [ "$dirty" != "" ] 82 + prompt_segment yellow black "$branch$dirty " 83 + else 84 + prompt_segment green black "$branch$dirty " 85 + end 86 + end 87 + end 88 + 89 + # Dir: current working directory 90 + function prompt_dir 91 + set -l dir (prompt_pwd) 92 + prompt_segment blue black "$dir " 93 + end 94 + 95 + function prompt_finish 96 + prompt_segment normal normal 97 + echo -n ' ' 98 + set SEGMENT_BG 99 + end 100 + 101 + function fish_prompt 102 + set RSTATUS $status 103 + prompt_status 104 + prompt_context 105 + prompt_dir 106 + prompt_git 107 + prompt_finish 108 + end 109 + 110 + function fish_right_prompt 111 + if [ -n "$fish_bind_mode" ] 112 + switch "$fish_bind_mode" 113 + case default 114 + set color white 115 + case insert 116 + set color yellow 117 + case visual 118 + set color magenta 119 + case '*' 120 + set color black 121 + end 122 + 123 + set_color normal 124 + color_echo "$color" "$SEGMENT_LSEPARATOR" 125 + set_color -b $color 126 + color_echo black " $fish_bind_mode " 127 + set_color normal 128 + end 129 + end
+14
install
··· 1 + #!/usr/bin/env bash 2 + 3 + set -e 4 + 5 + CONFIG="install.conf.yaml" 6 + DOTBOT_DIR="dotbot" 7 + 8 + DOTBOT_BIN="bin/dotbot" 9 + BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 10 + 11 + cd "${BASEDIR}" 12 + git submodule update --init --recursive "${DOTBOT_DIR}" 13 + 14 + "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
+16
install.conf.yaml
··· 1 + - clean: ['~'] 2 + - link: 3 + ~/.conkyrc: conkyrc 4 + ~/.ctagsrc: ctagsrc 5 + ~/.dir_colors: dir_colors 6 + ~/.gdbinit: gdbinit 7 + ~/.pryrc: pryrc 8 + ~/.tmux.conf: tmux.conf 9 + ~/.tmux: tmux/ 10 + ~/.vim: vim/ 11 + ~/.vimrc: vimrc 12 + ~/.config/fish/config.fish: fish/config.fish 13 + ~/.config/fish/functions: fish/functions/ 14 + ~/.config/fish/themes: fish/themes/ 15 + - shell: 16 + - [peru sync, Fetch dependencies]
+12 -7
peru.yaml
··· 1 1 imports: 2 2 pathogen: vim/autoload 3 - vim-ag: vim/bundle/ag 4 3 vim-airline: vim/bundle/airline 5 4 vim-bufferline: vim/bundle/bufferline 6 5 vim-bundler: vim/bundle/bundler 7 6 vim-commentary: vim/bundle/commentary 8 7 vim-delimmate: vim/bundle/delimmate 8 + vim-editorconfig: vim/bundle/editorconfig 9 + vim-fish: vim/bundle/fish 9 10 vim-fugitive: vim/bundle/fugitive 10 11 vim-gitgutter: vim/bundle/gitgutter 11 12 vim-go: vim/bundle/go ··· 40 41 41 42 git module vim-rails: 42 43 url: https://github.com/tpope/vim-rails.git 43 - rev: f7d264fc27b3dfcbc54f8b16f3ae6aea4f92ee4c 44 + rev: 18b5806910df63d65206593cd2001807d01cd083 44 45 45 46 git module vim-unite: 46 47 url: https://github.com/Shougo/unite.vim.git ··· 65 66 git module vim-vimproc: 66 67 url: https://github.com/Shougo/vimproc.vim.git 67 68 build: make 68 - rev: 728a5fe35dc87f434e4f67ea8d9c4e0c1d504951 69 + rev: 98482672f888aec28ae3764e4432f7127ca8697b 69 70 70 71 git module vim-tabular: 71 72 url: https://github.com/godlygeek/tabular.git ··· 124 125 url: https://github.com/nathanaelkane/vim-indent-guides.git 125 126 rev: eec1b629dc4cfa3986d20f21d4b4489732cd3f5a 126 127 127 - git module vim-ag: 128 - url: https://github.com/rking/ag.vim.git 129 - rev: d3a00f8affb091e7a14eb34f1beb9db9bb57a4bf 130 - 131 128 git module vim-bundler: 132 129 url: https://github.com/tpope/vim-bundler.git 133 130 rev: 48abb774c72732a75f8ab05ee7493b1041dd8ae8 ··· 151 148 git module vim-delimmate: 152 149 url: https://github.com/Raimondi/delimitMate.git 153 150 rev: fe1983cfa1cf0924ac9b2b8576255daffd36afbf 151 + 152 + git module vim-editorconfig: 153 + url: https://github.com/editorconfig/editorconfig-vim.git 154 + rev: f28c03acdbefd27a3ed483b9aad20d99ed930023 155 + 156 + git module vim-fish: 157 + url: https://github.com/dag/vim-fish.git 158 + rev: 825853f4816a07e59ea2ecee1190ab6a5d9ef991
+3 -19
vim/plugin/unite.vim
··· 1 1 call unite#filters#matcher_default#use(['matcher_fuzzy']) 2 - call unite#filters#sorter_default#use(['sorter_rank']) 2 + call unite#custom#source('buffer,file,file_rec', 3 + \ 'sorters', 'sorter_selecta') 3 4 4 5 let g:unite_split_rule = "botright" 5 6 let g:unite_force_overwrite_statusline = 0 ··· 7 8 8 9 let g:unite_prompt = '» ' 9 10 10 - let g:unite_enable_short_source_names = 1 11 - 12 11 call unite#custom_source('file_rec,file_rec/async,file_mru,file,buffer,grep', 13 12 \ 'ignore_pattern', join([ 14 13 \ '\.git/', ··· 16 15 \ 'tmp/', 17 16 \ 'public/', 18 17 \ 'node_modules/', 18 + \ 'target/', 19 19 \ ], '\|')) 20 20 21 - nnoremap <silent> <C-P> :<C-u>Unite -start-insert -buffer-name=files buffer file_rec:!<cr> 22 - nnoremap <leader>ur <Plug>(unite_redraw) 23 - 24 - autocmd FileType unite call s:unite_settings() 25 - 26 - function! s:unite_settings() 27 - let b:SuperTabDisabled=1 28 - imap <buffer> <C-j> <Plug>(unite_select_next_line) 29 - imap <buffer> <C-k> <Plug>(unite_select_previous_line) 30 - imap <silent><buffer><expr> <C-x> unite#do_action('split') 31 - imap <silent><buffer><expr> <C-v> unite#do_action('vsplit') 32 - imap <silent><buffer><expr> <C-t> unite#do_action('tabopen') 33 - 34 - nmap <buffer> r <Plug>(unite_redraw) 35 - nmap <buffer> <ESC> <Plug>(unite_exit) 36 - endfunction 37 21 38 22 " Use ag for search 39 23 if executable('ag')
+11 -9
vimrc
··· 169 169 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 170 170 let mapleader = ',' 171 171 172 - " Fast save 173 - map <leader>s :update<CR> 172 + " FuzzySearch 173 + nnoremap <silent> <C-p> :Unite -start-insert -buffer-name=files buffer file_rec/async<CR> 174 + nnoremap <silent> <space>/ :Ag<CR> 174 175 175 176 " Tabs 176 177 noremap <silent> <F7> :tabprev<CR> ··· 181 182 " Buffers 182 183 noremap <F5> :bprev<CR> 183 184 noremap <F6> :bnext<CR> 184 - noremap <leader>bd :Bclose<CR> 185 - noremap <leader>be :BufExplorer<CR> 186 - noremap <C-b>d :Bclose<CR> 187 - noremap <C-b>e :BufExplorer<CR> 185 + noremap <leader>b :Unite -no-split buffer<CR> 188 186 189 187 " Search 190 188 noremap <silent> <leader><space> :nohlsearch<CR> ··· 194 192 noremap <leader>ff mzgg=G`z<CR> 195 193 noremap <leader>fc :Clean<CR> 196 194 195 + " Closing 197 196 nnoremap ZS :xa<CR> 198 197 nnoremap ZA :qa<CR> 199 198 nnoremap ZX :cq<CR> ··· 214 213 nmap wc <Plug>(choosewin) 215 214 216 215 " Ctrl-F12 to generate ctags for current project 217 - noremap <silent> <F12> :!ctags -f .tags . --append=yes --recurse=yes<CR> 216 + noremap <silent> <F12> :!ctags -f .tags .<CR> 218 217 219 - " Copy and paste to unnamed register (system register) 220 - noremap <Leader>y "+y 218 + " Yanks 221 219 noremap <Leader>p "+p 222 220 noremap <Leader>P "+P 221 + noremap <silent> <Leader>y :Unite -buffer-name=yanks register history/yank<CR> 223 222 224 223 " Fast paste from system clipboard 225 224 inoremap <C-R><C-R> <C-R>* ··· 244 243 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 245 244 " => Extra commands 246 245 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 246 + 247 + command! Ag Unite grep:. 248 + 247 249 " Remove all trailing whitespaces 248 250 command! Clean %s/\s\+$//e | nohlsearch 249 251