通常,我会在 rails 目录的根目录下工作,每次我想移动文件时,我都会发现自己在同一路径中导航两次:
mv app/views/layouts/application.html.erb app/views/layouts/application.html.haml
haml 只是我需要更改文件名而不修改它当前所在的目录且不更改目录的可能示例之一。有没有办法实现这一目标?
bash rename
bash ×1
rename ×1