Repository navigation
Expand file tree
/
Copy pathdev_setup.sh
More file actions
55 lines (43 loc) · 1.71 KB
/
Copy pathdev_setup.sh
File metadata and controls
55 lines (43 loc) · 1.71 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
# (Optional) Install bash-it: https://github.com/Bash-it/bash-it
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh # NOTE: This overrides .bashrc by default; select Yes when it asks if you want to append instead
sed -i 's/export BASH_IT_THEME=.*/export BASH_IT_THEME='\''metal'\''/' ~/.bashrc
source ~/.bashrc
# https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# https://github.com/junegunn/fzf
# https://github.com/junegunn/fzf.vim
# requires rg or ag
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
source ~/.bashrc
# https://github.com/BurntSushi/ripgrep
sudo apt-get install ripgrep
# Tmux plugin manager (tpm): https://github.com/tmux-plugins/tpm
git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm
# Install Claude Code: https://docs.anthropic.com/en/docs/claude-code
curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
# Copy dotfiles to home directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
while true; do
read -p "Copy dotfiles (.vimrc, .tmux.conf, .gitconfig) to ~? [y/n] " response
echo
[[ "$response" =~ ^[YyNn]$ ]] && break
echo "Please enter y or n"
done
if [[ "$response" =~ ^[Yy]$ ]]; then
for file in .vimrc .tmux.conf .gitconfig; do
if [ -f "$SCRIPT_DIR/$file" ]; then
if [ -f ~/"$file" ]; then
cp ~/"$file" ~/"$file.bak"
echo "Backed up ~/$file to ~/$file.bak"
fi
cp "$SCRIPT_DIR/$file" ~/"$file"
echo "Copied $file to ~"
fi
done
else
echo "Skipping dotfiles"
fi