Hi. I haven't found any other place where to ask so I try here. I am creating install script to duplicate my personal environment to another computer and I am trying to install fish and oh-my-fish as part of that script. When I simply use install command for oh-my-fish, the script exits because omf is opening new session. I tried to enclose it inside sh -c "$(...)" but is seems that it still opens that session inside that command and sh -c never finishes. Have somebody tried something like that or do you have any advice?
Videos
Hi,
I wanted to put the installation commands for oh-my-fish into a bash script so that whenever I move to a new system, I can just run the script which will do the system configuration (including handling my dotfiles) for me. So, whenever, I run,
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install > install fish install --path=~/.local/share/omf --config=~/.config/omf
as mentioned, in the README.md on the oh-my-fish GitHub repository, it drops me into the fish shell, due to which the bash script can't proceed. Ideally, I expect the bash script to install oh-my-fish, then install the robbyrussell theme, exit out of the fish shell, and continue. So could someone suggest a way of doing this?
Thanks
I am one of the contributors of Oh My Fish.
I highly recommend you upgrading from previous version by doing a clean install. Please follow the upgrade instructions present on Oh My Fish repository's README file.
After a clean install it's just a matter of issuing an omf install bobthefish and you will be into the theme.
If you still need help feel free to join our Slack and raise your voice!
If you are still using an older version of oh-my-fish, you have to use " around the theme name.
For newer version, you can follow the recommended upgrade path that oh-my-fish provides:
- BACKUP ALL YOUR CUSTOM STUFF
mv ~/.config/fish/config{,_old}.fishrm -rf ~/.oh-my-fish- Do a clean Oh My Fish install
- Copy all lines starting with
PluginandThemefrom~/.config/fish/config_old.fish - Paste them it into
$OMF_CONFIG/bundlefile. If it doesn't exist, create it - Convert all
Plugin "name"lines topackage name - Convert all
Theme "name"lines totheme name omf install
So, to sum up, if you want to install a theme with this newer version, you need to put theme bobthefish in your ~/.config/omf/bundle file.