Skip to main content
deleted 101 characters in body; edited title
Source Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297

is Is there any way to keep a command from being added to your history?

isIs there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history stored in memory, though that's less of a concern. Is there any way to prevent this?, or do I just have to go back and edit my history file.

update: I didn't realize this might be shell specific-specific. myMy shell is zsh how would I do it in zsh? (though you're. You're welcome to answer for other shell's, including bash,shells so people know how to do this in their shell, but those answers won't help me specifically).

is there any way to keep a command from being added to your history?

is there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history stored in memory, though that's less of a concern. Is there any way to prevent this? or do I just have to go back and edit my history file.

update: I didn't realize this might be shell specific. my shell is zsh how would I do it in zsh? (though you're welcome to answer for other shell's, including bash, so people know how to do this in their shell, but those answers won't help me specifically)

Is there any way to keep a command from being added to your history?

Is there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history stored in memory, though that's less of a concern. Is there any way to prevent this, or do I just have to go back and edit my history file.

update: I didn't realize this might be shell-specific. My shell is zsh. You're welcome to answer for other shells so people know how to do this in their shell.

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k
clarify what I mean by including other shell answers
Source Link
xenoterracide
  • 61.5k
  • 79
  • 196
  • 252

is there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history stored in memory, though that's less of a concern. Is there any way to prevent this? or do I just have to go back and edit my history file.

update: I didn't realize this might be shell specific. my shell is zsh how would I do it in zsh? (though you're welcome to answer for other shell's but, including bash, so people know how to do this in their shell, but those answers won't help me specifically)

is there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history stored in memory, though that's less of a concern. Is there any way to prevent this? or do I just have to go back and edit my history file.

update: I didn't realize this might be shell specific. my shell is zsh how would I do it in zsh? (though you're welcome to answer for other shell's but bash answers won't help me)

is there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history stored in memory, though that's less of a concern. Is there any way to prevent this? or do I just have to go back and edit my history file.

update: I didn't realize this might be shell specific. my shell is zsh how would I do it in zsh? (though you're welcome to answer for other shell's, including bash, so people know how to do this in their shell, but those answers won't help me specifically)

this is in zsh
Source Link
xenoterracide
  • 61.5k
  • 79
  • 196
  • 252
Loading
Tweeted twitter.com/#!/StackUnix/status/27589993685843968
Source Link
xenoterracide
  • 61.5k
  • 79
  • 196
  • 252
Loading