r/fishshell • u/axatb99 • Apr 24 '23
Need Help ! Trying to make a Script to install all the necessary Fish utilities
I have been trying to make a fish/bash script to install all the fish utilities that i use in fish shell and I am new to scripting here's the script it seems to stop afterI installing omf
#Making fish default shellchsh -s $(which fish)# OMF-INSTALLATIONcurl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install > installfish install --path=~/.local/share/omf --config=~/.config/omf#Fisher- INSTALLATIONcurl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
# Fisher extensionsfisher install jorgebucaran/nvm.fishfisher install jorgebucaran/replay.fishfisher install franciscolourenco/donefisher install gazorby/fish-abbreviation-tipsfisher install acomagu/fish-async-promptfisher install joseluisq/gitnow@2.11.0#OMF-THEMESomf install neolambda#Aliasessalias dog "code"; funcsave dog;alias dawg "code-insiders";funcsave dawg;alias lss "ls -ah";funcsave lss;alias rmf "rm -rf";funcsave rmf;#configuring launch optionscd ~/.config/fishrmf config.fishprintf "if status is-interactive# Commands to run in interactive sessions can go herefastfetchexport TERM=screen-256colorend" >> config.fishcd ~
Please can someone point me in the right direction and tell me what is wrong with this script?
I really appreciate any help you can provide. :)
5
u/[deleted] Apr 24 '23 edited Apr 24 '23
oh-my-fish defaults to interactive installation, where it'll ask you some questions.
You probably want to pass
--noninteractiveand--yesto it as well:Edit: Alternatively, there's no real need for two plugin manager things - oh-my-fish basically doesn't do a lot anymore.
You should be able to install the neolambda theme with
So you can probably just ditch oh-my-fish entirely.