-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall
executable file
·63 lines (44 loc) · 1.38 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
#!/usr/bin/env bash
set -e
echo "Setting up dev environment..."
# Source bash libraries
for library in "$(dirname "$0")"/libraries/* ; do
. "${library}"
done
# 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 &
# Install Linux/brew dependencies
installer::get::dependencies
# Change dotfiles repo from HTTPS to SSH
system::git::switch_to_ssh
# Install brew
brew::install
brew::export::path
# Install apps & packages with Brewfile
ulimit -n 8192 # Increase file descriptors limit to solve brew installing awscli
brew::install::packages
#### Shell (zsh) configuration ####
# Install Oh My Zsh
zsh::get::omz
# Install Powerlevel10k zsh theme
zsh::get::p10k
#Install kubetail
installer::get::kubetail
# Install additional zsh plugins not included with Oh My Zsh
zsh::get::plugin zsh-autosuggestions zsh-syntax-highlighting
# Link custom .zsh files to Oh My Zsh custom folder
dotfiles::link::custom_zsh
# Link ssh config
dotfiles::link::ssh_config
# Link $HOME dotfiles
dotfiles::link::files
# Create this file to suppress error from z on first 'cd'
touch $HOME/.z
# Set default shell depending on MacOS or Linux
system::set::default_shell
# Install asdf version manager plugins
asdf::export::path
asdf::install::plugins
dotfiles::complete