text 别名的缩写 - 别名custom_command =“linux_command”

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 别名的缩写 - 别名custom_command =“linux_command”相关的知识,希望对你有一定的参考价值。

create file if it does not exists ~/.bash_aliases
add lines in format alias name_of_abb="linux command"

connect_dev="ssh 35.198.141.170"
connect_live="ssh 35.242.251.75"
odoo_dir="cd /usr/lib/python3/dist-packages/odoo/my_modules/odoo-tyre/"
pull="sudo git pull origin"
odoorestart="sudo service odoo restart"
openodoo="cd Git/odoo/addons/odoo-tyre/"
startodoo="cd Git/Docker-Odoo/ && docker-compose up"
reinstall_odoo="odoo -u odoo-tyre -d $DATABASE -r $USERNAME -w $PASSWORD --db_host=$HOST --stop-after-init"
alias odooinst="docker container restart odoo && docker container exec -u 0 odoo odoo -u $MODULE -d $DATABASE -r odoo -w odoo --db_host=postgresql --stop-after-init"

以上是关于text 别名的缩写 - 别名custom_command =“linux_command”的主要内容,如果未能解决你的问题,请参考以下文章

实战讲解使用 Linux alias 为命令设置别名,设置永久别名

text 常见的bash别名移动到docker容器中。执行`lift init`时,Thiese是基础别名

text VetTool的术语别名

text 我当前的.gitconfig别名

text 有用的git别名

text GitConfig是美丽日志的别名