Welcome to mirror list, hosted at ThFree Co, Russian Federation.

trash.sh « bootstrap « far2l - github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 338bff5f3ea9807071431c2b8f8eab033c7ef9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
##########################################################
#This script used by FAR to move files to Trash
##########################################################
#For per user customization - create:
#~/.config/far2l/trash.sh
##########################################################

set -e

if [ -x ~/.config/far2l/trash.sh ]; then
. ~/.config/far2l/trash.sh
fi

if command -v gvfs-trash >/dev/null 2>&1; then
	gvfs-trash -f -- "$1"
elif command -v gio >/dev/null 2>&1; then
	gio trash -f -- "$1"
fi