-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
38 lines (26 loc) · 1.04 KB
/
install.sh
File metadata and controls
38 lines (26 loc) · 1.04 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
#!/bin/bash
# run with
# curl -fsSL https://raw.githubusercontent.com/TrystonMinsquero/dotfiles/main/install.sh -o install.sh && vim install.sh && sudo ./install.sh && rm install.sh
# Delete this once you've read the entire script
echo "Read through this script so you know what you're installing!"
exit 1
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "Installing packages..."
sudo apt install neovim fzf ripgrep stow lazygit git gh
echo "Installation complete..."
git config --global user.name "Tryston Minsquero"
git config --global user.email "trystonminsquero@gmail.com"
git config --global init.defaultBranch "main"
# Clone dotfiles repository
if [ ! -d "$HOME/dotfiles" ]; then
echo "Cloning dotfiles repository..."
git clone https://github.com/TrystonMinsquero/dotfiles.git $HOME/dotfiles
fi
# Navigate to dotfiles directory
cd $HOME/dotfiles || exit
# Stow dotfiles packages
echo "Stowing dotfiles..."
stow nvim zshrc
source ~/.zshrc
echo "Dotfiles setup complete!"