To rename all files in the current working directory from kebab case to snake case, you can use the following zsh command:

bash:

for file in *(-.); do mv $file ${(L)file//-/_}; done

This command uses a for loop to iterate over all files in the current working directory that contain a hyphen (-), which is the kebab case separator. It then renames each file by replacing all hyphens with underscores (_) using parameter expansion.

To make sure this command works properly, you will need to have the zsh shell installed on your Arch Linux system. You can check if it's installed by running the following command:

css:

zsh --version
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence