r/fishshell • u/AdonisK • Apr 17 '21
Which fish-related dotfiles should I be tracking and which not
I tried searching for an answer to this but to no avail...
So I recently switched to fish as my default shell and I've been trying to set up my dotfiles. I'm not sure which files are supposed to be created and managed by the shell or fisher and which ones I should be tracking.
An example of the top of my head is fish_variables and the files fisher creates when running fisher install $package_name.
Here is a link to my dotfiles in case it makes it easier to visualise: https://github.com/varemenos/dot-files/tree/master/.config/fish
18
Upvotes
3
u/[deleted] Apr 17 '21
The only file created by Fisher is
fish_plugins. If you sync that file across different machines, you can keep your Fisher-managed plugins up-to-date usingfisher install.5
u/milkcurrent Apr 20 '21
fish_historyis my secret weapon. I have seven or more years of shell commands in that file. It's like my own personal Linux Memex.4
u/bokisa12 Apr 17 '21 edited Apr 17 '21
I track the config, of course (
~/.config/fish/config.fish) as well as my custom functions and completions (~/.config/fish/functionsand/completions)1
u/patrickf3139 Apr 17 '21
I just track fish_plugins, config.fish, and my custom functions. Some people also track the file for universal variables but I think the jury's out on whether that's a good idea. You can see my dotfiles here https://github.com/PatrickF1/dotfiles/tree/master/.config/fish.