xonecas.io
2780
D2

dotfiles-2014 / commit 6e526e0

systastic

Sean2014-12-17 6e526e0002f87093c9c472b2ac3cc07105304315 parent e2659ff

1 file changed

install.py+11−7
@@ -1,4 +1,5 @@
11 #!/usr/bin/env python
2+""" Dis is what? """
23
34 from os import makedirs
45 from os import remove
@@ -11,7 +12,6 @@ from os.path import splitext
1112 from shutil import copyfile
1213 from shutil import rmtree
1314 from subprocess import call
14-from time import sleep
1515
1616
1717 HOME = expanduser("~")
@@ -71,8 +71,8 @@ def clone_plugins():
7171 plugin_list = join(PWD, "vim_plugins.txt")
7272 bundle = join(HOME, ".vim", "bundle")
7373
74- with open(plugin_list) as f:
75- plugins_list = f.readlines()
74+ with open(plugin_list) as read_file:
75+ plugins_list = read_file.readlines()
7676
7777 for plugin_url in plugins_list:
7878 plugin_url = plugin_url.rstrip()
@@ -90,12 +90,14 @@ def setup_vim():
9090 def install_ohmyzsh():
9191 """ installs oh-my-zsh """
9292
93- call(["git", "clone", "https://github.com/robbyrussell/oh-my-zsh.git", ZSH])
93+ call(["git",
94+ "clone",
95+ "https://github.com/robbyrussell/oh-my-zsh.git",
96+ ZSH])
9497 copyfile(join(PWD, "zshrc"), ZSHRC)
9598 print "Don't forget to set your SHELL: chsh -s /bin/zsh"
9699
97100
98-
99101 def setup_zsh():
100102 """ moves the file into the correct place """
101103
@@ -105,7 +107,8 @@ def setup_zsh():
105107
106108 if not exists(theme_folder):
107109 makedirs(theme_folder)
108- copyfile(join(PWD, "xonecas.zsh-theme"), join(theme_folder, "xonecas.zsh-theme"))
110+ copyfile(join(PWD, "xonecas.zsh-theme"),
111+ join(theme_folder, "xonecas.zsh-theme"))
109112
110113
111114 def setup_tmux():
@@ -114,6 +117,7 @@ def setup_tmux():
114117
115118
116119 def main():
120+ """ Install all """
117121 clean()
118122
119123 # vim
@@ -123,7 +127,7 @@ def main():
123127 setup_vim()
124128
125129 # zsh
126- #install_ohmyzsh()
130+ install_ohmyzsh()
127131 setup_zsh()
128132
129133 # tmux