Skip to content

Instantly share code, notes, and snippets.

@ThiefMaster
Created March 19, 2015 21:50
Show Gist options
  • Save ThiefMaster/a4da1e8ec7155df21aae to your computer and use it in GitHub Desktop.
Save ThiefMaster/a4da1e8ec7155df21aae to your computer and use it in GitHub Desktop.
simple script that converts a non-timestamped bash history to an extended zsh history
from __future__ import print_function
import sys
from time import time
def main():
ts = int(time())
for line in sys.stdin:
print(': {0}:0;{1}'.format(ts, line.rstrip()))
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment