Created
October 15, 2015 00:20
-
-
Save 456789123/8dcd3f7c6c77fa175a88 to your computer and use it in GitHub Desktop.
Configuraçã e Alias
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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= | |
# User specific aliases and functions | |
alias ls="ls --color=auto" | |
alias dbstart='sudo systemctl start postgresql.service && systemctl enable postgresql.service' | |
alias dbstop='sudo systemctl stop postgresql.service && systemctl enable postgresql.service8' | |
alias tarr='tar -vzxf' | |
alias tamanho='du -hs $dirs' | |
alias engrena='glxgears' | |
alias peixe='asciiquarium' | |
alias pingo='httping -K' | |
alias rota='traceroute' | |
alias busca='sudo yum search' | |
alias df='df -h' | |
alias busca_ip='arp -a' | |
alias iniciar='apachectl start' | |
alias parar='apachectl stop' | |
######################## DEIXANDO O TERMINAL COLORIDO ########################### | |
if [[ ${EUID} == 0 ]] ; then | |
# Quando o usuário é ROOT: | |
PS1='\[\033[00;32m\]\t \[\033[32m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
else | |
# Quando o usuário é normal: | |
PS1='\[\033[00;33m\]\t \[\033[31m\]\u@\h\[\033[00m\] \w \$' | |
fi | |
########################## DEIXANDO O MANUAL COLORIDO ########################### | |
export MANPAGER="/usr/bin/most -s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment