paulromano / h5sh

HDF5 Command Line Shell
MIT License
6 stars 1 forks source link

Adding alias table capability. #2

Closed pshriwise closed 5 years ago

pshriwise commented 5 years ago

I'm helplessly hooked on my bash aliases, l for ls in particular. This PR allows one to have a .h5rc file in their home directory with a dictionary of aliases for existing commands in h5sh. Right now mine contains

# ALIASES
aliases = {'l' : 'ls'}

It probably won't be terribly useful until more commands are added, but it's a start for now.

pshriwise commented 5 years ago

Yeah probably better for the long term to do something like that.

pshriwise commented 5 years ago

Made the alias table a member of the command class. I thought that made more sense. LMK what ya think.