Re: Trailing slash in custom command
Patterns cannot be used in the default value of a prompt.
Though you can implement such default using shell constructs.
Regarding the other question, you can again use shell tricks like:
Though you can implement such default using shell constructs.
FROM=!?From (keep empty for selected file):! && rsync -a --delete "${FROM:-!/!}" ...
Regarding the other question, you can again use shell tricks like:
rsync -a --delete "!/!" "!?To:?!""/"