Added ruby and perl
This commit is contained in:
parent
c0585ab8ec
commit
148cd661d8
28
setup.sh
28
setup.sh
@ -6,15 +6,16 @@ sudo apt -y install ninja-build gettext cmake unzip curl python3 python3-pip pyt
|
|||||||
build-essential libssl-dev libffi-dev python3-dev file tmux && \
|
build-essential libssl-dev libffi-dev python3-dev file tmux && \
|
||||||
|
|
||||||
# Install neovim
|
# Install neovim
|
||||||
if [ -d ~/neovim ]; then rm -rf ~/neovim; fi
|
if [ -d ~/neovim ]; then rm -rf ~/neovim; fi && \
|
||||||
cd ~ && \
|
cd ~ && \
|
||||||
git clone https://github.com/neovim/neovim && \
|
git clone https://github.com/neovim/neovim && \
|
||||||
cd neovim && git checkout stable && \
|
cd neovim && git checkout stable && \
|
||||||
make CMAKE_BUILD_TYPE=RelWithDebInfo && \
|
make CMAKE_BUILD_TYPE=RelWithDebInfo && \
|
||||||
cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb && \
|
cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb && \
|
||||||
if [ -d ~/neovim ]; then rm -rf ~/neovim; fi
|
if [ -d ~/neovim ]; then rm -rf ~/neovim; fi && \
|
||||||
|
|
||||||
# Install tree sitter cli
|
# Install tree sitter cli
|
||||||
|
cd ~ && \
|
||||||
sudo apt install -y cargo && \
|
sudo apt install -y cargo && \
|
||||||
cargo install tree-sitter-cli && \
|
cargo install tree-sitter-cli && \
|
||||||
|
|
||||||
@ -22,6 +23,7 @@ cargo install tree-sitter-cli && \
|
|||||||
sudo apt install -y ripgrep && \
|
sudo apt install -y ripgrep && \
|
||||||
|
|
||||||
# Install lazygit
|
# Install lazygit
|
||||||
|
cd ~ && \
|
||||||
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') && \
|
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/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
|
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
|
||||||
tar xf lazygit.tar.gz lazygit && \
|
tar xf lazygit.tar.gz lazygit && \
|
||||||
@ -32,11 +34,22 @@ sudo add-apt-repository -y ppa:daniel-milde/gdu && \
|
|||||||
sudo apt update && \
|
sudo apt update && \
|
||||||
sudo apt install -y gdu && \
|
sudo apt install -y gdu && \
|
||||||
|
|
||||||
|
# Install ruby
|
||||||
|
sudo apt install -y ruby ruby-dev && \
|
||||||
|
sudo gem install neovim && \
|
||||||
|
|
||||||
|
# Install perl
|
||||||
|
sudo apt install -y perl make && \
|
||||||
|
curl -L https://cpanmin.us | sudo perl - App::cpanminus && \
|
||||||
|
sudo cpanm -n Neovim::Ext && \
|
||||||
|
|
||||||
# Install bottom
|
# Install bottom
|
||||||
|
cd ~ && \
|
||||||
curl -LO https://github.com/ClementTsang/bottom/releases/download/0.9.1/bottom_0.9.1_amd64.deb && \
|
curl -LO https://github.com/ClementTsang/bottom/releases/download/0.9.1/bottom_0.9.1_amd64.deb && \
|
||||||
sudo dpkg -i bottom_0.9.1_amd64.deb && \
|
sudo dpkg -i bottom_0.9.1_amd64.deb && \
|
||||||
|
|
||||||
# Install node
|
# Install node
|
||||||
|
cd ~ && \
|
||||||
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
|
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
|
||||||
sudo apt install -y nodejs && \
|
sudo apt install -y nodejs && \
|
||||||
|
|
||||||
@ -55,16 +68,11 @@ pip3 install pynvim && \
|
|||||||
sudo npm install -g neovim && \
|
sudo npm install -g neovim && \
|
||||||
|
|
||||||
# Add git config
|
# Add git config
|
||||||
if [ ! -f ~/.gitconfig ];
|
if [ ! -f ~/.gitconfig ]; then cp ~/code_server/gitconfig ~/.gitconfig; fi && \
|
||||||
then
|
|
||||||
cp ~/code_server/gitconfig ~/.gitconfig
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add tmux config
|
# Add tmux config
|
||||||
if [ ! -f ~/.tmux.conf ];
|
if [ ! -f ~/.tmux.conf ]; then cp ~/code_server/tmux.conf ~/.tmux.conf; fi && \
|
||||||
cp ~/code_server/tmux.conf ~/.tmux.conf
|
|
||||||
then
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add path
|
# Add path
|
||||||
echo "export PATH=\$PATH:~/.local/bin:~/.cargo/bin" >> ~/.bashrc
|
echo "export PATH=\$PATH:~/.local/bin:~/.cargo/bin" >> ~/.bashrc
|
||||||
|
echo "eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)" >> ~/.bashrc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user