Last active
October 27, 2025 00:54
-
-
Save cam8001/17c20a61d1737195192f0f57a28bf918 to your computer and use it in GitHub Desktop.
shell-setup-ubuntu.sh
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
| sudo apt-get -y install git zsh && echo zsh >> ~/.bashrc | |
| # Install oh-my-zsh | |
| sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
| # Install powelevel10k | |
| git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k && | |
| sed -i 's/robbyrussell/powerlevel10k\/powerlevel10k/' ~/.zshrc && | |
| . ~/.zshrc | |
| # Add git-number | |
| # Add zsh-autosuggestions | |
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
| sed -i 's#plugins=(#plugins=(zsh-autosuggestions #' ~/.zshrc | |
| # Add fast-syntax-highlighting | |
| git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting | |
| sed -i 's#plugins=(#plugins=(fast-syntax-highlighting #' ~/.zshrc | |
| mkdir ~/bin | |
| # Update the standard oh-my-zsh .zshrc to include the local path | |
| sed -i 's/# export PATH/export PATH/g' ~/.zshrc | |
| # Add fuzzy find, rg, tldr, and bat | |
| sudo apt-get install -y ripgrep bat fzf tealdeer | |
| tldr --update | |
| # Add git-number | |
| curl https://raw.githubusercontent.com/holygeek/git-number/master/git-id > ~/bin/git-id && chmod 0755 ~/bin/git-id | |
| curl https://raw.githubusercontent.com/holygeek/git-number/master/git-list > ~/bin/git-list && chmod 0755 ~/bin/git-list | |
| curl https://raw.githubusercontent.com/holygeek/git-number/master/git-number > ~/bin/git-number && chmod 0755 ~/bin/git-number | |
| echo "alias gn='git-number'" >> ~/.alias | |
| echo "alias l='ls -lashF'" >> ~/.alias | |
| echo 'alias l="ls -lash"' >> ~/.alias | |
| echo "source ~/.alias" >> ~/.zshrc | |
| echo "Now run zsh to get to your new shell :) chsh if you like it" |
Author
Author
AL2/Fedora/RPM version: https://gist.github.com/cam8001/92c0264c5938d90a44d399cf45817e3c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sh -c "$(curl -fsSL https://gist.githubusercontent.com/cam8001/17c20a61d1737195192f0f57a28bf918/raw/bb9da50416c35dd2a4b76f9caaf16b3fbe5e6667/shell-setup-ubuntu.sh)"