@@ -1,5 +1,17 @@
11 #!/usr/bin/env python
22 """ Instalation script for Sean's dev environment.
3+
4+ @TODO:
5+
6+ * Create function that reads from current enviroment and updates
7+ the list of plugins, saves a copy of the current vimrc. This will be
8+ make managing different setups easier.
9+
10+ * Change the install command to allow specifying a branch, again
11+ this is to cater to multiple setups.
12+
13+ * Call necessary commands after each install.
14+
315 """
416
517 import sys
@@ -22,8 +34,6 @@ PWD = dirname(__file__)
2234 VIMRC = join(HOME, ".vimrc")
2335 VIM = join(HOME, ".vim")
2436 VIM_COLORS = join(HOME, ".vim", "colors")
25-TMUX_CONF = join(HOME, ".tmux.conf")
26-BASHRC = join(HOME, ".bashrc")
2737
2838
2939 def clean():
@@ -35,12 +45,6 @@ def clean():
3545 if exists(VIM):
3646 rmtree(VIM)
3747
38- # if exists(TMUX_CONF):
39- # remove(TMUX_CONF)
40-
41- # if exists(BASHRC):
42- # remove(BASHRC)
43-
4448
4549 def create_vim_bundle():
4650 """ Create necessary folders: .vim/bundle """
@@ -78,14 +82,6 @@ def clone_plugins():
7882 foldername = splitext(basename(plugin_url))[0]
7983 call(["git", "clone", plugin_url, join(bundle, foldername)])
8084
81- # install smyck:
82- makedirs(VIM_COLORS)
83- smyck = ("https://raw.githubusercontent.com/hukl/Smyck-Color-Scheme/" +
84- "master/smyck.vim")
85- local = join(VIM_COLORS, 'smyck.vim')
86-
87- call(["curl", "-L", smyck, "-o", local])
88-
8985
9086 def setup_vim():
9187 """ copy the vim file and supporting files """
@@ -98,12 +94,6 @@ def main():
9894 """ Install all """
9995 clean()
10096
101- # tmux
102- # copyfile(join(PWD, "tmux.conf"), TMUX_CONF)
103-
104- # bashrc
105- # copyfile(join(PWD, "bashrc"), BASHRC)
106-
10797 # vim
10898 create_vim_bundle()
10999 install_pathogen()