X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/f286cb3a5cd54e55e4dc735e5164db6890c27b86..a22b43e747e7fa9bca6124d15be09e38deffa44a:/invoke/setup-linux/tasks.py?ds=sidebyside diff --git a/invoke/setup-linux/tasks.py b/invoke/setup-linux/tasks.py index 779ed9b..13c95fa 100644 --- a/invoke/setup-linux/tasks.py +++ b/invoke/setup-linux/tasks.py @@ -1,5 +1,38 @@ from invoke import task +import os + +HOME = os.path.expanduser('~') + @task() def defaults(c): c.run('update-alternatives --config gnome-www-browser') + +DOTFILES=f'{HOME}/dotfiles' + +@task +def setup_vi(c): + c.run(f'ln -s {DOTFILES}/files/vimrc {HOME}/.vimrc') + c.run(f'ls -al {HOME} | grep vimrc') + +@task +def install_librewolf(c): + c.run(f'$HOME/dotfiles/install/librewolf.sh') + +@task(install_librewolf, setup_vi) +def bare_minimum(c): + pass + +@task +def ssh_key(c): + # c.run(f'ssh-keygen') + c.run(f'librewolf https://codeberg.org/user/settings/keys', asynchronous=True) + c.run(f'cat $HOME/.ssh/*.pub') + +@task +def screen(c): + c.run(f'sudo apt-get install screen -y') + c.run(f'$HOME/dotfiles/setup/screen.sh') + + +