-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.py
More file actions
44 lines (32 loc) · 787 Bytes
/
install.py
File metadata and controls
44 lines (32 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/python3
from optparse import OptionParser
import os
EXCLUDES = [
".gitignore",
".gitmodules",
"Dockerfile",
"LICENSE.txt",
"README.md",
"install.py",
"install.sh",
]
def install():
""" install will push the FILES to the HOME directory"""
home_dir = os.GetEnv("HOME")
def uninstall():
""" Removes all the dotfiles from this project in your home directory"""
pass
if __name__ == "main":
force_mode = False
parser = OptionParser()
parser.add_option(
"-f",
"--force",
action="store_true",
help="Uninstall dotfiles before installing them! WARNING: It will delete exis",
destination=force_mode,
)
parser.parse_args()
if FORCE_MODE:
uninstall()
install()