Giter Site home page Giter Site logo

Comments (8)

faho avatar faho commented on June 20, 2024 1

That looks to me like it's $HOME/.config/fish, and that fish tries to use it to write its temporary files and it's not working. You should check the permissions on that directory (ls -ld ~/.config ~/.config/fish), and if it's not owned by your user chown it, or if it's just not writable chmod it.

from fish-shell.

nicdelillo-fitprime avatar nicdelillo-fitprime commented on June 20, 2024

Hi, thanks for the very quick reply. This solved the message error. But still the prompt and the functions/variable I have set in ~/ .config/fish/ they are not picked up. These were working on my other laptop. I restarted the terminal and tried also to exec fish --login without success

from fish-shell.

faho avatar faho commented on June 20, 2024

If the permissions for one directory got messed up, it's likely the permissions for files inside also got messed up. Check that the files all have the correct permissions and owner as well.

from fish-shell.

nicdelillo-fitprime avatar nicdelillo-fitprime commented on June 20, 2024

Yup Checked! Seems all goo

drwxr-xr-x  7 nicola.delillo  staff   224  4 May 08:38 .
drwxr-xr-x  3 root            staff    96  4 May 05:48 ..
drwxr-xr-x  2 nicola.delillo  staff    64  4 May 06:39 completions
drwxr-xr-x  2 nicola.delillo  staff    64  4 May 06:38 conf.d
-rw-r--r--  1 nicola.delillo  staff   424  4 May 05:50 config.fish
-rw-r--r--  1 nicola.delillo  staff  1578  4 May 08:38 fish_variables
drwxr-xr-x  5 nicola.delillo  staff   160  4 May 06:16 functions

and

drwxr-xr-x  5 nicola.delillo  staff   160  4 May 06:16 .
drwxr-xr-x  7 nicola.delillo  staff   224  4 May 08:38 ..
-rw-r--r--  1 nicola.delillo  staff    39  4 May 06:16 cdl.fish
-rw-r--r--  1 nicola.delillo  staff  3436  4 May 06:13 fish_pompt.fish
-rw-r--r--  1 nicola.delillo  staff   695  4 May 06:14 humanise_duration.fish

from fish-shell.

faho avatar faho commented on June 20, 2024

Other than that ~/.config is still owned by root - which is generally an issue but shouldn't cause problems reading these files, I think.

Run

set --show XDG_CONFIG_HOME fish_function_path

from fish-shell.

nicdelillo-fitprime avatar nicdelillo-fitprime commented on June 20, 2024

Ah right! I can change it if need.

set --show XDG_CONFIG_HOME fish_function_path
$fish_function_path: set in global scope, unexported, with 6 elements
$fish_function_path[1]: |/Users/nicola.delillo/.config/fish/functions|
$fish_function_path[2]: |/opt/homebrew/etc/fish/functions|
$fish_function_path[3]: |/Users/nicola.delillo/.local/share/fish/vendor_functions.d|
$fish_function_path[4]: |/opt/homebrew/Cellar/fish/3.7.1/share/fish/vendor_functions.d|
$fish_function_path[5]: |/opt/homebrew/share/fish/vendor_functions.d|
$fish_function_path[6]: |/opt/homebrew/Cellar/fish/3.7.1/share/fish/functions|

from fish-shell.

faho avatar faho commented on June 20, 2024

This includes "/Users/nicola.delillo/.config/fish/functions" as the first path, that means your cdl function or your fish_prompt should be picked up from there.

  • unless, of course, something in your config changes these after those functions are loaded.

from fish-shell.

nicdelillo-fitprime avatar nicdelillo-fitprime commented on June 20, 2024

So I have checked the cdl function and works. The only thing it does not work is the config. I will look into that since I just cp those files from another working fish machine. I'd say this issue is the solved!

from fish-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.