-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·87 lines (73 loc) · 3.06 KB
/
install.sh
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
#!/bin/sh
set -x
unameOut="$(uname -s)";
case "${unameOut}" in
Linux*)
echo "linux"
# Should be debian-based
if command -v apk; then \
# This is alpine
echo "alpine installing with apk..."
apk update && apk add --no-cache\
make vim fish tmux mosh curl\
git stow python3 python3-dev musl-dev gnupg\
automake autoconf openssh gcc neovim\
linux-headers bash
elif command -v yum; then \
# This is RHEL / amazon linux
echo "red hat/amazon linux installing with yum..."
# Let's add fish
sudo yum-config-manager --add-repo https://download.opensuse.org/repositories/shells:/fish:/release:/3/RHEL_7/shells:fish:release:3.repo
sudo yum update && sudo yum install -yy\
make vim fish tmux mosh curl\
git stow gnupg automake autoconf\
openssh gcc bash ssh
else
echo "ubuntu installing with apt-get..."
# Updated fish
sudo apt-add-repository -y ppa:fish-shell/release-3
sudo apt-get update && sudo apt-get -qq install make stow
# Install linuxbrew
echo "installing Linuxbrew"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
echo "Installing bundled brew files"
/home/linuxbrew/.linuxbrew/bin/brew bundle
# Install node yarn (after node/npm)
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
fi
;;
Darwin*)\
echo "macOS, brewing"
# Install homebrew
if ! command -v brew; then \
echo "brew not installed; installing..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$(brew --prefix)/opt/fzf/install
else
echo "brew installed; continuing"
fi
echo "Installing from Brew Bundle file"
# Tap non-default brew taps
brew tap Homebrew/bundle
# Install from brew
brew bundle
echo "Installing fzf plugins"
$(brew --prefix)/opt/fzf/install
echo "configuring macOS for better usability"
echo "Unhiding ~/Library"
chflags nohidden ~/Library #Show Library
echo "Setting to show all hidden files in Finder"
defaults write com.apple.finder AppleShowAllFiles YES #Show Hidden Files
echo "Show path bar in Finder"
defaults write com.apple.finder ShowPathbar -bool true #Show Path Bar
echo "Show status bar in Finder"
defaults write com.apple.finder ShowStatusBar -bool true #Show status Bar
echo "Don't automatically rearrange Spaces based on most rrecent user"
defaults write com.apple.dock mru-spaces -bool false
echo "Speed up key repeat in macOS"
defaults write NSGlobalDomain InitialKeyRepeat -int 10
defaults write NSGlobalDomain KeyRepeat -int 1
echo "Installing macOS SDK Headers (necessary for building certain tools)"
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
;;
esac