Better install of fish
This commit is contained in:
parent
ef487389e5
commit
b91d29c4f0
|
@ -1,6 +1,9 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
sudo_package 'fish'
|
|
||||||
|
if ! command_exist fish ; then
|
||||||
|
sudo_package 'fish'
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d $HOME/.oh-my-fish ]; then
|
if [ ! -d $HOME/.oh-my-fish ]; then
|
||||||
curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish
|
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_path $HOME/.oh-my-fish' $FISH_CONFIG
|
||||||
add_line "set fish_custom $OMF_CUSTOM" $FISH_CONFIG
|
add_line "set fish_custom $OMF_CUSTOM" $FISH_CONFIG
|
||||||
add_line '. $fish_path/oh-my-fish.fish' $FISH_CONFIG
|
add_line '. $fish_path/oh-my-fish.fish' $FISH_CONFIG
|
||||||
|
|
||||||
|
fish -c 'omf install'
|
||||||
|
|
Loading…
Reference in New Issue