#!/bin/bash -e rmchrom() { rm -rf {"$XDG_CONFIG_HOME","$XDG_CACHE_HOME"}/chromium } trap rmchrom EXIT rmchrom /usr/bin/chromium