dotfiles

My personal dotfiles 💠️

commit 8607bbb2ed5de37f93b9a58dc3c8c5f864398c2f
parent 5a3a87cfa041d03c75761ed4ec7b73641e097fc2
Author: Pablo <pablo-escobar@riseup.net>
Date:   Tue, 17 Aug 2021 18:55:53 -0300

Changed the Ranger FM config so that files are actually deleted with D and dd instead of moving them to the trash

Also set the confirm_on_delete option to 'always' so that I don't accidentaly delete stuff

Also removed the PYTHONSTARTUP var from my exports. It was causing bpython to malfunction

Diffstat:
M.config/ranger/commands.py | 9---------
M.config/ranger/rc.conf | 9+++++----
M.local/bin/exports.sh | 3---
3 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/.config/ranger/commands.py b/.config/ranger/commands.py
@@ -1,15 +1,6 @@
 from ranger.api.commands import Command
 from os.path import join, expanduser
 
-class empty(Command):
-    """:empty
-
-    Empties the trash directory 
-    """
-
-    def execute(self):
-        self.fm.run("gio trash --empty")
-
 class rename(Command):
     """:rename <destination>
 
diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf
@@ -5,7 +5,7 @@
 # | | | (__ | (_| (_) | | | | |  
 # |_|  \___(_)___\___/|_| |_|_|  
 #
-# Pablo (C) 2020
+# Pablo (C) 2021
 
 # Configure ranger to preview images in the shell
 set preview_images false
@@ -15,9 +15,10 @@ set preview_script ~/.config/ranger/scope.sh
 # Draw borders around panes
 set draw_borders true
 
-# Move files to trash
-map dd shell gio trash %s
-map D  shell gio trash %s
+# Delete files with key-bindings
+set confirm_on_delete always # Always ask before deleting stuff!
+map dd delete
+map D  delete
 
 # Copy (yank) a file
 map y copy
diff --git a/.local/bin/exports.sh b/.local/bin/exports.sh
@@ -40,9 +40,6 @@ export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
 # OCaml
 export OPAMROOT="$XDG_DATA_HOME/opam"
 
-# Python
-export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/init.py"
-
 # Ruby
 export GEM_HOME="$XDG_DATA_HOME/gem"
 export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"