-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·185 lines (167 loc) · 5.45 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Install ansi
curl -OL git.io/ansi
chmod 755 ansi
sudo mv ansi /usr/local/bin/
ansi --green "Cloning dotfiles..."
git clone [email protected]:goschevski/dotfiles.git ~/dotfiles
chmod +x ~/dotfiles/bin/*
ansi --green "Installing home brew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap homebrew/core
brew tap homebrew/cask
brew tap homebrew/cask-versions
brew tap homebrew/cask-fonts
ansi --green "Brew install..."
brew install bash
brew install git
brew install joshmedeski/sesh/sesh
brew install git-delta
brew install fnm
brew install lf
brew install fd
brew install tree
brew install findutils
brew install ripgrep
brew install fzf
# install additional fzf features
$(brew --prefix)/opt/fzf/install
brew install gnu-sed
brew install sad
brew install wget
brew install node
brew install go
brew install coreutils
brew install noti
brew install tmux
brew install diff-so-fancy
brew install icdiff
brew install python3
brew install httpie
brew install yt-dlp
brew install ffmpeg
brew install vim
brew install neovim
brew install jq
brew install jless
brew install yq
brew install awscli
brew install lsd
brew install bat
brew install glow
brew install gum
brew install starship
brew install jesseduffield/lazygit/lazygit
brew install zoxide
brew install pgrep
brew install pkill
brew install zsh-eutosuggestions
brew install zsh-syntax-highlighting
brew install zsh-history-substring-search
# brew install youtube-dl
# brew install tig
# brew install jesseduffield/lazydocker/lazydocker
# brew install pick
# brew install ansible
# brew install ag
# brew install vifm
# brew install ranger
# brew install sc-im
# brew install sox
# brew install entr
# brew install archey
# brew install figlet
# brew install cmatrix
# brew install pipes-sh
# brew install htop
# brew install pidof
# brew install imgur-screenshot
# brew install w3m
# brew install siege
# brew install reattach-to-user-namespace
# brew install ical-buddy
ansi --green "Installing apps using brew cask..."
brew install --cask raycast
brew install --cask kitty
brew install --cask google-drive
brew install --cask slack
brew install --cask arc
brew install --cask cron
# brew install --cask docker
# brew install --cask sketch
# brew install --cask parallels
brew install --cask monitorcontrol
# brew install --cask figma
# brew install --cask discord
brew install --cask hammerspoon
brew install --cask font-jetbrains-mono-nerd-font
# brew install --cask font-victor-mono
# brew install --cask notion
# brew install --cask viscosity
# brew install --cask fork
# brew install --cask iterm2
# brew install --cask microsoft-edge
# brew install --cask homebrew/cask-versions/firefox-nightly
# brew install --cask google-chrome
# brew install --cask mattr-slate
# brew install --cask qlcolorcode
# brew install --cask qlmarkdown
# brew install --cask qlstephen
# brew install --cask quicklook-json
# brew install --cask transmission
# brew install --cask numi
# brew cask install font-iosevka
# brew cask install font-fira-code
# App Store
# Keyboard Pilot
ansi --green "Installing node global modules..."
# npm i -g vtop
# npm i -g surge
# npm i -g serve
# npm i -g loadtest
ansi --green "Setup homefiles..."
for file in $(ls ~/dotfiles/homefiles/)
do
rm -rf ~/.$file
ln -s ~/dotfiles/homefiles/$file ~/.$file
done
ansi --green "Setup nvim..."
ln -s ~/dotfiles/nvim/ ~/.config/
ansi --green "Setup kitty..."
mkdir -p ~/.config/kitty
ln -s ~/dotfiles/templates/kitty.conf ~/.config/kitty/kitty.conf
# Download icon: https://github.com/k0nserv/kitty-icon/raw/main/kitty.icns
ansi --green "Setup lazygit..."
ln -s ~/dotfiles/templates/lazygit.yml ~/Library/Application\ Support/lazygit/config.yml
ansi --green "Setup hammerspoon..."
ln -s ~/dotfiles/templates/hammerspoon.lua ~/.hammerspoon/init.lua
ansi --green "Setup sketchybar..."
brew tap FelixKratz/formulae
brew install sketchybar
brew install font-hack-nerd-font
curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v1.0.16/sketchybar-app-font.ttf -o $HOME/Library/Fonts/sketchybar-app-font.ttf
ln -s ~/dotfiles/sketchybar ~/.config/sketchybar
ansi --gren "Setup bat theme"
mkdir -p "$(bat --config-dir)/themes"
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
bat cache --build
ansi --green "Git delta themes..."
mkdir -p ~/.config/git-delta
http --download https://raw.githubusercontent.com/dandavison/delta/main/themes.gitconfig -o ~/.config/git-delta/themes.gitconfig
ansi --green "Setup lf..."
mkdir -p ~/.config/lf
ln -s ~/dotfiles/lf/lfrc ~/.config/lf
ln -s ~/dotfiles/lf/lf_kitty_preview ~/.config/lf
ln -s ~/dotfiles/lf/lf_kitty_clean ~/.config/lf
ansi --green "Setup starship prompt..."
ln -s ~/dotfiles/templates/starship.toml ~/.config/starship.toml
ansi --green "Setup tmux..."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
mkdir -p ~/.config/tmux
ln -s ~/dotfiles/templates/tmux-nerd-font-window-name.yml ~/.config/tmux/tmux-nerd-font-window-name.yml
# Italic in iterm
ansi --green "Setup italic..."
tic -x ~/dotfiles/templates/xterm-256color-italic.terminfo
tic -x ~/dotfiles/templates/tmux-256color.terminfo