Created by
Yann de Champlain
| # .bashrc
# User specific aliases and functions
#alias wpinstall="curl -L -o 'wp.sh' https://gist.githubusercontent.com/bgallagh3r/2853221/raw/f3e2f2fa3048bbeb6d35799af068965bc5fd9b26/wp.sh && bash wp.sh"
alias installwp=". /root/installwp"
#alias wpinstall="curl -L -o 'wp.sh' https://gist.githubusercontent.com/emirpprime/37ef1f355ec5a7ecbb8f/raw/wp.sh && bash wp.sh"
alias ..="cd .."
alias ...="cd ../../"
alias ....="cd ../../../"
alias wp="wp --allow-root"
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls -Alh'
alias nano='nano -c'
alias cd..="cd .."
alias df="df -Tha --total"
alias du="du -ach | sort -h"
alias free="free -mt"
alias logs="cd /var/log/httpd"
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
alias chmodwp="find . -type f -exec chmod 644 {} \; | find . -type d -exec chmod 755 {} \; | chmodwpc"
alias chmodwpc="find . -name "wp-config.php" -exec chmod 600 {} \;"
alias chownwp="chown -R devftp:apache *"
alias chwp="chmodwp | chownwp"
alias www="cd /var/www"
alias php.ini="nano /etc/php.ini"
alias httpdr="systemctl restart httpd.service"
alias httpr="httpdr"
alias ealias="nano ~/.bashrc"
alias editalias="ealias"
alias sl="ls"
alias httpd.conf="nano /etc/httpd/conf/httpd.conf"
alias httpdc="httpd.conf"
alias httpdv="nano /etc/httpd/conf.d/vhosts.conf"
alias findn='find ./ -name '
function lazygit() {
git add .
git commit -a -m "$1"
git push
}
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
|