shell-safe-rm
                                
                                
                                
                                    shell-safe-rm copied to clipboard
                            
                            
                            
                        prevent deleting xdg `~/.config/user-dirs.dirs` directories
First of all, thank you for coding such a useful tool. It would be good if it had preemtive non-deletion mechanism for user space essential directories, such as
   XDG_DESKTOP_DIR="$HOME/Desktop"
   XDG_DOWNLOAD_DIR="$HOME/Downloads"
   XDG_TEMPLATES_DIR="$HOME/Templates"
   XDG_PUBLICSHARE_DIR="$HOME/Public"
   XDG_DOCUMENTS_DIR="$HOME/Documents"
   XDG_MUSIC_DIR="$HOME/Music"
   XDG_PICTURES_DIR="$HOME/Pictures"
   XDG_VIDEOS_DIR="$HOME/Videos"
We can check the path of those directories with
  xdg-user-dir DESKTOP
  xdg-user-dir DOWNLOAD
  xdg-user-dir TEMPLATES
  xdg-user-dir  PUBLICSHARE