Syl*_*eau 4 command-line bash environment-variables history
您如何就地扩展:
编辑它们并检查它们是否正确?
例如,我有一些别名用于刷新不同的设备,我只是想更改要安装的修订号,我真的不想从我的复制/粘贴.bashrc
来执行此操作。
bash
提供Ctrl+ Alt+e快捷键(从bash
手册页):
Run Code Online (Sandbox Code Playgroud)shell-expand-line (M-C-e) Expand the line as the shell does. This performs alias and history expansion as well as all of the shell word expansions.
例子:
ls
Ctrl+ Alt+e
ls -aF --color
Run Code Online (Sandbox Code Playgroud)!268
Ctrl+ Alt+e
ps -aef
Run Code Online (Sandbox Code Playgroud)$PATH
Ctrl+ Alt+e
/opt/vagrant/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Run Code Online (Sandbox Code Playgroud)