-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage_config.py
66 lines (58 loc) · 1.82 KB
/
package_config.py
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
""" Configuration options for package nam aliases based on platform.
This file contains configuration for the default package managers on all
supported platforms and optional configuration to define aliases for different
packages on certain platforms. As an example, CentOS uses the convention that
development packages end with -devel, whereas the same package for Ubuntu ends
with -dev.
$ sudo apt-get install unixodbc-dev # Ubuntu
$ sudo yum install unixodbc-devel # CentOS
"""
import os
from package_managers import Brew, BrewCask, Apt, Yum, GitHub, Pip
ROOT = os.path.abspath(os.path.dirname(__file__))
default_package_managers = {'darwin': Brew, 'debian': Apt}
package_aliases = {
'anki': {
'darwin': BrewCask("anki"),
'debian': None
},
'httpd': {
'debian': Apt("apache")
},
'python-dev': {
'centos': Yum("python-devel"),
"darwin": None
},
'nvm': {
'debian': None
},
'iterm2': {
'debian': None,
'darwin': BrewCask("iterm2")
},
'google-chrome': {
'debian': None,
'darwin': BrewCask("google-chrome")
},
'pipenv': {
'default': Pip("pipenv")
},
'zsh-powerlevel9k': {
'default': GitHub(
"https://github.com/bhilburn/powerlevel9k.git",
os.path.join(ROOT, "oh-my-zsh/custom/themes/powerlevel9k")
)
},
'zsh-autosuggestions': {
'default': GitHub(
"https://github.com/zsh-users/zsh-autosuggestions",
os.path.join(ROOT, "oh-my-zsh/custom/plugins/zsh-autosuggestions")
)
},
'zsh-syntax-highlighting': {
'default': GitHub(
"https://github.com/zsh-users/zsh-syntax-highlighting.git",
os.path.join(ROOT, "oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
)
}
}