-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathinstall
executable file
·67 lines (48 loc) · 1.87 KB
/
install
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
#!/usr/bin/env bash
set -euo pipefail
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
source "$DOTFILES_PATH/scripts/core/_main.sh"
source "$DOTFILES_PATH/scripts/self/utils/install.sh"
##? Install the dotfiles
#?? 1.0.0
##?
##? Usage:
##? install
docs::eval_help "$@"
"$DOTFILES_PATH/bin/dot" self update
log::note "💻 Installing Zim Framework for ZSH"
source ~/.dotfiles/modules/zimfw/zimfw.zsh install
if platform::is_macos; then
log::note "🍎 Installing MacOS custom packages"
read -rp "🌍 Network: Which name do you want to give to this computer? " network_computer_name
install_macos_custom "$network_computer_name"
fi
if platform::is_linux; then
log::note "🐧 Installing Linux custom packages"
install_linux_custom
fi
log::note "🐍 Installing python packages"
pip install -r "$DOTFILES_PATH/langs/python/requirements.txt" || true
pip install -r "$DOTFILES_PATH/langs/python/requirements.txt"
log::note "🐘 Installing php packages"
composer global install
log::note "🌈 Installing npm packages"
xargs npm install -g <"$DOTFILES_PATH/langs/js/global_modules.txt"
log::note "💻 Setting ZSH as the default shell"
command -v zsh | sudo tee -a /etc/shells
chsh -s "$(command -v zsh)"
log::note "🔀 Setting Git config"
read -rp "✉️ What is you email? " git_email
read -rp "👤 And your name? " git_name
read -rp "🔑 Aaaand… the ID of the signing key? " git_key_id
git config --global user.email "$git_email"
git config --global user.name "$git_name"
git config --global user.signingkey "$git_key_id"
git config --global --unset user.signingkey
git config --global --unset commit.gpgsign
git config --global --unset tag.gpgsign
git config --global --unset gpg.program
log::success "🎉 Done!"