-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrust_cli_tools.sh
65 lines (57 loc) · 1.96 KB
/
rust_cli_tools.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
#install git manually
apt install curl
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup update
apt install build-essential -y
echo 'PATH="$PATH:~/.cargo/bin"' >> ~/.bashrc
cargo install eza
echo 'alias l="eza -l --git"' >> ~/.bashrc
echo 'alias la="eza -l -a --git"' >> ~/.bashrc
echo 'alias ll="eza -l -g -a --git"' >> ~/.bashrc
echo 'alias llt="eza -1 --tree --git-ignore"' >> ~/.bashrc
echo 'alias llr="eza -l --recurse --level=2"' >> ~/.bashrc
cargo install ripgrep
cargo install --locked bat
cargo install sd
cargo install fd-find
cargo install kondo
cargo install tokei
cargo install du-dust
cargo install --locked zellij
cargo install cargo-outdated # needs pck something to install. Add that to the config as well
cargo install cargo-readme
cargo install cargo-watch # deprecated therefore find something better. bacon maybe?
cargo install zoxide --locked
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
cargo install git-delta
echo "[core]
pager = delta
[interactive]
diffFilter = delta --color-only --features=interactive
[merge]
conflictstyle = diff3
[delta]
features = unobstrusive-line-numbers decorations
[delta \"interactive\"]
keep-plus-minus-markers = false
[delta \"decorations\"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = \"#067a00\"
hunk-header-style = file line-number syntax
side-by-side = true
[delta \"unobtrusive-line-numbers\"]
line-numbers = true
line-numbers-minus-style = \"#444444\"
line-numbers-zero-style = \"#444444\"
line-numbers-plus-style = \"#444444\"
line-numbers-left-format = \"{nm:>4}┊\"
line-numbers-right-format = \"{np:>4}│\"
line-numbers-left-style = blue
line-numbers-right-style = blue
" >> ~/.gitconfig