1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00
server-dotfiles/install.fish
2020-02-19 12:32:46 +01:00

26 lines
713 B
Fish
Executable File

#!/usr/bin/env fish
function install_omf_package_if_not_exist
if test (omf list | grep -c "$argv") -eq 0
omf install "$argv"
end
end
# Install oh-my-fish if it isn't installed
if [ ! -d ~/.local/share/omf ]
curl -L https://get.oh-my.fish | fish
end
# Install oh-my-fish plugins
install_omf_package_if_not_exist bobthefish
install_omf_package_if_not_exist colored-man-pages
install_omf_package_if_not_exist extract
install_omf_package_if_not_exist fzf
install_omf_package_if_not_exist gi
install_omf_package_if_not_exist git-flow
install_omf_package_if_not_exist sudope
install_omf_package_if_not_exist wttr
# Update fish completions (auto generated from man pages)
fish_update_completions