eendroroy / alien

An asynchronous zsh prompt
https://eendroroy.github.io/alien
MIT License
307 stars 45 forks source link

fix user cd collision #40

Closed EdgardoArriagada closed 7 months ago

EdgardoArriagada commented 2 years ago

Some users have their own custom cd script

cd() {
  builtin cd $1 && ls
}

and because alien uses normal cd, it produces unexpected behaviors:

https://user-images.githubusercontent.com/12099108/174499595-e0733c0f-a793-427b-b234-67a2b747a54b.mov

this pr prevent this from happening by using builtin cd instead

EdgardoArriagada commented 1 year ago

I cannot merge this:

image