软件安装参考 https://github.com/dvorka/hstr1
2sudo yum install -y hstr
hstr --show-configuration /etc/profile
之后 记得使命令生效1
source /etc/profile
在命令行收入hstr,就会出现命令history,If you want to make running of hstr
from command line even easier, then define alias in your ~/.bashrc
:1
alias hh=hstr
Don’t forget to source ~/.bashrc to be able to to use hh command.
其它:
使用root用户执行1
2
3
4sudo yum install -y hstr
hstr --show-configuration >> /etc/profile
echo "alias hh=hstr" >> /etc/profile
source /etc/profile