116

I am looking for the equivalent of source .bashrc for Fish.

Barett
  • 5,826
  • 6
  • 51
  • 55
Paul Wenzel
  • 1,886
  • 2
  • 15
  • 15

1 Answers1

166

Use

source ~/.config/fish/config.fish

Or, if your fish is older than 2.1 (See fish#310)

. ~/.config/fish/config.fish

Then it will be sourced again, so depending on what you have in there it will be reloaded. For example appending to a universal variable would add more entries.

Manuel Araoz
  • 15,962
  • 24
  • 71
  • 95
terje
  • 4,164
  • 2
  • 28
  • 28
  • 5
    This now depricated. https://github.com/fish-shell/fish-shell/issues/310 in fish 3 is gone. Also can you might add `~``to the command line – Azd325 Feb 13 '15 at 19:23
  • 6
    Thanks @Azd325 for the comment - but wasn't clear what was deprecated! ;) Looking at the link - `.` is deprecated. `source` is still valid. – neowulf33 Jul 21 '16 at 22:45
  • 14
    My new personally favorite method, assuming Oh My Fish is installed, is `omf reload`. – Paul Wenzel Aug 07 '17 at 19:29
  • 3
    Using `omf reload` will also append more entries to a universal variable (as with source `~/.config/fish/config.fish` or running `fish` again. – Wouter Dec 12 '17 at 23:11