alt-.
Pastes the previous line's last argument; repeated, it digs back in time.
It's !$ with a preview: the shortcut pastes the previous command's last argument straight into the line, where you can check and edit it before Enter.
Pressed again, it swaps in the last argument of the command before that, and so on — an excavation, layer by layer, through the line endings of history.
$ mkdir ./viveiro/mudas
$ cd Alt+.
$ cd ./viveiro/mudas