Last active
October 16, 2024 12:07
-
-
Save jmscarnatto/ad7500839c90438685a48a485107351e to your computer and use it in GitHub Desktop.
script for quick installation of 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
# For Gnome terminal | |
# add or edit ~/.config/gtk-3.0/gtk.css | |
VteTerminal, | |
TerminalScreen, | |
vte-terminal { | |
padding: 10px 10px 30px 10px; | |
-VteTerminal-inner-border: 10px 10px 30px 10px; | |
} |
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
#!/usr/bin/env bash | |
# HOW TO USE | |
# bash <(curl -sL https://gist.githubusercontent.com/jmscarnatto/ad7500839c90438685a48a485107351e/raw/a05a2efd44c72065fe53d7e0e432eaedd0383fbd/install-zsh-on-ubuntu.sh) | |
sudo apt-get update | |
sudo apt-get install zsh -y | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting --depth 1 | |
git clone https://github.com/zsh-users/zsh-autosuggestions $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions --depth 1 | |
sed -i 's/(git)/(git zsh-autosuggestions zsh-syntax-highlighting)/' $HOME/.zshrc | |
echo "alias gil=\"git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit\"" >> $HOME/.zshrc | |
echo "alias gis=\"git status\"" >> $HOME/.zshrc | |
echo "alias gck=\"git checkout\"" >> $HOME/.zshrc | |
echo "alias gib=\"git branch\"" >> $HOME/.zshrc | |
echo "alias gip=\"git pull\"" >> $HOME/.zshrc | |
echo "alias gita=\"git commit --amend --no-edit\"" >> $HOME/.zshrc | |
echo "alias gir=\"git reflog --date=local\"" >> $HOME/.zshrc | |
echo "alias dops=\"docker ps\"" >> $HOME/.zshrc | |
echo "alias doim=\"docker images\"" >> $HOME/.zshrc | |
echo "alias doco=\"docker-compose\"" >> $HOME/.zshrc | |
echo "alias ports=\"lsof -i -P -n | grep LISTEN\"" >> $HOME/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment