about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-10-02 17:20:49 +0200
committertoonn <toonn@toonn.io>2019-10-02 17:20:49 +0200
commit8bea5c562155f5b6a692f0970ca658b4078280ee (patch)
treee93c38246b8e8987af5a2f7ccbd5ce07772757e9 /ranger
parente4aba195da97997cb89c6b2e9acdcf47284304a9 (diff)
downloadranger-8bea5c562155f5b6a692f0970ca658b4078280ee.tar.gz
Simplify alternative trash rifle rule
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/rifle.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index c26b66b5..f04d1031 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -275,4 +275,4 @@ mime application/x-executable = "$1"
 
 # Move the file to trash using trash-cli.
 label trash, has trash-put = trash-put -- "$@"
-label trash = mkdir -p -- ${"$XDG_DATA_DIR"/ranger-trash:-~/.ranger/trash}; mv -- "$@" ${"$XDG_DATA_DIR"/ranger-trash:-~/.ranger/trash}
+label trash = mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash; mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash