Example #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'])
Example #2
0
def test():
    ensure_bin_path(['.', '~/bin', '~/utils', '~/localbin'])