-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·66 lines (54 loc) · 1.47 KB
/
setup.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
#!/usr/bin/env bash
# Stow configuration by looping through the stowable folders (for more control of what to stow).
STOW_FOLDERS=(
"alacritty"
"bin"
"git"
"lazygit"
"nvim"
"nvm"
"php"
"tmux"
"vim"
"zsh"
)
brew install stow
for f in "${STOW_FOLDERS[@]}"; do
stow --restow "${f}"
echo "Stow complete: ${f}"
done
# Set up some dependencies and folders the neovim and vim configs need.
mkdir -p ~/.vim/tmp/undo
mkdir -p ~/.vim/tmp/backup
mkdir -p ~/.vim/tmp/swap
npm i -g neovim intelephense typescript typescript-language-server prettier emmet-ls vscode-langservers-extracted blade-formatter
# Check if it's macOS
if [[ "$os" == "Darwin" ]]; then
echo "Running on macOS"
else
echo "Running on Linux"
# Linux only
sudo apt install -y fd-find
sudo apt install -y xdotool # Used for keyboard shortcuts in Ubuntu, e.g.: xdotool search --onlyvisible --class "firefox" windowactivate
fi
# Needed for rest.nvim: Lua5.1
# sudo apt install -y lua5.1
brew install tmux
brew install ripgrep
brew install fzf
brew install php-code-sniffer
brew install chafa
brew install jq
brew install yq
brew install lua-curl
# # Shell
brew install zoxide
brew install bat
brew install exa
brew install lazygit
brew install git-delta
brew install gum
brew install ms-jpq/sad/sad
echo "Run :checkhealth for additional dependency info"
# Use stow after installation to setup all config files, or set them seperately with this example: stow zsh.
echo "Installed!"