# Add to ~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish
alias rm='rmxt'# Bash/Zsh
function rm() {
if [[ "$*" == *"-i"* ]]; then
echo "Warning: Permanent deletion!"
read -p "Continue? (y/N) " -n 1 -r
echo
[[ $REPLY =~ ^[Yy]$ ]] && rmxt "$@"
else
rmxt "$@"
fi
}#!/bin/bash
# daily-cleanup.sh
rmxt -rf build/ dist/ target/
rmxt *.log *.tmp *.cache
rmxt tidy -t 30# Remove old log files
find . -name "*.log" -mtime +7 -exec rmxt {} \;
# With fd (faster)
fd -e log -x rmxt# Check PATH
echo $PATH | tr ':' '\n' | grep -E '(cargo|local)'
# Add cargo bin to PATH
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc# User install instead of system
cp target/release/rmxt ~/.local/bin/# Check trash location (varies by OS)
# Linux: ~/.local/share/Trash/
# macOS: ~/.Trash/
# Windows: Recycle Bin
# Reset if corrupted
rmxt recover-all
rmxt tidy -t 0 # Clean all# List with full paths
rmxt list
# File name must match exactly
rmxt recover "file with spaces.txt"No config file needed - rmxt works out of the box. Behavior is controlled through command flags and environment variables.
export RMXT_DEFAULT_DAYS=7 # Default tidy days
export RMXT_CONFIRM=false # Skip confirmations