不太理解楼主的意思啊,可以参考下我的做法呢:
alias py-pr='python -m pip install --trusted-host
mirrors.aliyun.com -i
http://mirrors.aliyun.com/pypi/simple/ -r $1'
alias py-p='python -m pip install --trusted-host
mirrors.aliyun.com -i
http://mirrors.aliyun.com/pypi/simple/ $1'
alias op-p='open -a Pycharm'
alias op-s='open -a "Sublime Text"'
alias op-i='open -a "Intellij IDEA"'
alias op-g='open -a Goland'
alias op-w='open -a WebStorm'
alias op-v='open -a "Visual Studio Code"'