Before installation, please backup your existing dotfiles first, eg .vimrc, .zshrc, .gitconfig and so on, and install pre-required package or software.
via wget:
bash -c "$(wget https://raw.githubusercontent.com/cavalleria/dotfiles/main/install.sh -O -)"
via curl:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/cavalleria/dotfiles/main/install.sh)"
- Install Zsh
sudo apt-get install -y zsh
- Change default shell
sudo chsh -s /bin/zsh
or
sudo usermod -s /usr/bin/zsh $(whoami)
- Install Git
sudo apt-get install -y git
- Install Vim 8.2
sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update
sudo apt-get install vim
- Install gcc/g++ 8
sudo apt-get install gcc-8
sudo apt-get install g++-8
cd /usr/bin
sudo ln -sf gcc-8 gcc
sudo ln -sf g++-8 g++
- Install the newest CMake in Ubuntu 18.04
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install cmake
- Install ripgrep
sudo apt-get install ripgrep
- Install node
sudo apt update
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt policy nodejs
sudo apt install nodejs[=21.6.2-1nodesource1]
- vim-nox
如果是Debian 11系统, 安装vim-nox, sudo apt-get install vim-nox
- cheat: create and view interactive cheatsheets on the command-line
To install it, download the executable from the releases page and place it on your PATH
.