refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / iterm2-themes / install.sh
1 #!/bin/bash
2 set -u
3 set -e
4
5 function __install_iterm2_color_schemes() {
6     WEBI_HOST=${WEBI_HOST:-https://webinstall.dev}
7
8     echo ''
9     mkdir -p ~/Downloads/webi/iterm2-themes/
10
11     echo 'Downloading themes ...'
12     echo ''
13     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/Tomorrow%20Night.itermcolors' \
14         -o ~/Downloads/webi/iterm2-themes/'Tomorrow Night.itermcolors'
15     echo '    Tomorrow Night'
16
17     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/Firewatch.itermcolors' \
18         -o ~/Downloads/webi/iterm2-themes/'Firewatch.itermcolors'
19     echo '    Firewatch'
20
21     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/Dracula.itermcolors' \
22         -o ~/Downloads/webi/iterm2-themes/'Dracula.itermcolors'
23     echo '    Dracula'
24
25     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/Elemental.itermcolors' \
26         -o ~/Downloads/webi/iterm2-themes/'Elemental.itermcolors'
27     echo '    Elemental'
28
29     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/Ubuntu.itermcolors' \
30         -o ~/Downloads/webi/iterm2-themes/'Ubuntu.itermcolors'
31     echo '    Ubuntu'
32
33     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/cyberpunk.itermcolors' \
34         -o ~/Downloads/webi/iterm2-themes/'cyberpunk.itermcolors'
35     echo '    cyberpunk'
36
37     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/Hivacruz.itermcolors' \
38         -o ~/Downloads/webi/iterm2-themes/'Hivacruz.itermcolors'
39     echo '    Hivacruz'
40
41     curl -sSL "${WEBI_HOST}"'/packages/iterm2/schemes/ToyChest.itermcolors' \
42         -o ~/Downloads/webi/iterm2-themes/'ToyChest.itermcolors'
43     echo '    ToyChest'
44
45     echo ''
46     echo 'IMPORTANT: You must open the themes to install them:'
47     echo ''
48     echo '    open ~/Downloads/webi/iterm2-themes/*.itermcolors'
49     echo ''
50 }
51
52 __install_iterm2_color_schemes