Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work for aliases defined inside fish scripts #30

Open
vorburger opened this issue Feb 17, 2023 · 0 comments
Open

Does not work for aliases defined inside fish scripts #30

vorburger opened this issue Feb 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vorburger
Copy link

Describe the bug

#29 for #27 made abbr -a y ls -l && ls -l show 馃挕 y => ls -l - thank you @gazorby!

It also DOES work for an alias (which is just a Fish function --wraps), as long as I type that alias on the prompt, for example this is great:

$ alias c="bat "
$ functions c
# Defined via `source`
function c --wraps='bat ' --description 'alias c=bat '
  bat  $argv

end

$ bat ~/.gitconfig
(...)
馃挕 c => bat

What I'm struggling with is to get this to work for aliases defined inside a Fish script....

To Reproduce

Steps to reproduce the behavior:

$ functions --erase c
$ echo 'alias c="bat "' >repro.fish
$ source repro.fish
$ functions c
# Defined via `source`
function c --wraps='bat ' --description 'alias c=bat '
  bat  $argv

end

$ bat repro.fish
(...)
# Does *NOT* print 馃挕 c => bat

Expected behavior

馃挕 c => bat

System (please complete the following information):

  • fish, version 3.6.0
  • Fedora 37 Workstation
@vorburger vorburger added the bug Something isn't working label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants