I suggest handling "/media/<label>" the same way as "/<drive letter>", maybe allowing to configure the "/media" part to some alternative prefix.
Conflicting labels would have some conciliating suffixes attached in the alias. For instance, if a flash drive labeled "Backup" is mounted on F: by Windows, then the following command lines would be treated the same way by Bash:
$ some-command /f/foobar
$ some-command /media/backup/foobar
Log in to post a comment.