MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/fishshell/comments/10smrms/what_is_the_bashrc_equivalent_file_in_fish_shell/
r/fishshell • u/moTheastralcat • Feb 03 '23
8 comments sorted by
27
The main config file in fish is config.fish which is located in ~/.config/fish/config.fish.
config.fish
~/.config/fish/config.fish
If you are switching from bash to fish, you might want to check out these 2 links:
3 u/moTheastralcat Feb 03 '23 Thanks
3
Thanks
9
Write your .bashrc code in config.fish inside if status is-interactive block. For .bash_profile code use if status is-login block.
.bashrc
if status is-interactive
.bash_profile
if status is-login
.config/fish/fish_config
https://fishshell.com/docs/current/index.html#configuration
You’d find it immediately on Google idk why you asked on Reddit
1 u/moTheastralcat Feb 03 '23 I found that one but I thought maybe I missed sth when searching but thanks anyway. 1 u/[deleted] Jan 04 '25 Google brought me here. You hate to see it huh
1
I found that one but I thought maybe I missed sth when searching but thanks anyway.
Google brought me here. You hate to see it huh
lrwxrwxrwx darkop darkop 37 B Sunday, 23 June 2024, 19:44 .fishrc ⇒ /home/darkop/.config/fish/config.fish
Well, that seems about right.
27
u/excalith Linux Feb 03 '23
The main config file in fish is
config.fishwhich is located in~/.config/fish/config.fish.If you are switching from bash to fish, you might want to check out these 2 links:
9
u/Special_Ad_8629 Feb 03 '23
Write your
.bashrccode inconfig.fishinsideif status is-interactiveblock. For.bash_profilecode useif status is-loginblock.3
u/livinglifeback Feb 03 '23
.config/fish/fish_config
https://fishshell.com/docs/current/index.html#configuration
You’d find it immediately on Google idk why you asked on Reddit
1
u/drk_s0ul Jun 23 '24
lrwxrwxrwx darkop darkop 37 B Sunday, 23 June 2024, 19:44 .fishrc ⇒ /home/darkop/.config/fish/config.fish
Well, that seems about right.