Closed alexpearce closed 7 years ago
@alexpearce great idea. Not sure when I will have time to add that. Patch welcome though :)
I can see if it can work, for sure.
Can you think of something that might make this a non-starter, or only applicable for certain aliases? I have a feeling I had something when I wrote the PR, but now I can't remember 😞
Is there any progress on this? I just found about bass and It's what I've been missing, but I wish my aliases script would work with fish
Just added alias support. LMK if you run into issues:
$ bass alias "xx='echo lol'"
$ xx
lol
I've come across bash scripts that define aliases, to shorten paths to executables for example, such as
Sourcing such a script with
bass
does not convert the bash alias to a fish one. This can be seen interactively:As far as I can tell,
bass
works by comparing the output of bash'senv
before and after running the command passed tobass
, so any aliases defined won't be captured.bass
could additionally compare the output of bash'salias
, which prints all defined aliases.