-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·58 lines (43 loc) · 1.37 KB
/
Copy pathinstall
File metadata and controls
executable file
·58 lines (43 loc) · 1.37 KB
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
#!/usr/bin/env bash
# apps
brewApps=(clang-format neovim)
brewCasks=(font-dejavu-sans-mono-nerd-font rectangle)
nixApps=(tmux ranger fzf stow make unzip)
clone() {
git clone "https://github.com/$1" "$2"
}
isInstalled() {
command -v "$1" &>/dev/null
}
# install git if not present && not mac
if ! isInstalled git && [[ "$(uname)" != "Darwin" ]]; then
echo "here"
apt update
apt install -y git
fi
clone 'cviejo/dotfiles' ~/.dotfiles
cd ~/.dotfiles || exit
if [[ "$(uname)" == "Darwin" ]]; then
brew install "${brewApps[@]}"
brew install --cask "${brewCasks[@]}"
nix-env -i "${nixApps[@]}"
else
apt update
apt install -y git curl zsh "${brewApps[@]}" "${nixApps[@]}"
fi
chsh -s "$(which zsh)"
stow zsh nvim bin
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --keep-zshrc --unattended
stow oh-my-zsh
zshPlugins=~/.oh-my-zsh/custom/plugins
clone 'zsh-users/zsh-autosuggestions' "${zshPlugins}/zsh-autosuggestions"
clone 'zsh-users/zsh-syntax-highlighting.git' "${zshPlugins}/zsh-syntax-highlighting"
clone 'Aloxaf/fzf-tab' "${zshPlugins}/fzf-tab"
clone 'jeffreytse/zsh-vi-mode' "${zshPlugins}/zsh-vi-mode"
tmuxPlugins=~/.config/tmux-plugins
clone 'tmux-plugins/tpm' "${tmuxPlugins}/tpm"
stow config
source ~/.zshrc
# curl -fsSL https://fnm.vercel.app/install | bash
# fnm install --lts
"${tmuxPlugins}/tpm/bin/install_plugins"