superfile icon indicating copy to clipboard operation
superfile copied to clipboard

Setting .config dir on macos.

Open cklin731 opened this issue 1 year ago • 1 comments

Hello guys. How can I set the .config dir for setting dir on macos. Thanks for your help.

cklin731 avatar Aug 22 '24 18:08 cklin731

Hello @cklin731, To set the .config directory on macOS, set the XDG_CONFIG_HOME environment variable. Add this line to your shell configuration file:

export XDG_CONFIG_HOME="$HOME/.config"

You can add this to one of the following files, depending on your shell:

  • ~/.bash_profile or ~/.bashrc for Bash
  • ~/.zshrc for Zsh

After editing, restart your terminal or run source <config_file> to apply changes.

For future questions, please open discussions in the Q&A category.

MrPandir avatar Aug 22 '24 19:08 MrPandir