function d -d 'Trash'
  if type -q trash-put > /dev/null
    set_color $yellow
    printf 'Trashing file \"%s\"\n' $argv
    set_color normal
    trash-put $argv
  else if type -q trash > /dev/null
    trash -av $argv
  else
    log warn 'No trash program is available'
    rm -ri $argv
  end
end

function d -d 'Trash'
  if type -q trash-put > /dev/null
    set_color $yellow
    printf 'Trashing file \"%s\"\n' $argv
    set_color normal
    trash-put $argv
  else if type -q trash > /dev/null
    trash -av $argv
  else
    log warn 'No trash program is available'
    rm -ri $argv
  end
end

function dddd -d 'Remove directory without prompt'
  rm -rf $argv
end

Add `dddd` as the alias for `rm -rf`
Add `dddd` as the alias for `rm -rf`


masonwan/fish-config,masonwan/fish-config