How to view history of commands in Mac OS X Terminal
OpenyourTerminal.·Makeanaliasofhistorytoshowsincethefirstcommand,type:echo'aliashistory=history1'>>~/.zshrc·Sourceyour ...,IntheTerminaljusttypevi~/.bash_history,theneditthefileasyouwant,andsave.Thisoptioncouldbetricky,ifyou'renotusedtovi, ...,Ev...。參考影片的文章的如下: