Skip to content

idirxv/tempit

Repository files navigation

Tempit - Temporary Directory Manager for Oh My Zsh

Tempit is a small plugin for Oh My Zsh that helps you create, manage, and navigate temporary directories with ease. It provides a persistent tracking system so your temporary directories won't get lost.

Features

  • Create temporary directories with custom prefixes
  • List all tracked temporary directories with detailed information (size, creation date, age, file count)
  • Navigate to temporary directories by number
  • Remove specific temporary directories by number
  • Search for directories containing specific text
  • Clean up all tracked temporary directories at once

Installation

Manual Installation

  1. Clone the repository to your Oh My Zsh custom plugins directory:
git clone https://github.com/idirxv/tempit.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/tempit
  1. Add the plugin to your .zshrc file:
plugins=(... tempit)
  1. Reload your shell:
source ~/.zshrc

Dependencies

Tempit requires Python 3 and the following Python packages (included in requirements.txt):

  • humanize
  • tabulate
  • termcolor

Install dependencies with:

cd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/tempit
pip install -r requirements.txt

Usage

Commands

Command Description
tempc [prefix] Create a new temporary directory (optional custom prefix) and cd into it
templ List all tracked temporary directories
tempg <number> Go to (cd) the temporary directory by its number
tempr <number> Remove a temporary directory by its number
temps <term> Search for directories containing the specified term
tempclean Remove all tracked temporary directories (with confirmation)
temph Display help information about available commands

Examples

# Create a temporary directory with default prefix
tempc

# Create a temporary directory with custom prefix
tempc foo

# List all tracked temporary directories
templ

# Navigate to temporary directory #2
tempg 2

# Remove temporary directory #1
tempr 1

# Search for directories containing "project"
temps project

# Remove all tracked temporary directories
tempclean

# Display help information
temph

License

MIT License

About

Oh-My-Zsh plugin that manages temporary directories with tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published