Is there a way I can do something like run myscript.sh in fish ?
I am using Arch Linux, and have installed the fish shell together with oh-my-fish
Can someone tell me which file I must edit to add my custom shell startup commands?
In zsh it was the ~/.zshrc
file. What is it in the fish shell?
I have a problem: if I put my stuff in bashrc it is not loaded by fish. If I enter bash commands in the fish file ~/.config/fish/config.fish
, it throws errors
Is there a way to get fish to load an "sh" file so that I can put all my bash things in that file?
run myscript.sh
in fish – Mr Mixin Jun 23 '15 at 10:22sh myscript.sh
(or use "bash" instead of "sh"). However if you are expecting that script to set environment variables for you, it won't: fish does not have the same syntax as sh. You have to rewrite all your bash settings, variables, functions, etc, into fish. It's not that hard. Read the fish docs, and ask specific questions here if you run into problems. – glenn jackman Jun 23 '15 at 13:15set -U fish_user_paths ~/.bin/ ~/.cargo/bin/ ...
– arve0 Jun 16 '19 at 18:09