# 添加用户本地 bin 目录到 PATH # Global Environment Variable export PATH="$HOME/.local/bin:$PATH" # Hexo alias hexocgd="hexo clean && hexo generate && hexo deploy" alias hexo4000="hexo clean && hexo generate && hexo server" # Quickly Command alias rmd="rm -rf" #alias e="vim ~/.bashrc" alias e="nano ~/.bashrc" alias s="source ~/.bashrc" alias c="clear" alias la="ls -la" alias ll="ls -lah --color=auto" alias grep="grep --color=auto" alias catbashrc="cat ~/.bashrc" alias ipcheck="ip route get 8.8.8.8" alias testgoogle="curl -Iv https://www.google.com --connect-timeout 10" alias testyoutube="curl -Iv https://www.youtube.com --connect-timeout 10" alias restartdhcpcd="sudo systemctl restart dhcpcd" alias dockerrestart="sudo systemctl daemon-reload && sudo systemctl restart docker && sudo systemctl status docker" alias wificheck="sudo nmcli dev wifi list" alias editdhcpcdconfig="sudo nano /etc/dhcpcd.conf" alias rpishutdown="sudo shutdown -h now" alias rpireboot="sudo reboot" # Docker command alias dps='docker ps -a --format "table {{.Names}}\t{{.ID}}\t{{.Status}}\t{{.Image}}"' # Quickly come to file address alias ..="cd .." alias ...="cd ../.." alias ~="cd /home/roy" # Functions # Create a directory and immediately enter it mkcd() { mkdir -p "$1" && cd "$1" }