dotfiles/ranger/commands.py

17 lines
282 B
Python
Raw Permalink Normal View History

2024-01-13 13:50:04 -06:00
from __future__ import (absolute_import, division, print_function)
from ranger.api.commands import *
import os
class emptytrash(Command):
""":empty
Empties the trash
"""
def execute(self):
HOME = os.environ['HOME']
self.fm.run(f'trash-empty')