Better install of fish

This commit is contained in:
ViViDboarder 2015-06-05 11:21:15 -07:00
parent ef487389e5
commit b91d29c4f0

View File

@ -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'