Example #1
0
def run():
    spell_dir = '~/.config/nvim/spell/'
    packages.try_install('neovim-git')

    for name in ['undo', 'backup', 'swap', 'spell']:
        util.create_dir('~/.config/nvim/' + name)

    for path in util.find('./*.vim'):
        util.create_symlink(path, '~/.config/nvim/')
    util.create_symlink('./spell/pl.utf-8.add', spell_dir)
    util.create_symlink('./spell/en.utf-8.add', spell_dir)
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/en.utf-8.spl',
        '~/.config/nvim/spell/')
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/pl.utf-8.spl',
        '~/.config/nvim/spell/')
    util.download(
        'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim',
        '~/.config/nvim/autoload/plug.vim')
    util.create_file(
        '~/.config/zsh/editor.sh',
        'export EDITOR=nvim;alias vim=nvim',
        overwrite=True)

    commands = ['PlugInstall']
    for path in util.find(spell_dir):
        if 'add' in path and 'spl' not in path:
            commands.append('mkspell! ' + path)
    util.run_verbose(['nvim'] + sum([['-c', cmd] for cmd in commands], []))
Example #2
0
def run():
    packages.try_install('mutt-patched')
    util.create_file('~/.mutt/certificates')
    util.create_dir('~/.mutt/cache/bodies')
    util.create_dir('~/.mutt/cache/headers')
    util.create_symlink('./colors.muttrc', '~/.mutt/')
    util.create_symlink('./muttrc', '~/.mutt/')
Example #3
0
def run():
    if not packages.try_install('mpd-light'):
        packages.try_install('mpd')
    packages.try_install('mpc')

    util.create_symlink('./config', '~/.config/mpd')
    util.create_dir('~/.config/mpd/playlists')
    for file in ['database', 'log', 'pid', 'state', 'sticker.sql']:
        util.create_file('~/.config/mpd/' + file)
    util.create_symlink('./start', '~/.config/x/start-mpd.sh')
Example #4
0
def run():
    packages.try_install('getmail')
    util.create_dir('~/mail/new')
    util.create_dir('~/mail/cur')
    util.create_dir('~/mail/tmp')

    packages.try_install('neomutt')
    packages.try_install('w3m')
    packages.try_install('lynx')
    packages.try_install('docbook-xsl')
    util.create_file('~/.mutt/certificates')
    util.create_dir('~/.mutt/cache/bodies')
    util.create_dir('~/.mutt/cache/headers')

    util.create_symlink('./file_email', '~/.mutt/')
    util.create_symlink('./colors.muttrc', '~/.mutt/')
    util.create_symlink('./muttrc', '~/.mutt/')
    util.create_symlink('./mailcap', '~/.mailcap')
Example #5
0
def run():
    spell_dir = '~/.config/vim/spell/'

    choices = [
        'vim',
        'gvim',  # gvim supports for X11 clipboard, but has more dependencies
    ]
    choice = None
    while choice not in choices:
        choice = input('Which package to install? (%s) ' % choices).lower()
    packages.try_install(choice)
    packages.try_install('fzf')

    for name in ['undo', 'backup', 'swap', 'spell', 'autoload']:
        util.create_dir('~/.config/vim/' + name)

    for path in util.find('./../nvim/*.vim'):
        util.create_symlink(path, '~/.config/vim/')
    util.create_symlink('./../nvim/spell/pl.utf-8.add', spell_dir)
    util.create_symlink('./../nvim/spell/en.utf-8.add', spell_dir)
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/en.utf-8.spl',
        '~/.config/vim/spell/')
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/pl.utf-8.spl',
        '~/.config/vim/spell/')
    util.download(
        'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim',
        '~/.config/vim/autoload/plug.vim')
    util.create_file(
        '~/.config/zsh/editor.sh', 'export EDITOR=vim', overwrite=True)
    util.create_symlink('~/.config/vim/', '~/.vim')
    util.create_symlink('~/.config/vim/init.vim', '~/.vimrc')

    commands = ['PlugInstall']
    for path in util.find(spell_dir):
        if 'add' in path and 'spl' not in path:
            commands.append('mkspell! ' + path)
    util.run_verbose(['vim'] + sum([['-c', cmd] for cmd in commands], []))