mitnk / cicada

An old-school bash-like Unix shell written in Rust
https://hugo.wang/cicada/
MIT License
981 stars 50 forks source link

cicada seems to have trouble with certain bash function names #21

Closed msfjarvis closed 5 years ago

msfjarvis commented 5 years ago

Case in point being git's completion script, trying to run source ~/.git-prompt.sh from inside cicada throws with cicada: __git_ps1_show_upstream: command not found.

So far I have tried the following things:

I'll be glad to follow up with any additional debugging you'd like me to do.

mitnk commented 5 years ago

Hi @MSF-Jarvis, seems you thought cicada is compatible with bash/zsh - it's not. Means you cannot use existing bash/zsh scripts in cicada. You have to re-config stuff in cicada in a new way :-(

Please see FAQ section in the README. Also you could check out how completions works in cicada in docs as well.

msfjarvis commented 5 years ago

Hi @MSF-Jarvis, seems you thought cicada is compatible with bash/zsh - it's not. Means you cannot use existing bash/zsh scripts in cicada. You have to re-config stuff in cicada in a new way :-(

Please see FAQ section in the README. Also you could check out how completions works in cicada in docs as well.

Ah I see, must have misread something along the way. Thanks for the prompt response!