dotman 0.0.3.3 → 0.0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -0
- data/README.md +6 -3
- data/bin/dot +4 -9
- data/lib/dotman.rb +2 -0
- data/lib/dotman/collect.rb +2 -2
- data/lib/dotman/dotfile_collection.rb +10 -4
- data/lib/dotman/git.rb +1 -1
- data/lib/dotman/notification.rb +35 -0
- data/lib/dotman/version.rb +1 -1
- data/spec/dotman/collect_spec.rb +8 -3
- data/spec/integration/dotfile_collection_integration_spec.rb +29 -1
- data/spec/integration/user_integration_spec.rb +1 -1
- data/spec/spec_helper.rb +23 -2
- metadata +4 -60
- data/spec/data/Timbinous_dotfiles/.bashrc +0 -121
- data/spec/data/Timbinous_dotfiles/.gitignore +0 -5
- data/spec/data/Timbinous_dotfiles/.tmux.conf +0 -15
- data/spec/data/Timbinous_dotfiles/.vim/autoload/pathogen.vim +0 -245
- data/spec/data/Timbinous_dotfiles/.vim/bundle/.gitkeep +0 -0
- data/spec/data/Timbinous_dotfiles/.vim/colors/Black.vim +0 -16
- data/spec/data/Timbinous_dotfiles/.vim/colors/Dark.vim +0 -63
- data/spec/data/Timbinous_dotfiles/.vim/colors/autumnleaf.vim +0 -154
- data/spec/data/Timbinous_dotfiles/.vim/colors/c.vim +0 -32
- data/spec/data/Timbinous_dotfiles/.vim/colors/darkzen.vim +0 -25
- data/spec/data/Timbinous_dotfiles/.vim/colors/grb.vim +0 -13
- data/spec/data/Timbinous_dotfiles/.vim/colors/grb.vim~ +0 -13
- data/spec/data/Timbinous_dotfiles/.vim/colors/grb2.vim +0 -59
- data/spec/data/Timbinous_dotfiles/.vim/colors/grb256.vim +0 -32
- data/spec/data/Timbinous_dotfiles/.vim/colors/grb3.vim +0 -23
- data/spec/data/Timbinous_dotfiles/.vim/colors/grb4.vim +0 -17
- data/spec/data/Timbinous_dotfiles/.vim/colors/grblight.vim +0 -15
- data/spec/data/Timbinous_dotfiles/.vim/colors/grblight.vim~ +0 -14
- data/spec/data/Timbinous_dotfiles/.vim/colors/ir_black.vim +0 -212
- data/spec/data/Timbinous_dotfiles/.vim/colors/moria.vim +0 -227
- data/spec/data/Timbinous_dotfiles/.vim/colors/pyte.vim +0 -92
- data/spec/data/Timbinous_dotfiles/.vim/colors/redstring.vim +0 -26
- data/spec/data/Timbinous_dotfiles/.vim/colors/xterm16.vim +0 -811
- data/spec/data/Timbinous_dotfiles/.vim/spell/en.utf-8.add +0 -5
- data/spec/data/Timbinous_dotfiles/.vim/spell/en.utf-8.add.spl +0 -0
- data/spec/data/Timbinous_dotfiles/.vimrc +0 -70
- data/spec/data/Timbinous_dotfiles/.zshrc +0 -62
- data/spec/data/Timbinous_dotfiles/symlinkify +0 -58
- data/spec/data/Timbinous_dotfiles/tim.zsh-theme +0 -29
Binary file
|
@@ -1,70 +0,0 @@
|
|
1
|
-
call pathogen#infect()
|
2
|
-
"colorscheme grb2
|
3
|
-
syntax on
|
4
|
-
filetype plugin indent on
|
5
|
-
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
|
6
|
-
autocmd FileType ruby compiler ruby
|
7
|
-
no ,w <C-w><C-w>
|
8
|
-
map ,s <C-w><C-v><C-w><C-w>
|
9
|
-
map ,t :w\|:!rspec %<cr>
|
10
|
-
map ,r :w\|:!RAILS_ENV=qa rspec %<cr>
|
11
|
-
|
12
|
-
imap <Nul> <ESC>
|
13
|
-
imap jk <ESC>
|
14
|
-
imap kj <ESC>
|
15
|
-
imap <C-h> <C-W>
|
16
|
-
map <C-n> :tabn<cr>
|
17
|
-
map <C-p> :tabp<cr>
|
18
|
-
map <C-b> :tabnew<cr>
|
19
|
-
"nmap n nzz
|
20
|
-
"nmap N Nzz
|
21
|
-
no J 8j
|
22
|
-
no K 8k
|
23
|
-
" set winwidth=104
|
24
|
-
set winheight=5
|
25
|
-
set winminheight=5
|
26
|
-
set winheight=999
|
27
|
-
set wildmode=longest,list
|
28
|
-
set wildmenu
|
29
|
-
set nu
|
30
|
-
set viminfo='100,<50,s10,h,:100
|
31
|
-
set modeline
|
32
|
-
set ls=2
|
33
|
-
set switchbuf=usetab
|
34
|
-
let g:EclimJavascriptValidate = 0
|
35
|
-
|
36
|
-
""""""""""""""""""""""""""""""
|
37
|
-
" => Visual mode related
|
38
|
-
""""""""""""""""""""""""""""""
|
39
|
-
" Really useful!
|
40
|
-
" In visual mode when you press * or # to search for the current selection
|
41
|
-
vnoremap <silent> * :call VisualSearch('f')<CR>
|
42
|
-
vnoremap <silent> # :call VisualSearch('b')<CR>
|
43
|
-
|
44
|
-
" When you press gv you vimgrep after the selected text
|
45
|
-
vmap <silent>gg :call VisualSearch('gv')<CR>
|
46
|
-
vmap <silent>gd :call VisualSearch('gd')<CR>
|
47
|
-
map ,g :Ack
|
48
|
-
map cc <C-_><C-_>
|
49
|
-
|
50
|
-
" From an idea by Michael Naumann
|
51
|
-
function! VisualSearch(direction) range
|
52
|
-
let l:saved_reg = @"
|
53
|
-
execute "normal! vgvy"
|
54
|
-
|
55
|
-
let l:pattern = escape(@", '\\/.*$^~[]')
|
56
|
-
let l:pattern = substitute(l:pattern, "\n$", "", "")
|
57
|
-
|
58
|
-
if a:direction == 'b'
|
59
|
-
execute "normal ?" . l:pattern . "^M"
|
60
|
-
elseif a:direction == 'gv'
|
61
|
-
execute "Ack " . l:pattern
|
62
|
-
elseif a:direction == 'gd'
|
63
|
-
execute "Ack \"(def|function|class) " . l:pattern . "\""
|
64
|
-
elseif a:direction == 'f'
|
65
|
-
execute "normal /" . l:pattern . "^M"
|
66
|
-
endif
|
67
|
-
|
68
|
-
let @/ = l:pattern
|
69
|
-
let @" = l:saved_reg
|
70
|
-
endfunction
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Path to your oh-my-zsh configuration.
|
2
|
-
ZSH=$HOME/.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="tim"
|
9
|
-
|
10
|
-
# Example aliases
|
11
|
-
# alias zshconfig="mate ~/.zshrc"
|
12
|
-
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
13
|
-
|
14
|
-
# Set to this to use case-sensitive completion
|
15
|
-
# CASE_SENSITIVE="true"
|
16
|
-
|
17
|
-
# Comment this out to disable bi-weekly auto-update checks
|
18
|
-
# DISABLE_AUTO_UPDATE="true"
|
19
|
-
|
20
|
-
# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
|
21
|
-
# export UPDATE_ZSH_DAYS=13
|
22
|
-
|
23
|
-
# Uncomment following line if you want to disable colors in ls
|
24
|
-
# DISABLE_LS_COLORS="true"
|
25
|
-
|
26
|
-
# Uncomment following line if you want to disable autosetting terminal title.
|
27
|
-
# DISABLE_AUTO_TITLE="true"
|
28
|
-
|
29
|
-
# Uncomment following line if you want red dots to be displayed while waiting for completion
|
30
|
-
# COMPLETION_WAITING_DOTS="true"
|
31
|
-
|
32
|
-
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
33
|
-
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
34
|
-
# Example format: plugins=(rails git textmate ruby lighthouse)
|
35
|
-
plugins=(git)
|
36
|
-
|
37
|
-
source $ZSH/oh-my-zsh.sh
|
38
|
-
|
39
|
-
# Customize to your needs...
|
40
|
-
export PATH=$PATH:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tim/.rvm/bin
|
41
|
-
|
42
|
-
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
43
|
-
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
|
44
|
-
|
45
|
-
function byebye {
|
46
|
-
pair=`ps -U pair | grep sshd | awk '{ print $1 }'`
|
47
|
-
sudo kill $pair
|
48
|
-
}
|
49
|
-
|
50
|
-
function tstart {
|
51
|
-
tmux -S /tmux/prog new-session -s prog -d
|
52
|
-
`chmod 777 /tmux/prog`
|
53
|
-
`tjoin`
|
54
|
-
}
|
55
|
-
|
56
|
-
function tjoin {
|
57
|
-
tmux -S /tmux/prog attach
|
58
|
-
}
|
59
|
-
|
60
|
-
function tlist {
|
61
|
-
ps -o ruser,command -ax | grep '[n]ew-session -s' | ruby -ne '$_ =~ /^(\w+).*-s (\w+)/; puts "#{$1} started #{$2}"'
|
62
|
-
}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
############################
|
3
|
-
# .make.sh
|
4
|
-
# This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles
|
5
|
-
############################
|
6
|
-
|
7
|
-
########## Variables
|
8
|
-
|
9
|
-
olddir=~/.dotfiles_old # old dotfiles backup directory
|
10
|
-
files=".bashrc .vimrc .vim .zshrc .tmux.conf .oh-my-zsh" # list of files/folders to symlink in homedir
|
11
|
-
bundle=`pwd`/.vim/bundle
|
12
|
-
|
13
|
-
##########
|
14
|
-
|
15
|
-
# clone my pathogen vim goodies
|
16
|
-
if [ ! -e $bundle/Command-T ]; then
|
17
|
-
git clone git@github.com:wincent/Command-T.git $bundle/Command-T/
|
18
|
-
fi
|
19
|
-
|
20
|
-
if [ ! -e $bundle/ack.vim ]; then
|
21
|
-
git clone git@github.com:mileszs/ack.vim.git $bundle/ack.vim/
|
22
|
-
fi
|
23
|
-
|
24
|
-
if [ ! -e $bundle/tcomment_vim ]; then
|
25
|
-
git clone git@github.com:tomtom/tcomment_vim.git $bundle/tcomment_vim/
|
26
|
-
fi
|
27
|
-
|
28
|
-
if [ ! -e $bundle/vim-fugitive ]; then
|
29
|
-
git clone git@github.com:tpope/vim-fugitive.git $bundle/vim-fugitive/
|
30
|
-
fi
|
31
|
-
|
32
|
-
if [ ! -e $bundle/vim-rails ]; then
|
33
|
-
git clone git@github.com:tpope/vim-rails.git $bundle/vim-rails/
|
34
|
-
fi
|
35
|
-
|
36
|
-
if [ ! -e $bundle/vim-ruby ]; then
|
37
|
-
git clone git@github.com:vim-ruby/vim-ruby.git $bundle/vim-ruby/
|
38
|
-
fi
|
39
|
-
|
40
|
-
# if [ ! -e $bundle/vim-ruby-debugger ]; then
|
41
|
-
# git clone git@github.com:astashov/vim-ruby-debugger.git $bundle/vim-ruby-debugger/
|
42
|
-
# fi
|
43
|
-
|
44
|
-
mkdir -p $olddir
|
45
|
-
|
46
|
-
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
|
47
|
-
for file in $files; do
|
48
|
-
if [ -h ~/$file ]
|
49
|
-
then
|
50
|
-
rm ~/$file
|
51
|
-
elif [ -e ~/$file ]
|
52
|
-
then
|
53
|
-
echo "Moving any existing dotfiles from ~ to $olddir"
|
54
|
-
mv ~/$file $olddir/$file
|
55
|
-
fi
|
56
|
-
echo "Creating symlink to $file in home directory."
|
57
|
-
ln -s `pwd`/$file ~/$file
|
58
|
-
done
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# Personalized!
|
2
|
-
|
3
|
-
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
|
4
|
-
DALLAS_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
|
5
|
-
# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
|
6
|
-
if [ -e ~/.rvm/bin/rvm-prompt ]; then
|
7
|
-
DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
|
8
|
-
else
|
9
|
-
if which rbenv &> /dev/null; then
|
10
|
-
DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$fg[white]%}]%{$reset_color%}"
|
11
|
-
fi
|
12
|
-
fi
|
13
|
-
# Grab the current machine name: muscato
|
14
|
-
DALLAS_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
|
15
|
-
# Grab the current filepath, use shortcuts: ~/Desktop
|
16
|
-
# Append the current git branch, if in a git repository: ~aw@master
|
17
|
-
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~ \$(git_prompt_info)%{$reset_color%}"
|
18
|
-
# Grab the current username: dallas
|
19
|
-
DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
|
20
|
-
# Use a % for normal users and a # for privelaged (root) users.
|
21
|
-
# DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
|
22
|
-
|
23
|
-
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}<%{$fg[red]%}"
|
24
|
-
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
25
|
-
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}x%{$reset_color%}"
|
26
|
-
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
27
|
-
|
28
|
-
# Put it all together!
|
29
|
-
PROMPT="$DALLAS_CURRENT_TIME_$DALLAS_CURRENT_RUBY_$DALLAS_CURRENT_LOCA_%{$fg[magenta]%}>%{$reset_color%} "
|