0

Every time I run a program using the VSCode debugger, a line such as

 /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-agft2qoj.y5y

or

 /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-1ai4zqj4.nob

gets added to my .bash_history file. How can I exclude these lines?

1

1 Answer 1

1

In bash you would set

HISTIGNORE="*commandhere*"

For example, the following will exclude fortune from the history, but will store fortune -l:

HISTIGNORE="*secret.server.com*:ytalk*:fortune"

source

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.