Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy fish support guide #510

Closed
jorgebucaran opened this issue Jan 12, 2019 · 0 comments
Closed

Legacy fish support guide #510

jorgebucaran opened this issue Jan 12, 2019 · 0 comments
Labels
docs Docs and not so docs

Comments

@jorgebucaran
Copy link
Owner

jorgebucaran commented Jan 12, 2019

Stuck in legacy fish <=2.2 and can't upgrade your shell? Got you covered. 💯

If you are running fish 2.0 you'll need source. So, create a new file source.fish and put it in your fish functions directory.

function source
    . $argv
end

If you are running fish 2.1 or 2.2 you can skip the previous step. Now, open your fish configuration file (~/.config/fish/config.fish) and add this code to the beginning of the file.

set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
for file in $XDG_CONFIG_HOME/fish/conf.d/*.fish
    source $file 2>/dev/null
end

That will run configuration snippets manually on shell startup. See fish-shell/fish-shell#2498 to learn more about configuration snippets

That's it—happy fishing!

Notes

  • Please consider upgrading to the latest fish.
  • If XDG_CONFIG_HOME is defined on your system, use $XDG_CONFIG_HOME/fish/config.fish to access your fish configuration.
@jorgebucaran jorgebucaran added the docs Docs and not so docs label Jan 12, 2019
Repository owner locked as resolved and limited conversation to collaborators Jan 12, 2019
@jorgebucaran jorgebucaran pinned this issue Jan 12, 2019
@jorgebucaran jorgebucaran unpinned this issue Jan 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs Docs and not so docs
Projects
None yet
Development

No branches or pull requests

1 participant