Last active
March 20, 2025 14:26
-
-
Save mateusreis/31c0d25bd711175129b6f14e2c383005 to your computer and use it in GitHub Desktop.
.bashrc alias 2025
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
# some more ls aliases | |
alias sou='source .bashrc' | |
alias profile='sudo nano .bashrc' | |
alias gitk='gitk 2>/dev/null' | |
alias gk='gitk --all 2> /dev/null &' | |
alias la='ls -lha' | |
alias ls='ls -lha' | |
alias ll='ls -lhF' | |
alias l='ls -lAhF' | |
alias dir='ls -lha' | |
alias c="clear" | |
alias e="exit" | |
alias ..="cd .." | |
alias cd..="cd .." | |
alias home='cd ~' | |
alias ssh="ssh -X" | |
alias prof='source ~/.bashrc' | |
alias profile='sudo gedit ~/.bashrc' | |
alias fstab='vim /etc/fstab' | |
alias sites='cd /var/www/html' | |
alias apache="sudo systemctl restart apache2" | |
alias maria="sudo apachectl stop && mysql.server stop" | |
alias phpmy="sudo apachectl stop && mysql.server stop" | |
alias stt="systemctl status apache2 && systemctl status mariadb" | |
# alternative to pbcopy | |
# sudo apt-get install -y xclip | |
alias pbcopy="xclip -sel clip" | |
alias cpkey="pbcopy < ~/.ssh/id_rsa.pub" | |
# | |
# wp auto complete | |
# criador de sites .sh | |
# | |
# 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 -lha --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment