<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>zsh on Communicode</title>
    <link>/tags/zsh/</link>
    <description>Recent content in zsh on Communicode</description>
    <generator>Hugo -- gohugo.io</generator>
    <copyright>Copyright 2020 Communicode.io.  All rights reserved.</copyright>
    <lastBuildDate>Thu, 23 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/zsh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Clear Shell History on Terminal Close</title>
      <link>/clear-shell-history-terminal-close/</link>
      <pubDate>Thu, 23 Apr 2026 00:00:00 +0000</pubDate>
      
      <guid>/clear-shell-history-terminal-close/</guid>
      <description>If you want to maintain your command history in your shell when using ZSH or Bash do the following:
Using your favourite text editor, open .zshrc if you are using Z shell or .bashrc if you are using Bash shell in your home directory.
Add the following to the config file of the shell:
# Large in-session history (up-arrow navigation within the tab) HISTSIZE=10000 # Prevent writing history to disk entirely SAVEHIST=0 HISTFILE=/dev/null # (Optional) Ensure history is NOT shared between tabs or appended across sessions unsetopt SHARE_HISTORY unsetopt INC_APPEND_HISTORY unsetopt APPEND_HISTORY Save the file.</description>
    </item>
    
  </channel>
</rss>
