summaryrefslogtreecommitdiff
path: root/system/trashy/README
blob: f0daa0d9c480b25602f42b7fb202ef44afc2f1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
A (mostly) Freedesktop compliant rubbish bin interface for the shell
written entirely in BASH.

http://slackermedia.info/trashy

Usage
-----

Trashy is a simple shell script that introduces the idea of a trash
can for the command line. Meaning that you can issue this command:

   $ trash foo bar

and the files 'foo' and 'bar' will be moved to your system trash.

or...

   $ trash baz\ quux

and the file 'baz quux' will be moved to your system trash.

Simple as that. When you're really really sure that everything in
your Trash wants to be nuked out of existence, then you can
issue the command:

   $ trash --empty

and your system trash will be emptied.

System Trash
------------

Trashy defines a "system trash" on Linux, BSD, and Solaris-based
operating systems in accordance with the Open Desktop standard:
~/.local/share/Trash

On systems that do not use a desktop, trashy simply creates a ~/.trash
folder (unless you sometimes use a desktop, in which case your
desktop's tash will be continued to be used).

On systems that do have a desktop but do not follow the Open Desktop
standard, trashy tries to conform with what they do use. If all else
fails, ~/.trash is used.