Skip to content

Instantly share code, notes, and snippets.

@abhagsain
Last active April 21, 2024 16:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abhagsain/00d80a567ea84bfafe15e8c237663a58 to your computer and use it in GitHub Desktop.
Save abhagsain/00d80a567ea84bfafe15e8c237663a58 to your computer and use it in GitHub Desktop.
Install OhMySh, PowerLeve10K, Autosuggestion and Syntax highlighting On Ubuntu
# set relative line number in vim
set number
set rnu
  • Running the whole script won't work right away. Somtime it might complain about alreday existing folder
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k; echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# add this line in ~/.zshrc file
# plugins=(git zsh-autosuggestions zsh-syntax-highlighting) in the
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt install docker.io -y
systemctl start docker
systemctl enable docker
docker --version
# Install docker compose
sudo curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment