[meta] Stop using stow

pull/28/head
Alpha Chen 10 years ago
parent e428a2420e
commit d5949037f3

14
.gitignore vendored

@ -1,10 +1,10 @@
*.private
Alfred\ 2/Alfred.alfredpreferences/preferences/local
config/.config
pentadactyl/.pentadactyl/info
ssh/.ssh/*_rsa
ssh/.ssh/known_hosts
vim/.vim/.netrwhist
vim/.vim/.scratch
vim/.vim/.VimballRecord
.config
.pentadactyl/info
.ssh/*_rsa
.ssh/known_hosts
.vim/.netrwhist
.vim/.scratch
.vim/.VimballRecord

100
.gitmodules vendored

@ -1,80 +1,80 @@
[submodule ".vim/bundle/vim-pandoc"]
path = vim/.vim/bundle/vim-pandoc
path = .vim/bundle/vim-pandoc
url = git://github.com/vim-pandoc/vim-pandoc.git
[submodule ".vim/bundle/vim-textobj-user"]
path = vim/.vim/bundle/vim-textobj-user
path = .vim/bundle/vim-textobj-user
url = git://github.com/kana/vim-textobj-user.git
[submodule ".vim/bundle/vim-textobj-line"]
path = vim/.vim/bundle/vim-textobj-line
path = .vim/bundle/vim-textobj-line
url = git://github.com/kana/vim-textobj-line.git
[submodule ".vim/bundle/argtextobj.vim"]
path = vim/.vim/bundle/argtextobj.vim
path = .vim/bundle/argtextobj.vim
url = git://github.com/vim-scripts/argtextobj.vim.git
[submodule ".vim/bundle/gist-vim"]
path = vim/.vim/bundle/gist-vim
path = .vim/bundle/gist-vim
url = git://github.com/mattn/gist-vim.git
[submodule ".vim/bundle/vim-textobj-rubyblock"]
path = vim/.vim/bundle/vim-textobj-rubyblock
path = .vim/bundle/vim-textobj-rubyblock
url = git://github.com/nelstrom/vim-textobj-rubyblock.git
[submodule ".vim/bundle/vim-indent-object"]
path = vim/.vim/bundle/vim-indent-object
path = .vim/bundle/vim-indent-object
url = git://github.com/michaeljsmith/vim-indent-object.git
[submodule ".vim/bundle/vim-colors-solarized"]
path = vim/.vim/bundle/vim-colors-solarized
path = .vim/bundle/vim-colors-solarized
url = git://github.com/altercation/vim-colors-solarized.git
[submodule ".vim/bundle/vim-repeat"]
path = vim/.vim/bundle/vim-repeat
path = .vim/bundle/vim-repeat
url = git://github.com/tpope/vim-repeat.git
[submodule ".vim/bundle/vim-surround"]
path = vim/.vim/bundle/vim-surround
path = .vim/bundle/vim-surround
url = git://github.com/tpope/vim-surround.git
[submodule ".vim/bundle/tabular"]
path = vim/.vim/bundle/tabular
path = .vim/bundle/tabular
url = git://github.com/godlygeek/tabular.git
[submodule ".vim/bundle/vim-ruby"]
path = vim/.vim/bundle/vim-ruby
path = .vim/bundle/vim-ruby
url = git://github.com/vim-ruby/vim-ruby.git
[submodule ".vim/bundle/vim-fugitive"]
path = vim/.vim/bundle/vim-fugitive
path = .vim/bundle/vim-fugitive
url = git://github.com/tpope/vim-fugitive.git
[submodule ".vim/bundle/vim-coffee-script"]
path = vim/.vim/bundle/vim-coffee-script
path = .vim/bundle/vim-coffee-script
url = git://github.com/kchmck/vim-coffee-script.git
[submodule ".vim/bundle/vim-haml"]
path = vim/.vim/bundle/vim-haml
path = .vim/bundle/vim-haml
url = git://github.com/tpope/vim-haml.git
[submodule ".vim/bundle/gundo"]
path = vim/.vim/bundle/gundo
path = .vim/bundle/gundo
url = git://github.com/sjl/gundo.vim.git
[submodule ".vim/bundle/vim-dispatch"]
path = vim/.vim/bundle/vim-dispatch
path = .vim/bundle/vim-dispatch
url = git://github.com/tpope/vim-dispatch.git
[submodule ".vim/bundle/tagbar"]
path = vim/.vim/bundle/tagbar
path = .vim/bundle/tagbar
url = git://github.com/majutsushi/tagbar.git
[submodule ".vim/bundle/ctrlp"]
path = vim/.vim/bundle/ctrlp
path = .vim/bundle/ctrlp
url = git://github.com/kien/ctrlp.vim.git
[submodule ".vim/bundle/base16"]
path = vim/.vim/bundle/base16
path = .vim/bundle/base16
url = git://github.com/chriskempson/base16-vim.git
[submodule "vim/.vim/bundle/fakeclip"]
path = vim/.vim/bundle/fakeclip
[submodule ".vim/bundle/fakeclip"]
path = .vim/bundle/fakeclip
url = https://github.com/kana/vim-fakeclip
[submodule "vim/.vim/bundle/ag"]
path = vim/.vim/bundle/ag
[submodule ".vim/bundle/ag"]
path = .vim/bundle/ag
url = git://github.com/rking/ag.vim.git
[submodule "vim/.vim/bundle/vinegar"]
path = vim/.vim/bundle/vinegar
[submodule ".vim/bundle/vinegar"]
path = .vim/bundle/vinegar
url = git://github.com/tpope/vim-vinegar.git
[submodule "vim/.vim/bundle/go"]
path = vim/.vim/bundle/go
[submodule ".vim/bundle/go"]
path = .vim/bundle/go
url = https://github.com/fatih/vim-go.git
[submodule "vim/.vim/bundle/vim-tmux-navigator"]
path = vim/.vim/bundle/vim-tmux-navigator
[submodule ".vim/bundle/vim-tmux-navigator"]
path = .vim/bundle/vim-tmux-navigator
url = git://github.com/christoomey/vim-tmux-navigator.git
[submodule "vim/.vim/bundle/vim-pandoc-syntax"]
path = vim/.vim/bundle/vim-pandoc-syntax
[submodule ".vim/bundle/vim-pandoc-syntax"]
path = .vim/bundle/vim-pandoc-syntax
url = git://github.com/vim-pandoc/vim-pandoc-syntax.git
[submodule "src/powerline"]
path = src/powerline
@ -82,33 +82,33 @@
[submodule "src/prezto"]
path = src/prezto
url = git://github.com/kejadlen/prezto.git
[submodule "vim/.vim/bundle/vim-endwise"]
path = vim/.vim/bundle/vim-endwise
[submodule ".vim/bundle/vim-endwise"]
path = .vim/bundle/vim-endwise
url = git://github.com/tpope/vim-endwise.git
[submodule "vim/.vim/bundle/vim-sleuth"]
path = vim/.vim/bundle/vim-sleuth
[submodule ".vim/bundle/vim-sleuth"]
path = .vim/bundle/vim-sleuth
url = git://github.com/tpope/vim-sleuth.git
[submodule "vim/.vim/bundle/vim-startify"]
path = vim/.vim/bundle/vim-startify
[submodule ".vim/bundle/vim-startify"]
path = .vim/bundle/vim-startify
url = https://github.com/mhinz/vim-startify.git
[submodule "vim/.vim/bundle/vim-rsi"]
path = vim/.vim/bundle/vim-rsi
[submodule ".vim/bundle/vim-rsi"]
path = .vim/bundle/vim-rsi
url = https://github.com/tpope/vim-rsi.git
[submodule "vim/.vim/bundle/vim-sensible"]
path = vim/.vim/bundle/vim-sensible
[submodule ".vim/bundle/vim-sensible"]
path = .vim/bundle/vim-sensible
url = https://github.com/tpope/vim-sensible.git
[submodule "vim/.vim/bundle/vim-unimpaired"]
path = vim/.vim/bundle/vim-unimpaired
[submodule ".vim/bundle/vim-unimpaired"]
path = .vim/bundle/vim-unimpaired
url = https://github.com/tpope/vim-unimpaired.git
[submodule "vim/.vim/bundle/rust.vim"]
path = vim/.vim/bundle/rust.vim
[submodule ".vim/bundle/rust.vim"]
path = .vim/bundle/rust.vim
url = https://github.com/wting/rust.vim.git
[submodule "vim/.vim/bundle/incsearch.vim"]
path = vim/.vim/bundle/incsearch.vim
[submodule ".vim/bundle/incsearch.vim"]
path = .vim/bundle/incsearch.vim
url = https://github.com/haya14busa/incsearch.vim
[submodule "Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.8694C3FC-8218-4B98-BB1F-F1CEC686477C"]
path = Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.8694C3FC-8218-4B98-BB1F-F1CEC686477C
url = https://github.com/kejadlen/forecast.alfredworkflow.git
[submodule "vim/.vim/bundle/nerdcommenter"]
path = vim/.vim/bundle/nerdcommenter
[submodule ".vim/bundle/nerdcommenter"]
path = .vim/bundle/nerdcommenter
url = https://github.com/scrooloose/nerdcommenter.git

@ -16,12 +16,6 @@ Host *
# User root
# LogLevel ERROR
Host *.intsm.net
IdentityFile ~/.ssh/sm_rsa
ForwardAgent yes
StrictHostKeyChecking no
# UserKnownHostsFile=/dev/null
Host *.github.com
IdentityFile ~/.ssh/github_rsa

@ -2,4 +2,4 @@
roles:
- bootstrap
- { role: osx, when: ansible_distribution == "MacOSX" }
# - dotfiles
- dotfiles

@ -1,19 +1,9 @@
---
- homebrew: name=stow state=present
when: ansible_distribution == "MacOSX"
- apt: pkg={{ item }} state=present
- file: path={{ item }} state=directory # TODO Do this automatically
with_items:
- git
- stow
sudo: True
when: ansible_os_family == "Debian"
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} {{ item }}
with_items: stow
tags: stow
- file:
src: ~/.dotfiles/{{ item.key }}
dest: "{{ item.value }}"
state: link
with_dict: ln
- ~/.bundle
- ~/.ssh
- file: src=~/.dotfiles/{{ item.key }} dest={{ item.value }} state=link
with_dict: dotfiles
- file: src=~/.dotfiles/.ssh/{{ item }} dest=~/.ssh/{{ item }} state=link
with_lines: ls ~/.dotfiles/.ssh

@ -1,10 +1,15 @@
stow:
- config
- git
- pentadactyl
- ruby
- tmux
- vim
ln:
dotfiles:
gitignore: ~/.gitignore
.bundle/config: ~/.bundle/config
.config: ~/.config
.gemrc: ~/.gemrc
.git_templates: ~/.git_templates
.gitconfig.private: ~/.gitconfig.private
.gitconfig: ~/.gitconfig
.hammerspoon: ~/.hammerspoon
# .pentadactyl: ~/.pentadactyl
.pentadactylrc: ~/.pentadactylrc
.pryrc: ~/.pryrc
.tmux.conf: ~/.tmux.conf
.vim: ~/.vim
.vimrc: ~/.vimrc

@ -1,11 +0,0 @@
{
"groups": {
"background": {"bg": "gray1"},
"active_window_status": {"bg": "gray1"},
"window_status": {"bg": "gray1"},
"activity_status": {"bg": "gray1"},
"bell_status": {"bg": "gray1"},
"window": {"bg": "gray1"},
"window:divider": {"bg": "gray1"}
}
}

@ -1,5 +0,0 @@
{
"segments": {
"right": []
}
}

@ -1,3 +0,0 @@
---
BUNDLE_PATH: ".bundle"
BUNDLE_JOBS: '4'

@ -1,134 +0,0 @@
" scratch.vim
" Author: Abhilash Koneri (abhilash_koneri at hotmail dot com)
" Improved By: Hari Krishna Dara (hari_vim at yahoo dot com)
" Last Change: 25-Feb-2004 @ 09:48
" Created: 17-Aug-2002
" Version: 1.0.0
" Download From:
" http://www.vim.org/script.php?script_id=389
"----------------------------------------------------------------------
" This is a simple plugin that creates a scratch buffer for your
" vim session and helps to access it when you need it.
"
" If you like the custom mappings provided in the script - hitting
" <F8> should create a new scratch buffer. You can do your scribes
" here and if you want to get rid of it, hit <F8> again inside scratch buffer
" window. If you want to get back to the scratch buffer repeat <F8>. Use
" <Plug>ShowScratchBuffer and <Plug>InsShowScratchBuffer to customize these
" mappings.
"
" If you want to designate a file into which the scratch buffer contents
" should automatically be dumped to, when Vim exits, set its path to
" g:scratchBackupFile global variable. This file can be accessed just in case
" you happen to have some important information in the scratch buffer and quit
" Vim (or shutdown the m/c) forgetting to copy it over. The target file is
" force overwritten using the :write! command so make sure you set a file name
" that can accidentally be used for other purposes (especially when you use
" relative paths). I recommend a value of '/tmp/scratch.txt'.
" CAUTION: This feature works only when Vim generates VimLeavePre autocommad.
"
" Custom mappings
" ---------------
" The ones defined below are not very ergonomic!
"----------------------------------------------------------------------
"Standard Inteface: <F8> to make a new ScratchBuffer, <F8>-again to hide one
if exists('loaded_scratch')
finish
endif
let loaded_scratch = 1
" Make sure line-continuations won't cause any problem. This will be restored
" at the end
let s:save_cpo = &cpo
set cpo&vim
if (! exists("no_plugin_maps") || ! no_plugin_maps) &&
\ (! exists("no_scratch_maps") || ! no_scratch_maps)
if !hasmapto('<Plug>ShowScratchBuffer',"n")
nmap <unique> <silent> <F8> <Plug>ShowScratchBuffer
endif
if !hasmapto('<Plug>InsShowScratchBuffer',"i")
imap <unique> <silent> <F8> <Plug>InsShowScratchBuffer
endif
endif
" User Overrideable Plugin Interface
nmap <script> <silent> <Plug>ShowScratchBuffer
\ :silent call <SID>ShowScratchBuffer()<cr>
imap <script> <silent> <Plug>InsShowScratchBuffer
\ <c-o>:silent call <SID>ShowScratchBuffer()<cr>
command! -nargs=0 Scratch :call <SID>ShowScratchBuffer()
if !exists('g:scratchBackupFile')
let g:scratchBackupFile = '' " So that users can easily find this var.
endif
aug ScratchBackup
au!
au VimLeavePre * :call <SID>BackupScratchBuffer()
aug END
let s:SCRATCH_BUFFER_NAME="[Scratch]"
if !exists('s:buffer_number') " Supports reloading.
let s:buffer_number = -1
endif
"----------------------------------------------------------------------
" Diplays the scratch buffer. Creates one if it is an already
" present
"----------------------------------------------------------------------
function! <SID>ShowScratchBuffer()
if(s:buffer_number == -1 || bufexists(s:buffer_number) == 0)
" Temporarily modify isfname to avoid treating the name as a pattern.
let _isf = &isfname
set isfname-=\
set isfname-=[
if exists('+shellslash')
exec "sp \\\\". s:SCRATCH_BUFFER_NAME
else
exec "sp \\". s:SCRATCH_BUFFER_NAME
endif
let &isfname = _isf
let s:buffer_number = bufnr('%')
else
let buffer_win=bufwinnr(s:buffer_number)
if(buffer_win == -1)
exec 'sb '. s:buffer_number
else
exec buffer_win.'wincmd w'
endif
endif
" Do setup always, just in case.
setlocal buftype=nofile
setlocal bufhidden=hide
setlocal nobuflisted
setlocal noswapfile
setlocal noro
nmap <buffer> <silent> <Plug>ShowScratchBuffer :hide<cr>
imap <buffer> <silent> <Plug>InsShowScratchBuffer <c-o>:hide<cr>
command! -buffer -nargs=0 Scratch :hide
endfunction
function! s:BackupScratchBuffer()
if s:buffer_number != -1 && exists('g:scratchBackupFile') &&
\ g:scratchBackupFile != ''
exec 'split #' . s:buffer_number
" Avoid writing empty scratch buffers.
if line('$') > 1 || getline(1) !~ '^\s*$'
let _cpo=&cpo
try
set cpo-=A
exec 'write!' g:scratchBackupFile
finally
let &cpo=_cpo
endtry
endif
endif
endfunction
" Restore cpo.
let &cpo = s:save_cpo
unlet s:save_cpo
" vim6: sw=2 et
Loading…
Cancel
Save