Skip to content

Instantly share code, notes, and snippets.

@vysogot
Last active June 8, 2021 09:27
Show Gist options
  • Save vysogot/5f30427e1f6a9cfe17320d62114faa47 to your computer and use it in GitHub Desktop.
Save vysogot/5f30427e1f6a9cfe17320d62114faa47 to your computer and use it in GitHub Desktop.
vim, zsh, and powerlevel setup script for ubuntu 20.04
# run with (update the link after editing this file on gist)
# bash <(curl -s https://gist.githubusercontent.com/vysogot/5f30427e1f6a9cfe17320d62114faa47/raw/2f03b48494657ffecec7fa26f0e221e82833973c/vim_zsh_install.sh)
sudo apt-get update
# linux packages (when not available via apt)
cd && curl -LO https://github.com/sharkdp/fd/releases/download/v8.2.1/fd_8.2.1_amd64.deb
sudo dpkg -i fd_8.2.1_amd64.deb
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/12.1.1/ripgrep_12.1.1_amd64.deb
sudo dpkg -i ripgrep_12.1.1_amd64.deb
curl -LO http://ftp.pl.debian.org/debian/pool/main/f/fzf/fzf_0.24.3-1+b5_amd64.deb
sudo dpkg -i fzf_0.24.3-1+b5_amd64.deb
rm ~/*.deb
# linux packages (when available via apt)
sudo apt-get install -y tldr zsh ctags
# vim
cd && mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# vim plugins
cd ~/.vim/bundle
git clone https://github.com/junegunn/fzf
git clone https://github.com/junegunn/fzf.vim
git clone https://github.com/vim-airline/vim-airline
git clone https://github.com/tpope/vim-fugitive
git clone https://github.com/jeetsukumaran/vim-indentwise
git clone https://github.com/tpope/vim-rails
# dotfiles
cd && git clone -b sandbox https://github.com/vysogot/dotfiles ~/.dotfiles
cd ~/.dotfiles && cp .gemrc .bash_profile .gitconfig .vimrc ~/
# zsh
cd ~/.dotfiles && cp .zshrc .p10k.zsh ~/ && git clone https://github.com/romkatv/powerlevel10k.git
# return to home folder and play
cd && zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment