Last active
October 12, 2020 00:55
-
-
Save gregdotca/ce84beac1f3a59e6b97ee9aed286cc34 to your computer and use it in GitHub Desktop.
Linux
This file contains 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
********** 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