-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
74 lines (56 loc) · 2.55 KB
/
install.sh
File metadata and controls
74 lines (56 loc) · 2.55 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
#!/usr/bin/env bash
[[ -f /usr/bin/msys-2.0.dll ]] || [[ -f /bin/cygwin1.dll ]] && exit
mkdir -p ~/.ssh
curl -fsSL https://github.com/rashil2000.keys >> ~/.ssh/authorized_keys
if grep -qi ubuntu /etc/os-release; then
sudo apt update
sudo apt install git make gawk fzf ripgrep fd-find bat tmux apt-transport-https software-properties-common
if ! command -v pwsh &> /dev/null; then
curl -fsSL https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -o packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt update
sudo apt install powershell
# Once this is done, run `Install-Module CompletionPredictor, Terminal-Icons, npm-completion, posh-cargo, posh-git, PsFzf` in pwsh
fi
if ! command -v wezterm &> /dev/null; then
curl -fsSL https://apt.fury.io/wez/gpg.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg
echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | sudo tee /etc/apt/sources.list.d/wezterm.list
sudo chmod 644 /usr/share/keyrings/wezterm-fury.gpg
sudo apt update
sudo apt install wezterm-nightly
fi
fi
DOT_DIR=~/GitHub/rashil2000/dotfiles
mkdir -p $DOT_DIR
git clone https://github.com/rashil2000/dotfiles $DOT_DIR
mkdir -p ~/.config
mkdir -p ~/.local/share/bash
ln -sf $DOT_DIR/.inputrc ~/
ln -sf $DOT_DIR/bash/.bashrc ~/
\cp -f $DOT_DIR/bash/.profile ~/
git clone --recursive https://github.com/akinomyoga/ble.sh ~/GitHub/akinomyoga/ble.sh
pushd ~/GitHub/akinomyoga/ble.sh
make
popd
git clone https://github.com/junegunn/fzf ~/GitHub/junegunn/fzf
mkdir -p ~/.local/bin
ln -sf $DOT_DIR/starship/starship.toml ~/.config/
curl -fsSL https://starship.rs/install.sh | sh -s -- -b ~/.local/bin -y
~/.local/bin/starship init bash --print-full-init > ~/.local/share/starship.bash
~/.local/bin/starship init powershell --print-full-init > ~/.local/share/starship.ps1
mkdir -p ~/.config/git
ln -sf $DOT_DIR/git/config ~/.config/git/
mkdir -p ~/.config/tmux
ln -sf $DOT_DIR/tmux/tmux.conf ~/.config/tmux/
mkdir -p ~/.config/powershell
ln -sf $DOT_DIR/pwsh/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/
\cp -f $DOT_DIR/pwsh/profile.ps1 ~/.config/powershell/
ln -sf $DOT_DIR/yazi ~/.config/yazi
ln -sf $DOT_DIR/bat ~/.config/bat
mkdir -p ~/.config/bottom
ln -sf $DOT_DIR/bottom/bottom.toml ~/.config/bottom/
mkdir -p ~/.config/spotify-player
ln -sf $DOT_DIR/spotify-player/app.toml ~/.config/spotify-player
ln -sf $DOT_DIR/wezterm ~/.config/wezterm
ln -sf $DOT_DIR/nvim ~/.config/nvim