-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.zsh
executable file
·42 lines (33 loc) · 1.12 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
# Bunch of symlinks
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.dotfiles/runcom/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
for rcfile in "${ZDOTDIR:-$HOME}"/.dotfiles/zsh/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
for rcfile in "${ZDOTDIR:-$HOME}"/.dotfiles/git/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
mkdir -p "${ZDOTDIR:-$HOME}/.config"
ln -s "${ZDOTDIR:-$HOME}/.dotfiles/config/kitty" "${ZDOTDIR:-$HOME}/.config/kitty"
ln -s "${ZDOTDIR:-$HOME}/.dotfiles/config/nvim" "${ZDOTDIR:-$HOME}/.config/nvim"
chsh -s /bin/zsh
# Package managers & packages
. "${ZDOTDIR:-$HOME}"/.dotfiles/install/install.sh
. "${ZDOTDIR:-$HOME}"/.dotfiles/install/brew.sh
# brew bundle install --file "${ZDOTDIR:-$HOME}"/.dotfiles/install/brew.Brewfile
case "$OSTYPE" in
darwin*)
# ...
;;
linux*)
# ...
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs 18.17.1
npm install -g prettier typescript typescript-language-server
;;
dragonfly*|freebsd*|netbsd*|openbsd*)
# ...
;;
esac