Like, say, those that include the word “production”?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put the above to a file that will be sourced when interactive shell starts (to
.zshrcor to a file that is sourced from.zshrclike I do).Alternate form (implicit addition to history):
. Note:
explicitly adds item to history. But the same thing implicitly does zsh if
zshaddhistoryreturns with zero exit code, so withoutfc -pand withsetopt nohistignoredups nohistignorealldups(which is the default state) you will see unneeded duplicates in history.emulate -L zshis here to make sure that emulation settings does not step in and change the interpretation of the function body. I put this line at the start of the every function I define in zsh configuration.