Created
February 28, 2017 00:23
-
-
Save hilam/25d99ce6fcdccfc856418186859260bd to your computer and use it in GitHub Desktop.
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
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias grep='grep --color=auto' | |
fi | |
# some more ls aliases | |
alias ll='ls -la -h' | |
# ideia para melhorar depois | |
alias usehd='df -h' | |
alias ~='cd ~' | |
# referencia https://gist.github.com/kistasi/24b9a7add34b12930d00 | |
# System update | |
alias update='sudo apt-get update -o Acquire::ForceIPv4=true' | |
alias upgrade='sudo apt-get upgrade -o Acquire::ForceIPv4=true' | |
alias dist-upgrade='sudo apt-get dist-upgrade -o Acquire::ForceIPv4=true' | |
alias updatef='sudo apt-get -f install -o Acquire::ForceIPv4=true' | |
# Package management | |
alias install='sudo apt-get install -o Acquire::ForceIPv4=true' | |
alias remove='sudo apt-get remove' | |
alias install-f='sudo apt-get install -f -o Acquire::ForceIPv4=true' | |
alias autoremove='sudo apt-get autoremove' | |
# Nginx | |
alias ngx-status='sudo service nginx status' | |
alias ngx-start='sudo service nginx start' | |
alias ngx-stop='sudo service nginx stop' | |
alias ngx-restart='sudo service nginx restart' | |
# PostgreSQL | |
alias pg-status='sudo service postgresql status' | |
alias pg-start='sudo service postgresql start' | |
alias pg-stop='sudo service postgresql stop' | |
alias pg-restart='sudo service postgresql restart' | |
# Other things | |
alias py="python3" | |
# Reboot | |
alias reboot='sudo reboot' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment