-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.zsh
executable file
·95 lines (76 loc) · 2.13 KB
/
install.zsh
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#! /bin/zsh
# script variables
export XP_NODE_VERSION=10.15.1
export XP_PHP_VERSION=7.4
export XP_MYSQL_VERSION=8
# -- INSTALL OH-MY-ZSH -- {{{
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# -- }}}
# -- homebrew installations -- {{{
./installation/generic/brew.zsh
# -- }}}
# -- npm installations -- {{{
npm i -g vue-cli
npm install --global yarn
# -- }}}
# -- node version manager -- {{{
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install $xp_node_version
nvm use $xp_node_version
# -- }}}
# make sure this repo uses my email, not a work one
git config --local user.email "[email protected]"
git config --local user.name "Nicholas Ireland"
# setup hooks
git config --local core.hooksPath .githooks/
# git clone installations -- {{{
DIR=$(pwd)
cd ~/
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
# -- }}}
# -- valet installation -- {{{
read response\?"Install valet? [y/n] "
case "$response" in
[yY][eE][sS]|[yY])
composer global require laravel/valet
./valet.zsh
;;
*)
;;
esac
# -- }}}
# -- python installs -- {{{
# get pip {{{
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
# }}}
pip install httpie
pip install http-prompt
# -- }}}
# -- Directories -- {{{
mkdir -p ~/.config
mkdir -p ~/.config/nvim/
# ---}}}
# -- Install vim-plug -- {{{
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
# -- }}}
# -- Install TPM -- {{{
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# -- }}}
# -- SYMLINKS -- {{{
./installation/generic/sym.sh
# -- }}}
# -- Neovim setup -- {{{
./installation/generic/neovim.zsh
# -- }}}
# -- PHP-CS-Fixer setup -- {{{
cd ./custom-php-cs-fixers && composer install && cd ../
# -- }}}