Last active
December 9, 2022 08:40
-
-
Save hkboujrida/71033f357372981ac8de0d5e2930d771 to your computer and use it in GitHub Desktop.
install zsh on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "updating system..." | |
sudo apt update && sudo apt upgrade -yy | |
echo "installing curl git zsh fonts-powerline tmux xclip..." | |
sudo apt install curl git zsh fonts-powerline tmux xclip -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 | |
sed -i 's/_THEME=.*/_THEME=\"powerlevel10k\/powerlevel10k\"/g' ~/.zshrc | |
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 | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions | |
sed -i 's/plugins=.*/plugins=(emoji git web-search sudo history docker tmux terraform kubectl dotnet zsh-syntax-highlighting zsh-autosuggestions zsh-completions)/g' ~/.zshrc | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
~/.fzf/install | |
tput setaf 1; echo "IMPORTANT :" | |
echo 'Get Firacode nerd font at https://www.nerdfonts.com' | |
echo 'Get Firacode nerd font at https://www.nerdfonts.com' | |
echo 'For vscode add this line into settings.json : "terminal.integrated.fontFamily": "FiraCode Nerd Font Mono",' | |
echo 'Execute command: p10k configure' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment