-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·36 lines (26 loc) · 1.33 KB
/
setup.sh
File metadata and controls
executable file
·36 lines (26 loc) · 1.33 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
#!/bin/bash
# Update the PATH to include the local bin directory
export PATH="$HOME/.local/bin:$PATH"
# Update package lists and install necessary packages
sudo apt update && sudo apt install -y npm curl python3-pip git neovim
# Configure npm to avoid permission issues
mkdir -p $HOME/.npm-global
npm config set prefix '~/.npm-global'
export PATH="$HOME/.npm-global/bin:$PATH"
echo "export PATH=$HOME/.npm-global/bin:$PATH" >> ~/.bashrc
# Install the pynvim package, required for neovim python support
pip3 install pynvim
# Install Rust and the ripgrep utility
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
cargo install ripgrep
# Non-interactive installation of LunarVim
export LV_BRANCH='release-1.4/neovim-0.9'
echo "yes" | bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.4/neovim-0.9/utils/installer/install.sh)
# Download and install Hack Nerd Font
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLO "https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack-Regular-Nerd-Font-Complete.ttf"
fc-cache -f -v # Refresh font cache
# Source the .bashrc to apply the path changes in the current session
source ~/.bashrc
echo "Installation and configuration completed successfully. You can start LunarVim by typing 'lvim'."