diff --git a/recipes/default/fish b/recipes/default/fish index be8af8f..5ef7da1 100644 --- a/recipes/default/fish +++ b/recipes/default/fish @@ -1,6 +1,9 @@ #! /bin/bash -sudo_package 'fish' + +if ! command_exist fish ; then + sudo_package 'fish' +fi if [ ! -d $HOME/.oh-my-fish ]; then curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish @@ -16,3 +19,5 @@ fi add_line 'set fish_path $HOME/.oh-my-fish' $FISH_CONFIG add_line "set fish_custom $OMF_CUSTOM" $FISH_CONFIG add_line '. $fish_path/oh-my-fish.fish' $FISH_CONFIG + +fish -c 'omf install'