Skip to content

Instantly share code, notes, and snippets.

🔳
lost in the shell

Mischievous Meerkat jarun

🔳
lost in the shell
Block or report user

Report or block jarun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jarun
jarun / migrate-fish-history-to-zsh.py
Created Jan 15, 2020 — forked from mateuspontes/migrate-fish-history-to-zsh.py
Migrate fish history to zsh shell (python 2.7)
View migrate-fish-history-to-zsh.py
import os
import re
def fish_to_zsh(cmd):
return (cmd.replace('; and ', '&&')
.replace('; or ', '||'))
with open(os.path.expanduser('~/.zsh_history.test'), 'a') as o:
with open(os.path.expanduser('~/.local/share/fish/fish_history')) as f:
for line in f:
You can’t perform that action at this time.