-1

I tried command bash -vx
which is stated that (By the way, these two options are particularly useful when you are testing or debugging a shell script.)

$ bash -vx
++ prompt_git ' on '
bash: prompt_git: command not found

After this command, bash: prompt_git: command not found is append to the output of every command:

$ uptime
uptime
+ uptime
 17:18:51  up   7:54,  2 users,  load average: 3.62, 4.03, 2.94
++ prompt_git ' on '
bash: prompt_git: command not found

How to set `prompt-git' off.

What's the reverse operation of bash -vx

0

1 Answer 1

0

I'm afraid this is an XY problem. What you want to do is get rid of the spurious error message, which you can very likely do by editing your ~/.bashrc and removing the prompt_git call.

4
  • I did not have it on the configuration $ grep promot ~/.bash_profile grep promot ~/.bash_profile bash: prompt_git: command not found Jan 3, 2019 at 10:32
  • @user10726006 He never mentioned .bash_profile. Also, you spelled prompt wrong.
    – Kusalananda
    Jan 3, 2019 at 10:35
  • coz, I am working on MacOs @Kusalananda Jan 3, 2019 at 10:43
  • @user10726006 I don't see what macOS has to do with it.
    – Kusalananda
    Jan 3, 2019 at 11:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .