坚持开放的别名和宏
在OpenStack“ Shell”模式下使用OpenStack客户端时,我非常想念常见任务的别名。我看到您可以添加带有“ Alias Add ...”或“ Macro Add ...”的别名或宏。但是,在外壳会话之间,这些别名并不持续。 有一些文件可以配置这些文件吗?
When using the OpenStack client in the openstack "shell" mode, I miss aliases for common tasks a lot. I see that you can add aliases or macros with "alias add ..." or "macro add ...". However the aliases are not persisted between shell sessions.
Is there some file where I can configure those ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在/etc/profile 或〜/.bashrc 和其他文件中设置持续的别名,并在 /etc/profile.d/中设置其他文件。
〜
是用户$ home < /code>目录
/etc/profile
显示时,目录将在更新之后重新登录时,目录将生效。文件。
You could set persisted alias in /etc/profile or ~/.bashrc and others file in /etc/profile.d/.
~
is the user$HOME
directory/etc/profile
shows:All this method take effect when you re login after update these files.