pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
shell脚本内使用aliasshopt -s expand_aliases放在所有alias定义前面。
root@root1:~/sh# cat test.sh
#!/bin/bash
shopt -s expand_aliases
alias k="kubectl -n kube-system "
k get pod