-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
54 lines (40 loc) · 1.93 KB
/
Copy pathinstall.sh
File metadata and controls
54 lines (40 loc) · 1.93 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
#!/bin/bash
# Config files
git clone https://github.com/jroopam/backup.git
ln -s $HOME/backup/.vimrc ~/.vimrc
ln -s $HOME/backup/.vim ~/.vim
ln -s $HOME/backup/nvim ~/.config/nvim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
# If ./nvim.appimage fails try this
# ./nvim.appimage --appimage-extract
# ./squashfs-root/AppRun --version
# sudo mv squashfs-root /
# sudo ln -s /squashfs-root/AppRun /usr/local/bin/nvim
# nvim
# Moving to ~/.local/bin
mv nvim.appimage ~/.local/bin/
sudo ln -s ~/.local/bin/nvim.appimage /usr/bin/nvim
# export CUSTOM_NVIM_PATH=/usr/local/bin/nvim
export CUSTOM_NVIM_PATH=~/.local/bin/nvim
# Set the above with the correct path, then run the rest of the commands:
set -u
# sudo update-alternatives --install /usr/bin/ex ex "${CUSTOM_NVIM_PATH}" 110
# sudo update-alternatives --install /usr/bin/vi vi "${CUSTOM_NVIM_PATH}" 110
sudo update-alternatives --install /usr/bin/view view "${CUSTOM_NVIM_PATH}" 110
#sudo update-alternatives --install /usr/bin/vim vim "${CUSTOM_NVIM_PATH}" 110
sudo update-alternatives --install /usr/bin/vimdiff vimdiff "${CUSTOM_NVIM_PATH}" 110
ln -s ~/.vim/* ~/.config/nvim
# mkdir -p ~/.vim/pack/plugins/start && git clone https://github.com/mg979/vim-visual-multi ~/.vim/pack/plugins/start/vim-visual-multi
# Github copilot
git clone https://github.com/github/copilot.vim ~/.config/nvim/pack/github/start/copilot.vim
echo "yanking or pasting might not work, install the necessary things!"
#---------------------------------------------------------
# Startup scripts
ln -s ~/backup/services/* ~/.config/systemd/user/ # start and enable the services after this
ln -s ~/backup/kitty.conf ~/.config/kitty/kitty.conf
ln -s ~/backup/.wezterm.lua ~/.wezterm.lua
ln -s ~/backup/config ~/.config/ghostty/config
# Useful Links:
# Make blluetooth devices connect faster: https://superuser.com/questions/1558381/ubuntu-bluetooth-slow-to-connect