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
""" | |
Outputs history with bash and git aliases expanded. | |
""" | |
import re | |
from subprocess import check_output | |
BASH_ALIASES = {} | |
#for line in check_output('bash -i -c "alias -p"', shell=True).split('\n'): | |
for line in check_output('zsh -i -c "alias"', shell=True).split('\n'): |