2016-02-12 01:17:28 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
if [ ! -d "$fisher_home" ]; then
|
|
|
|
curl -L install.fisherman.sh | fish
|
|
|
|
fi
|
|
|
|
|
2016-02-12 02:35:43 +00:00
|
|
|
rm -fr "$XDG_CONFIG_HOME/fisherman"
|
|
|
|
try_link "${DEFAULT_ASSETS_PATH}/fisherman" "$XDG_CONFIG_HOME/fisherman"
|
2016-02-12 01:17:28 +00:00
|
|
|
|
2016-02-12 02:35:43 +00:00
|
|
|
add_line "source_config paths" $XDG_CONFIG_HOME/fish/config.fish
|
|
|
|
add_line "source_config alias" $XDG_CONFIG_HOME/fish/config.fish
|
2016-02-12 01:17:28 +00:00
|
|
|
|
|
|
|
# Link functions
|
|
|
|
for func in ${DEFAULT_ASSETS_PATH}/fish/functions/*.fish; do
|
2016-02-12 02:35:43 +00:00
|
|
|
try_link "$func" $XDG_CONFIG_HOME/fish/functions/$(basename $func)
|
2016-02-12 01:17:28 +00:00
|
|
|
done
|