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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

. should be treated as a function #61

Closed
1 task done
trajano opened this issue Nov 1, 2023 · 3 comments
Closed
1 task done

. should be treated as a function #61

trajano opened this issue Nov 1, 2023 · 3 comments
Assignees

Comments

@trajano
Copy link

trajano commented Nov 1, 2023

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

I have the followubg config

---
alias:
  - name: .
    value: eval "$(aliae init bash)"

in bash it generates

alias .="eval \"$(aliae init bash)\""

but when I run . I get

`alias .': invalid alias name

What should happen is it should generate

.() {
  eval "$(aliae init bash)"
}

What OS are you seeing the problem on?

No response

Which shell are you using?

No response

@trajano
Copy link
Author

trajano commented Nov 1, 2023

Actually this one didn't even work

alias:
  - name: .
    value: eval "$(aliae init bash)"
    type: function

@trajano
Copy link
Author

trajano commented Nov 1, 2023

I think it's because of the $ inside

@trajano
Copy link
Author

trajano commented Nov 1, 2023

nvm I think i corrupted my shell earlier

@trajano trajano closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants