Skip to content

Instantly share code, notes, and snippets.

@GrayXu
Last active May 18, 2022 10:31
Show Gist options
  • Save GrayXu/6bfe73de93e7f2431bbf545f3522c200 to your computer and use it in GitHub Desktop.
Save GrayXu/6bfe73de93e7f2431bbf545f3522c200 to your computer and use it in GitHub Desktop.
init.sh to init a ubuntu machine for personal usage
# RUN THIS SCRIPT
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/GrayXu/6bfe73de93e7f2431bbf545f3522c200/raw/init.sh)"
echo "config zsh..."
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
wget https://gist.githubusercontent.com/GrayXu/407ec274b4783f8381a5b4daa2b31025/raw/.zshrc -O ~/.zshrc
echo "---zsh is ok---"
echo "config spacevim..."
curl -sLf https://spacevim.org/install.sh | bash
mkdir ~/.SpaceVim.d
wget https://gist.githubusercontent.com/GrayXu/19d74689d0a5370f6e3ba5e36d91b4f5/raw/init.toml -O ~/.SpaceVim.d/init.toml
echo "---spacevim is ok---"
echo "config tmux..."
sudo apt install tmux -y
wget https://gist.github.com/GrayXu/851fa9b7db6733a2fb8ebc9569c26d35/raw/366ccbb693e4c7fd7b8cd2d868dcc8292e92a642/.tmux.conf -O ~/.tmux.conf
echo "---tmux is ok---"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment