refined spacevim and friends installation
This commit is contained in:
parent
d16d20bf3a
commit
2118cb7760
1 changed files with 4 additions and 4 deletions
8
init.sh
8
init.sh
|
@ -78,13 +78,13 @@ spacevim () {
|
||||||
echo "Installing Spacevim!"
|
echo "Installing Spacevim!"
|
||||||
[ -d $HOME/.vim ] && mv "$HOME/.vim" "$HOME/vim_bk"
|
[ -d $HOME/.vim ] && mv "$HOME/.vim" "$HOME/vim_bk"
|
||||||
[ -f $HOME/.vimrc ] && mv "$HOME/.vimrc" "$HOME/vimrc_bk"
|
[ -f $HOME/.vimrc ] && mv "$HOME/.vimrc" "$HOME/vimrc_bk"
|
||||||
curl -sLf https://spacevim.org/install.sh | bash
|
curl -sLf https://spacevim.org/install.sh | bash -s -- --install vim
|
||||||
echo "Install Neovim"
|
echo "Install Neovim"
|
||||||
mkdir -v ~/bin
|
mkdir -v ~/bin
|
||||||
trash ~/bin/nvim ~/.config/nvim
|
trash ~/bin/nvim
|
||||||
curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -o ~/bin/nvim
|
curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -o ~/bin/nvim
|
||||||
chmod u+x ~/bin/nvim
|
chmod u+x ~/bin/nvim
|
||||||
mv ~/.nvim ~/.nvim_bak #removes spacevim's symlink
|
trash ~/.local/share/nvim #removes spacevim's symlink
|
||||||
echo "Install NvChad"
|
echo "Install NvChad"
|
||||||
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
|
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
|
||||||
echo "Install Lunar Vim"
|
echo "Install Lunar Vim"
|
||||||
|
@ -113,7 +113,7 @@ fi
|
||||||
|
|
||||||
#script to link to stevserver over LAN. Note: the username in the filename and file have to match yours.
|
#script to link to stevserver over LAN. Note: the username in the filename and file have to match yours.
|
||||||
echo -n "Will you need to connect to stev-server?"; read -r answer
|
echo -n "Will you need to connect to stev-server?"; read -r answer
|
||||||
if [[ $answer == [Yy] ]]
|
if [[ $answer == [Yy] ]]; then
|
||||||
sudo cp scripts/systemd/home-stev-server.mount /etc/systemd/system
|
sudo cp scripts/systemd/home-stev-server.mount /etc/systemd/system
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue