Control History Expansion, Quick Substitution, and Tokenization
$histchars
contains up to three characters:
- history expansion character: Defines the start of a history expansion. Default value:
!
. - quick substitution character: The character, which starts a substitution, when it’s first on a line. Default value:
^
. - end-of-line comment character (optional): The character, where an end-of-line comment begins. Default value:
#
Links
Live Templates
Examples
Quick substitution to print hello world
:
|
|
Now use a custom substitution character :
|
|
BashSupport Pro 是一个 支持 $histchars 的 Bash 集成开发工具 – 马上试用!