Zsh Sessions

~/.zsh_sessions stores shell session state used by zsh on macOS, and removing it usually only affects saved terminal session history and restoration.

What is Zsh Sessions?

~/.zsh_sessions is a hidden folder in your home directory that is associated with zsh, the Z shell used by Terminal on modern macOS versions. It is typically created when shell session saving is enabled, allowing Terminal and zsh-related startup files to preserve details between shell launches. Depending on configuration, it may contain per-session files that help restore command context or retain session-related history information. This folder is not usually part of a third-party app and is more closely tied to your shell environment and Terminal behavior. Users often notice it while reviewing hidden files in their home folder or when checking disk usage. Because zsh behavior can also be customized through dotfiles such as ~/.zshrc, the exact contents and importance of this folder can vary by setup.

Review files before deleting with diCleaner

Inspect caches, support files, folders, and related data before deleting items on Mac.

Download diCleaner

Safety overview

Status: Use with caution

This folder is usually not dangerous, but it may contain session state or shell history details that some users want to keep. Deleting it can remove saved shell session data and may affect how previous Terminal sessions are restored.

Recommendation: Keep it if you use Terminal regularly or want session restoration and related shell state preserved. If you remove it, expect only session-related data loss, not app uninstallation, but avoid deleting other zsh configuration files unless you know what they do.

File path

  • ~/.zsh_sessions

Share your experience

Be the first to share your experience.

Share your experience with this file or folder