Skip to content

mv

Usage
mv [args...]

Wraps mv to automatically collapse nested directories of the same name. When extracting archives results in redundant structures (e.g., themes/themes/), calling mv themes/themes themes will gracefully move the inner contents up one level and remove the empty outer shell.

Also owns the confirmation prompt: it passes -i, so mv asks before overwriting. A flag you pass after it, such as -f or -n, still wins, as it did with the old mv -i alias in conf.d/tricks.fish.

Opinionated component (C1): when disabled via __fish_config_op_aliases or its aliases-tricks sub-category (__fish_config_op_aliases_filesystem), behaves exactly like bare command mv, with no -i.

args... Arguments forwarded to standard mv
0 Operation succeeded
>0 Standard mv failure, or failed to collapse directory
Terminal window
mv ~/.config/btop/themes/themes ~/.config/btop/themes

Classification: bypasses-shadow(mv)