Skip to content

Instantly share code, notes, and snippets.

@dnovais
Forked from wgirhad/bash_to_zsh_history.sh
Created July 9, 2024 17:28
Show Gist options
  • Save dnovais/6ee42ce75ec389c739d9b66f856b42f4 to your computer and use it in GitHub Desktop.
Save dnovais/6ee42ce75ec389c739d9b66f856b42f4 to your computer and use it in GitHub Desktop.
Import bash history to zsh history
cat ~/.bash_history | awk '{print ": '`date +%s`':0;" $0}' >> ~/.zsh_history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment