JanDeDobbeleer / aliae

Cross shell and platform alias management
https://aliae.dev
MIT License
73 stars 3 forks source link

`.` should be treated as a function #61

Closed trajano closed 8 months ago

trajano commented 8 months ago

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 commented 8 months ago

Actually this one didn't even work

alias:
  - name: .
    value: eval "$(aliae init bash)"
    type: function
trajano commented 8 months ago

I think it's because of the $ inside

trajano commented 8 months ago

nvm I think i corrupted my shell earlier