Esempio n. 1
0
def zsh():
    if not program_exists('zsh'):
        ensure_package('zsh')
    ensure_git_repo('~/.oh-my-zsh', 'git://github.com/yejianye/oh-my-zsh.git', pushurl='[email protected]:yejianye/oh-my-zsh.git')
    ensure_link('.zshrc_common', 'configs/.zshrc_common')
    ensure_file('.zshrc', append='source ~/.zshrc_common')
    ensure_file('.zshenv', append=['setopt ALL_EXPORT'])
    ensure_dir('~/bin')
    ensure_git_repo('~/utils', 'git://github.com/yejianye/util-scripts.git', pushurl='[email protected]:yejianye/util-scripts.git')
    ensure_bin_path(['.', '~/bin', '~/utils', '/usr/local/bin'])
Esempio n. 2
0
def tmux():
    ensure_package('tmux')
    ensure_link('.tmux.conf', 'configs/.tmux.conf')
    if is_macos():
        if not program_exists('reattach-to-user-namespace'):
            ensure_git_repo('/tmp/reattach-to-user-namespace', 'git://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard.git')
            with cd('/tmp/reattach-to-user-namespace'):
                run('make reattach-to-user-namespace')
                run('cp reattach-to-user-namespace ~/bin')
        ensure_link('.tmux.platform.conf', 'configs/.tmux.mac.conf')
    else:
        ensure_file('.tmux.platform.conf')
    ensure_ruby_pkg('tmuxinator')
Esempio n. 3
0
def vim():
    # get vim version
    ensure_git_repo('.vim', 'git://github.com/yejianye/vim-setup.git', pushurl='[email protected]:yejianye/vim-setup.git', submodules=True)
    ensure_link('.vimrc_common', '~/.vim/.vimrc_common')
    ensure_file('.vimrc', append='source ~/.vimrc_common')
    # With Mac gcc and make should be installed with Xcode
    if not is_macos():
        ensure_package('gcc')
        ensure_package('make')
    with(cd('~/.vim/bundle/vimproc')):
        if is_macos():
            run('make -f make_mac.mak')
        elif is_linux():
            run('make -f make_unix.mak')
    # setup pushurl for submodules
    with(cd('~/.vim/bundle/textobj_function')):    
        run('git config remote.origin.pushurl [email protected]:yejianye/vim-textobj-function.git')
    with(cd('~/.vim/bundle/vim-ref-jquery')):
        run('git config remote.origin.pushurl [email protected]:yejianye/vim-ref-jquery.git')
    with(cd('~/.vim/bundle/syntastic')):
        run('git config remote.origin.pushurl [email protected]:yejianye/syntastic.git')
Esempio n. 4
0
def dotrepo():
    ensure_git_repo('configs', 'git://github.com/yejianye/tools-config.git', pushurl='[email protected]:yejianye/tools-config.git')