57 lines
1.6 KiB
Bash
57 lines
1.6 KiB
Bash
#!/bin/bash
|
|
|
|
#region Shortcut CUSTOM
|
|
alias cmd='bash /etc/profile.d/info/cmd'
|
|
alias conf='bash /etc/profile.d/info/conf'
|
|
alias colors='bash /etc/profile.d/info/colors'
|
|
alias welcome='bash /etc/profile.d/777-welcome.sh'
|
|
#endregion
|
|
#region Shortcut BASICS
|
|
alias cls='clear'
|
|
alias ll='ls -lah'
|
|
alias lh='ls -lisah'
|
|
alias ..='cd ..'
|
|
alias ...='cd ../..'
|
|
alias home='welcome && cd ~'
|
|
alias ffs='find / \( -path /proc -o -path /sys -o -path /dev -o -path /run \) -prune -o -type f -iname'
|
|
alias ff='sudo find / \( -path /proc -o -path /sys -o -path /dev -o -path /run \) -prune -o -type f -name'
|
|
#endregion
|
|
#region Shortcut APT
|
|
alias update='sudo apt update && sudo apt upgrade -y'
|
|
alias install='sudo apt install'
|
|
alias remove='sudo apt remove'
|
|
#endregion
|
|
#region Shortcut DEBUG
|
|
alias func='declare -F'
|
|
alias grep='grep --color=auto'
|
|
alias egrep='egrep --color=auto'
|
|
alias fgrep='fgrep --color=auto'
|
|
alias ports='netstat -tulanp'
|
|
alias psg='ps aux | grep -i'
|
|
#alias top='htop'
|
|
alias cpu='top -o %CPU'
|
|
alias mem='top -o %MEM'
|
|
alias hdd='ncdu'
|
|
#endregion
|
|
#region Shortcut NETWORK
|
|
alias myip='curl ifconfig.me'
|
|
alias localip='ip a'
|
|
#endregion
|
|
#region Shortcut APACHE
|
|
alias wra='systemctl restart apache2'
|
|
alias werr='tail -fn 100 /var/log/apache2/error.log'
|
|
alias wlog='tail -fn 100 /var/log/apache2/access.log /var/log/apache2/error.log'
|
|
#endregion
|
|
|
|
|
|
#region Shortcut GIT
|
|
# LOAD GIT FUNCS
|
|
if [[ -z "${WELCOME_SCRIPT_PATH}" ]]; then
|
|
WELCOME_SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &>/dev/null && pwd)"
|
|
fi
|
|
. "${WELCOME_SCRIPT_PATH}/func/git.sh"
|
|
|
|
alias gsync='git-reset'
|
|
#endregion
|
|
|