Commands Not Working on Git Bash

Commands Not Working on Git Bash

Hi i am willing to use Git Bash for app dev, however whenever i start it, it gives me couple of 'bash :export:' lines and not even the clear/clrscr commands work. I am using a Windows 8.1 machine (6.00 gb ram, 1 TB - just so you know). I have tried the following:

  • uninstalling-reinstalling git
  • Using Git as CMD prompt

Below is the screenshot of the Terminal window:

Output of echo $PATH

This is my current PATH env variable:

C:\Users\Madhukar Jain.npm-global\node_modules\express;C:\Users\Madhukar Jain\AppData\Roaming\npm;%APPDATA%\Roaming\npm\node_modules.bin\;C:\Program Files\MongoDB\Server\3.2\bin;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;

7

2 Answers

Looks like the PATH is completely messed up. Are you using custom profile/rc file such as ~/.bashrc , ~/.bash_profile , ~/.bash_login or ~/.profile ? If yes you need to check whether the contents are syntactically correct. From the errors I feel that there are few issues with special characters such as spaces. You may have to use double quotes properly to clearly differentiate the directories in the PATH.

3

Try this and check

export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin  
3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.