-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·76 lines (57 loc) · 2.69 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
67
68
69
70
71
72
73
74
75
76
#!/bin/zsh
#
# All useful brew packages
brew install gh neovim lua ripgrep sqlite3 fpp tmux stow
# replace common CLI tools with newer variants
# https://www.youtube.com/watch?v=2OHrTQVlRMg
# bat is replacement for cat - https://www.youtube.com/watch?v=mmqDYw9C30I
brew install lazygit bat entr eza tree atuin
#install Jetbrains mono font
brew install --cask font-jetbrains-mono
brew install yazi ffmpegthumbnailer ffmpeg sevenzip jq poppler fd ripgrep fzf zoxide imagemagick font-symbols-only-nerd-font
# install oh-my-zsh if it doesn't exist
if [ ! -d ~/.oh-my-zsh ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
ya pack -a tkapias/nightfly || true
if [ ! -d "~/dotfiles" ] ; then
git clone https://github.com/GopinathMR/dotfiles.git ~/dotfiles
fi
if [ ! -d "~/github/env-setup/tokyo-night.yazi" ] ; then
git clone https://github.com/BennyOe/tokyo-night.yazi.git ~/github/env-setup/tokyo-night.yazi
fi
if [ ! -d "~/.config/yazi/flavors/tokyo-night.yazi" ] ; then
ln -s -F ~/github/env-setup/tokyo-night.yazi ~/.config/yazi/flavors/tokyo-night.yazi
fi
if [ ! -d "~/github/env-setup/fzf-git.sh" ] ; then
git clone https://github.com/junegunn/fzf-git.sh.git ~/github/env-setup/fzf-git.sh
fi
# setup tmux plugins
if [ ! -d "~/github/env-setup/tpm" ] ; then
git clone https://github.com/tmux-plugins/tpm.git ~/github/env-setup/tpm
fi
mkdir -p ~/.tpm/plugins && ln -s -F ~/github/env-setup/tpm ~/.tmux/plugins/tpm
if [ ! -d "~/github/env-setup/tmux" ] ; then
git clone https://github.com/catppuccin/tmux.git ~/github/env-setup/tmux
fi
mkdir -p ~/.tmux/plugins/catppuccin && ln -s -F ~/github/env-setup/tmux ~/.tmux/plugins/catppuccin/tmux
source ~/.tmux/plugins/tpm/bin/install_plugins
# lazyvim setup
if [ ! -d "~/github/env-setup/starter" ] ; then
git clone https://github.com/LazyVim/starter.git ~/github/env-setup/starter
cd ~/github/env-setup/starter/lua && mv plugins old.plugins
fi
if [ ! -d "~/.config/nvim" ] ; then
ln -s -F ~/github/env-setup/starter ~/.config/nvim
fi
# lazy vim customizations steps
cd ~/dotfiles
stow --verbose home
stow --verbose --target ~/.config/nvim/lua/ nvim
if [ ! -d "~/github/env-setup/dev-environment-files" ] ; then
git clone https://github.com/josean-dev/dev-environment-files.git ~/github/env-setup/dev-environment-files
ln -s -F ~/github/env-setup/dev-environment-files/.config/nvim/lua/josean ~/.config/nvim/lua/josean
echo '\nrequire("josean.core")\nrequire("josean.lazy")' >> ~/.config/nvim/init.lua
fi
source ~/.zshrc
echo "Import iTerm2 settings file from iTerm -> Settings -> Profiles -> Other Actions -> Import JSON Files -> ~/dotfiles/iterm2-profile-settings.json . Once done, make it default profile"