Zsh History File Initiation #Shell #Ubuntu
# Create a new bash history file
LASTCREATEDFILE="$(date +'%Y-%m-%d')"
touch ~/command-line-history/$(date '+%Y-%m-%d').txt
echo -n "The command history dates at: " >> ~/command-line-history/${LASTCREATEDFILE}.txt
date +'%Y-%m-%d' >> ~/command-line-history/${LASTCREATEDFILE}.txt
atom ~/.zsh_history
# Push new changes to initiate files
cd ~/command-line-history
git add .
git status
git commit -m "Pushing today's file"
git push origin master