Created
March 19, 2015 21:50
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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