Skip to content

Instantly share code, notes, and snippets.

"""
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'):