Skip to content

Instantly share code, notes, and snippets.

@456789123
Created October 15, 2015 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 456789123/8dcd3f7c6c77fa175a88 to your computer and use it in GitHub Desktop.
Save 456789123/8dcd3f7c6c77fa175a88 to your computer and use it in GitHub Desktop.
Configuraçã e Alias
# .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