shoestrap/recipes/default/fish

24 lines
525 B
Plaintext
Raw Normal View History

2015-06-03 20:53:20 +00:00
#! /bin/bash
2015-06-05 18:21:15 +00:00
if ! command_exist fish ; then
sudo_package 'fish'
fi
2015-06-03 20:53:20 +00:00
if [ ! -d $HOME/.oh-my-fish ]; then
curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish
fi
OMF_CUSTOM=$DEFAULT_ASSETS_PATH/custom
FISH_CONFIG=$HOME/.config/fish/config.fish
if [ ! -f $FISH_CONFIG ]; then
touch $FISH_CONFIG
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
2015-06-05 18:21:15 +00:00
fish -c 'omf install'