-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
65 lines (47 loc) · 1.97 KB
/
install.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
#!/bin/bash
DOTFILES=`pwd`
if ! type "dconf" > /dev/null; then
sudo apt update -y
sudo apt install -y dconf-cli dconf-editor
export DISPLAY=:0.0
sudo apt install -y dbus-x11
dbus-launch
export $(dbus-launch)
fi
if [ ! -d `~/.config` ]; then
mkdir ~/.config
fi
curl -sS https://starship.rs/install.sh | sudo sh
touch ~/.config/starship.toml
dconf load /org/gnome/terminal/ < $DOTFILES/bash/gnome-terminal.properties
bash <(curl https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh)
sudo apt install -y fzf
sudo apt install -y bat
sudo apt install -y fd-find
sudo apt install -y tldr
sudo apt install -y zoxide
atuin register -u hedic -e [email protected]
atuin import auto
atuin sync
cat $DOTFILES/git/.gitconfig > ~/.gitconfig
ln -sf $DOTFILES/git/.gitconfig ~/.gitconfig
cat $DOTFILES/bash/.bashrc > ~/.bashrc
ln -sf $DOTFILES/bash/.bashrc ~/.bashrc
cat $DOTFILES/bash/starship.toml > ~/.config/starship.toml
ln -sf $DOTFILES/bash/starship.toml ~/.config/starship.toml
if ! type "code" > /dev/null; then
sudo apt install -y software-properties-common apt-transport-https wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update -y
sudo apt install -y code
fi
cat $DOTFILES/vscode/settings.json > ~/.config/Code/User/settings.json
ln -sf $DOTFILES/vscode/settings.json ~/.config/Code/User/settings.json
cat $DOTFILES/vscode/keybindings.json > ~/.config/Code/User/keybindings.json
ln -sf $DOTFILES/vscode/keybindings.json ~/.config/Code/User/keybindings.json
while IFS="" read -r extension || [ -n "$extension" ]
do
code --install-extension $extension
done < $DOTFILES/vscode/extensions.md