related to this post, cd to the most recently modified child directory
bash cd "$(\ls -1dt ./*/ | head -n 1)"
zsh cd ./*(/om[1])
changes to the most recently modified directory.
But there is no script for fish shell.
When used the bash code in config.fish, it shows
$(...) is not supported. In fish, please use '(\ls)'
Can anyone please help?
$(...)
as well (which can also be used inside quoted strings).