04
09月
2023
docker命令-简写docker-compose-plugin.sh
#!/bin/sh # =====================加入自定 命令 alias================== sudo mv ~/.bashrc ~/.bashrc.bak cat << EOF | tee ~/.bashrc # .bashrc # Simon自定义命令别名 alias ll='ls -al' alias ns='netstat -tlunp' alias cls='clear' alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias dp='docker ps' alias dpa='docker ps -a' alias di='docker images' alias dr='docker rm -f' alias dri='docker rmi -f' alias ds='docker stop' alias dp='docker ps' alias dpa='docker ps -a' alias dl='docker logs' alias dc='docker compose' alias dcl='docker compose logs' alias dci='docker compose images' alias dcr='docker compose restart' alias dcp='docker compose ps' alias dcu='docker compose up' alias dcud='docker compose up -d' alias dcd='docker compose down' alias dce='docker compose exec' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi EOF source ~/.bashrc