-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·97 lines (74 loc) · 3 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·97 lines (74 loc) · 3 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
sudo apt-add-repository ppa:fish-shell/release-3
echo Updating repo
sudo apt-get update -y
sudo apt-get upgrade -y
# Install base apps
echo Installing base apps
sudo apt-get -y install neovim htop keychain fzf vim rofi picom lxappearance vim thunar terminator dunst neofetch vifm conky-all rsync xclip fd-find ripgrep eza scrot tmux bat zoxide fish golang-go wget fonts-noto-color-emoji
# Install Moonlight
sudo snap install moonlight
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | less
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Install fisher - fish shell plugin manager
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
# Install batcat
mkdir -p ~/.local/bin
cp /usr/bin/batcat ~/.local/bin/bat
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install starship
curl -sS https://starship.rs/install.sh | sh
# Installing .tmux
rm -rf ~/.config/tmux/tmux.conf "${HOME}/.config/tmux/oh-my-tmux"
mkdir -p "${HOME}/.config/tmux"
git clone https://github.com/gpakosz/.tmux.git "${HOME}/.config/tmux/oh-my-tmux"
ln -s "${HOME}/.config/tmux/oh-my-tmux/.tmux.conf" ~/.config/tmux/tmux.conf
# Create ~/vault for obsidian.nvim
mkdir -p ~/vault/{personal,work}
# Install LAZYGIT
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit -D -t /usr/local/bin/
echo "Creating Symlinks"
rm -rf ~/.vimrc
rm -rf ~/.bashrc
rm -rf ~/.xinitrc
rm -rf ~/.tmux.conf
rm -rf ~/.config/tmux/tmux.conf.local
rm -rf ~/.config/dunst
rm -rf ~/scripts
rm -rf ~/.config/qtile
rm -rf ~/.config/rofi
rm -rf ~/.config/nvim
rm -rf ~/.config/terminator
rm -rf ~/.config/alacritty
rm -rf ~/.config/fish
rm -rf ~/wallpapers
dir=$(pwd)
cp -r ${dir} ~/
ln -s "${HOME}/dotfiles/general/vimrc" ~/.vimrc
ln -s "${HOME}/dotfiles/general/bashrc" ~/.bashrc
ln -s "${HOME}/dotfiles/general/xinitrc" ~/.xinitrc
ln -s "${HOME}/dotfiles/tmux/tmux.conf" ~/.config/tmux/tmux.conf.local
ln -s "${HOME}/dotfiles/dunst" ~/.config/dunst
ln -s "${HOME}/dotfiles/scripts" ~/scripts
ln -s "${HOME}/dotfiles/qtile" ~/.config/qtile
ln -s "${HOME}/dotfiles/rofi" ~/.config/rofi
ln -s "${HOME}/dotfiles/nvim" ~/.config/nvim
ln -s "${HOME}/dotfiles/terminator" ~/.config/terminator
ln -s "${HOME}/dotfiles/alacritty" ~/.config/alacritty
ln -s "${HOME}/dotfiles/wallpapers" ~/wallpapers
ln -s "${HOME}/dotfiles/fish" ~/.config/fish
ln -s "${HOME}/dotfiles/picom" ~/.config/picom
source ~/.bashrc
# Install Fabric directly from the repo
go install github.com/danielmiessler/fabric@latest
# Set fish shell as default shell
# sudo chsh -s $(which fish)
echo "Installation Completed"
echo "Don't forget to run 'fabric --setup' to setup fabric."
fish