原始命令
ls -ltrh
docker ps -a
docker image list
docker stats
df -h\n
cd /usr/local && cd src && ls -trhl\n
de(){
if [[ ! -n "$a" ]]; then
arg1=$1
else
arg1=$a
fi
arg2=${2:-bash}
docker exec -it $arg1 $arg2 $3 $4 $5 $6 $7 $8
}
dl(){
if [[ ! -n "$a" ]]; then
arg1=$1
else
arg1=$a
fi
arg2=${2:-300}
docker logs -fn $arg2 $arg1 $3 $4 $5 $6 $7 $8
}
ds(){
docker stats -a
}
xshell配置
[Info]
Version=6.0
Count=9
[QuickButton]
Button_5=CMD
Button_4=CMD
Button_3=CMD
Button_2=CMD
Button_1=CMD
Button_0=CMD
Button_8=CMD
Button_7=CMD
Button_6=CMD
windterm配置
[
{
"quick.group" : "快速",
"quick.icon" : "session::star-coral",
"quick.label" : "ls",
"quick.text" : "ls -ltrh\\n",
"quick.type" : "Send Text",
"quick.uuid" : "32557906-df3d-4e84-b5b9-b88ffa255cd1"
},
{
"quick.group" : "快速",
"quick.icon" : "session::waterdrop-coral",
"quick.label" : "docker ps",
"quick.text" : "docker ps -a\\n",
"quick.type" : "Send Text",
"quick.uuid" : "8dd53f14-26da-424c-99b3-5943eedf5c11"
},
{
"quick.group" : "快速",
"quick.icon" : "session::waterdrop-coral",
"quick.label" : "docker image",
"quick.text" : "docker image list\\n",
"quick.type" : "Send Text",
"quick.uuid" : "d7def50d-b307-4691-80b3-236b097bb082"
},
{
"quick.group" : "快速",
"quick.icon" : "session::pinwheel-coral",
"quick.label" : "docker stats",
"quick.text" : "docker stats\\n",
"quick.type" : "Send Text",
"quick.uuid" : "4ad5c603-6328-49e6-8768-bc317b4c3fd2"
},
{
"quick.group" : "快速",
"quick.icon" : "session::heart-coral",
"quick.label" : "df",
"quick.text" : "df -h\\n",
"quick.type" : "Send Text",
"quick.uuid" : "ddc599f2-e11d-46d0-aaa0-c219ffdd4f04"
},
{
"quick.group" : "快速",
"quick.icon" : "session::waterdrop-coral",
"quick.label" : "/usr/local",
"quick.text" : "cd /usr/local && cd src && ls -trhl\\n",
"quick.type" : "Send Text",
"quick.uuid" : "0c515373-5fca-4d0a-842b-18efa68904dd"
},
{
"quick.group" : "快速",
"quick.icon" : "session::square-coral",
"quick.label" : "docker d",
"quick.text" : "de(){\rif [[ ! -n \"$a\" ]]; then\r arg1=$1\relse\r arg1=$a\rfi\rarg2=${2:-bash}\rdocker exec -it $arg1 $arg2 $3 $4 $5 $6 $7 $8\r}\r\rdl(){\rif [[ ! -n \"$a\" ]]; then\r arg1=$1\relse\r arg1=$a\rfi\r\rarg2=${2:-300}\rdocker logs -fn $arg2 $arg1 $3 $4 $5 $6 $7 $8\r}\r\rds(){\r docker stats -a\r}\r\r",
"quick.type" : "Send Text",
"quick.uuid" : "def736c1-21b8-4955-ac0a-027874aebb9c"
}
]