Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

fish: Unable to create a configuration directory for fish.

Posted on 2015-07-10 By Jon No Comments on fish: Unable to create a configuration directory for fish.

Terminal_Logo_CRT_Small
Terminal_Logo_CRT_Small

Recently I’ve taken a liking to Fish Shell. It’s simple, colorful and provides lots of features out of the box, without requiring any configuration whatsoever. Since I have a tendency to touch a lot of different systems, the “out of the box” provides a quick and clean environment to work with. However, today when I was setting up a new machine I ran into a new error message.

fish: Unable to create a configuration directory for fish. Your personal settings will not be saved. Please set the $XDG_CONFIG_HOME variable to a directory where the current user has write access.

sQOrznY
sQOrznY

Simple to check:

  • echo $HOME — says/home/jdavis — which is right
  • echo $XDG_CONFIG_HOME — Blank
  • ls -la ~/.config — Ah, here’s the problem

Turns out I had run `fish` first as root, so the ~/.config/ folder and its sub folders were owned by root. A quick `chown -R jdavis.jdavis ~/.config/` fixed the issue. Just make sure you use your username rather than mine.

Linux Tags:chmod, chown, developer, fish, fish shell, linux, root

Post navigation

Previous Post: Yesterday was my last day at Okta
Next Post: Urban garden gets an overhaul

More Related Articles

Getting full quality Steam Deck game recording off the Deck Games
WordPress: Updates without FTP/SFTP WordPress
Does free knowledge require free software? Tech

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

July 2015
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Jun   Aug »

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme