-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_env.sh
65 lines (51 loc) · 1.68 KB
/
setup_env.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
#!/usr/bin/env bash
dir=$PWD
# install oh my zsh and activate it
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
source ~/.zshrc
# add zsh-autosuggestions, syntax highlighting
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
# add autojump
cd $(dir)
git clone git://github.com/wting/autojump.git
cd autojump
./install.py
# add fzf-zsh plugin and powerlevel10k
git clone --depth 1 https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# copy over .zshrc and reload it, it will configure powerlevel10k
cd $(dir)
cp ./.zshrc ~
omz reload
# start tmux session, install tpm and add/reload tmux configuration
tmux new
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
cd $(dir)
cp ./.tmux.conf ~
tmux source ~/.tmux.conf
# install cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# install helix
cd $(dir)
git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term --locked
cp config.toml ~/.config/helix/config.toml
# install delta and config git
cargo install git-delta
cp ./.gitconfig ~
# install eza
cargo install eza
# install ripgrep
cargo install ripgrep
# install bat
cargo install --locked bat
# install fdfind
cargo install fd-find
wget https://sqlite.org/2024/sqlite-autoconf-3450300.tar.gz
cd sqlite-autoconf-3450300/
./configure --prefix=/usr/local
sudo make && sudo make install