Skip to content

Instantly share code, notes, and snippets.

@chetcuti
Last active October 12, 2020 00:55
Show Gist options
  • Save chetcuti/ce84beac1f3a59e6b97ee9aed286cc34 to your computer and use it in GitHub Desktop.
Save chetcuti/ce84beac1f3a59e6b97ee9aed286cc34 to your computer and use it in GitHub Desktop.
Linux
********** ALL SHELLS **********
All Users
echo "" >> ~/.vimrc && echo "set nocompatible" >> ~/.vimrc
********** ZSH **********
All Users
sudo apt install git zsh && sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && echo "" >> ~/.zshrc
echo "alias vi='vim'" >> ~/.zshrc && echo "alias dir='ls -hlp --group-directories-first'" >> ~/.zshrc && echo "alias dira='ls -Ahlp --group-directories-first'" >> ~/.zshrc && head -n -3 ~/.oh-my-zsh/themes/steeef.zsh-theme > ~/.oh-my-zsh/themes/greg.zsh-theme && sed -i -- 's/robbyrussell/greg/g' ~/.zshrc
Standard Users
echo "PROMPT=$'" >> ~/.oh-my-zsh/themes/greg.zsh-theme && echo "%{%F{2}%}%n %F{250}@ %{%F{37}%}%m %F{250}in %{%F{178}%}%~" >> ~/.oh-my-zsh/themes/greg.zsh-theme && echo "%F{250}$ '" >> ~/.oh-my-zsh/themes/greg.zsh-theme
Root
echo "PROMPT=$'" >> ~/.oh-my-zsh/themes/greg.zsh-theme && echo "%{%F{160}%}%n %F{250}@ %{%F{37}%}%m %F{250}in %{%F{178}%}%~" >> ~/.oh-my-zsh/themes/greg.zsh-theme && echo "%F{250}# '" >> ~/.oh-my-zsh/themes/greg.zsh-theme
********** BASH **********
All Users
echo "" >> ~/.bashrc && echo "alias vi='vim'" >> ~/.bashrc && echo "alias dir='ls -hlp --group-directories-first'" >> ~/.bashrc && echo "alias dira='ls -Ahlp --group-directories-first'" >> ~/.bashrc &&
Standard Users
echo "PS1='\n\e[32m\u\e[m @ \e[36m\h \e[m@ \e[33m\w\e[m\n# '" >> ~/.bashrc
Root
echo "PS1='\n\e[41m\u\e[m @ \e[36m\h \e[m@ \e[33m\w\e[m\n# '" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment