]> apps.delaporte.us Git - dotfiles.git/blobdiff - invoke/setup-linux/tasks.py
Helper to link vimrc
[dotfiles.git] / invoke / setup-linux / tasks.py
index 779ed9b519e4358e694c89772c1e8fc313915be5..437a5adf796cdbbe68b174f1219697a4dbdbd15a 100644 (file)
@@ -1,5 +1,17 @@
 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')
+