Features β’ Installation β’ Quick Start β’ Themes β’ Documentation
Accidentally deleted an important file? Vanish gives you peace of mind with a smart cache system that lets you recover files easily. Say goodbye to permanent deletion anxiety and hello to confident file management.
|
π‘οΈ Safe Deletion Files move to cache, never truly deleted π Pattern-based Recovery Restore using wildcards and flexible matching π Rich Statistics Track cache usage and file metrics π¨ Beautiful TUI 8 stunning built-in themes |
β‘ Blazing Fast Handles large directories effortlessly π§ Highly Configurable Customize via simple TOML config π Audit Trails Complete operation logging π§Ή Auto Cleanup Configurable retention policies |
Using curl:
curl -LsSf https://raw.githubusercontent.com/Nurysso/vanish/main/install.sh | shUsing wget:
wget -qO- https://raw.githubusercontent.com/Nurysso/vanish/main/install.sh | shReplace <tag> with your desired version (e.g., v0.9.0):
curl -LsSf https://raw.githubusercontent.com/Nurysso/vanish/<tag>/install.sh | shgit clone https://github.com/Nurysso/vanish.git
cd vanish && make build
sudo mv vx /usr/local/bin/# Delete files/directories safely
vx file.txt folder/ *.log
# List everything in cache
vx --list
# Restore files by pattern
vx --restore "*.txt" "project-*"
# Get detailed file info
vx --info "important-file"
# Clear entire cache
vx --clear
# Remove files older than 30 days
vx --purge 30
# View cache statistics
vx --stats
# Skip confirmations (use with caution!)
vx --restore --noconfirm "*.backup"Vanish includes 8 gorgeous themes designed for different moods and environments:
|
Default π― Clean & Professional |
Dark π High Contrast |
Light βοΈ Bright & Minimal |
Cyberpunk π Neon Futuristic |
|
Minimal β¨ Distraction-Free |
Ocean π Calming Blues |
Forest π² Natural Greens |
Sunset π Warm & Cozy |
# Interactive theme selector
vx --themesCustomize further via the configuration file.
| Command | Shorthand | Description |
|---|---|---|
vx <files...> |
β | Move files/directories to cache |
--restore <pattern> |
-r |
Restore files matching pattern |
--list |
-l |
Show all cached files |
--info <pattern> |
-i |
Detailed info about items |
--clear |
-c |
Empty entire cache |
--purge <days> |
-pr |
Remove files older than N days |
--stats |
-s |
Display cache statistics |
--path |
-p |
Show cache directory location |
--themes |
-t |
Interactive theme browser |
--config-path |
-cp |
Show config file location |
--noconfirm |
-f |
Skip all confirmation prompts |
--help |
-h |
Show help information |
--version |
-v |
Display version |
Vanish supports powerful glob patterns for precise file restoration:
# Exact match
vx --restore "document.pdf"
# All text files
vx --restore "*.txt"
# Files starting with 'backup'
vx --restore "backup-*"
# Multiple patterns at once
vx --restore "*.log" "config.*" "test-*"
# Year-based restoration
vx --restore "*-2024-*"|
β Atomic Operations Prevents data corruption during moves β Path Validation Comprehensive conflict prevention β Collision Detection Smart naming conflict resolution |
β Permission Preservation Maintains original file attributes β Transaction Logging Complete audit trail β Integrity Checks Verification during restoration |
Vanish uses TOML for easy, human-readable configuration. Customize cache location, retention policies, themes, and more.
π View Full Configuration Guide β
# Show config file location
vx --config-pathNever manually modify the cache directory structure. To change the cache location:
- Update the configuration file
- Run
vx --clearto empty the old location - Restart using the new location
- Original file permissions are preserved
- Respects filesystem ACLs and extended attributes
- Symbolic links preserved but not followed
- Hidden files require explicit specification
We welcome contributions of all kinds! Here's how to get started:
- Fork the repository
- Create your feature branch:
git checkout -b feature/AmazingFeature - Lint your code:
make lint - Commit your changes:
git commit -m 'Add AmazingFeature' - Push to the branch:
git push origin feature/AmazingFeature - Open a Pull Request
- π Report a Bug
- π‘ Request a Feature
Built with using:
- Bubble Tea - Powerful TUI framework
- Lip Gloss - Beautiful terminal styling
Homepage β’ Documentation β’ Releases β’ Discussions
Made with β€οΈ by Nurysso
β Star this repo if Vanish made your life easier!
