最近我决定从 zsh 迁移到 bash shell。有没有办法快速将我的.zsh_history文件转换为.bash_history文件?
.zsh_history片段
: 1446994188:0;cat .bash_profile
: 1446994197:0;echo $shell
: 1446995957:0;vi ~/.zshrc
: 1437893246:0;curl -fLo ~/.vim/autoload/plug.vim --create-dirs \\
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Run Code Online (Sandbox Code Playgroud)
.bash_history片段
#1446994188
cat .bash_profile
#1446994197
echo $shell
#1446995957
vi ~/.zshrc
#1437893246
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Run Code Online (Sandbox Code Playgroud)
请注意,该命令可以跨越多行。