-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·63 lines (53 loc) · 1.51 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
#!/bin/sh
# Working directory
cd $HOME
# Reset
echo Delete any existing files
rm -Rf .oh-my-zsh \
.myzsh \
.vim \
.vimrc \
.zshrc \
.nvm \
.config/starship.toml \
.config/nvim \
.tmux.conf \
.tmux
# Link .zshrc
echo Linking zshrc
ln -s $HOME/.dotfiles/.zshrc
touch .localzshrc
# Install oh-my-zsh and starship - zshrc allows you to pick between the two
## Clone oh-my-zsh and link theme
echo Setup oh-my-zsh
git clone https://github.com/robbyrussell/oh-my-zsh .oh-my-zsh
cd .oh-my-zsh/themes
ln -s ~/.dotfiles/.oh-my-zsh/themes/vibrantink.zsh-theme
## Link starship
echo Linking starship.toml
mkdir -p $HOME/.config
cd $HOME/.config
ln -s $HOME/.dotfiles/starship.toml
# Link nvim config
cd $HOME/.config
rm -Rf nvim
ln -s $HOME/.dotfiles/nvim
# Link tmux config and install Tmux Plugin Manager
cd $HOME
ln -s $HOME/.dotfiles/.tmux.conf
mkdir -p $HOME/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm
# Install nvm
cd $HOME
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Check if Ghostty is installed
if command -v ghostty > /dev/null 2>&1; then
echo "Ghostty is installed, linking config"
mkdir -p $HOME/.config/ghostty
ln -s $HOME/.dotfiles/ghostty/config $HOME/.config/ghostty/config
else
echo "Ghostty is not installed, skipping config"
fi
# Fonts
echo Look in the fonts directory to install the RobotoMonoNerd font.
echo Look in the iterm-themes directory to install the iTerm theme.