0

I have added certain aliases in .bashrc file, that point to the windows location of the start-server bat files of kafka and zookeeper. However when I run those in the gitbash its saying Command not found error

Example if I have below alias in .bashrc file and I run the command zoo in gitbash it gives above error

alias zoo="D:/Tools/kafka_2.13-2.8.0/bin/windows/kafka-server-start.bat"
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
ghostrider
  • 2,046
  • 3
  • 23
  • 46

1 Answers1

1

Gitbash only reads .bash_profile not .bashrc, either place aliases in .bash_profile or place these line on the top of your .bash_profile:

if [ -f ~/.bashrc ]
then
    . ~/.bashrc
fi

also see: Git for Windows doesn't execute my .bashrc file

Roelof
  • 63
  • 8