Skip to content

Instantly share code, notes, and snippets.

View maddinek's full-sized avatar
👨‍💻

Martin maddinek

👨‍💻
  • Freelancer
  • London
View GitHub Profile
@dllud
dllud / bash-history-to-zsh-history.py
Last active April 13, 2021 19:54 — forked from op/bash-history-to-zsh-history.py
Import bash history (has no timestamps) to zsh history.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-history-to-zsh-history.py >> ~/.zsh_history
import sys
import time
def main():