Skip to content

Commit

Permalink
feat: change fish prompt to starship
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Robinson committed Jun 19, 2020
1 parent 619759f commit a65bfee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions configuration/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ set -x ANDROID_HOME /Users/michaelrobinson/Library/Android/sdk
set -x FZF_DEFAULT_COMMAND 'ag -p ~/.gitignore -g ""'
# set -x FZF_DEFAULT_COMMAND = 'ag --ignore node_modules -g ""'

starship init fish | source

2 changes: 1 addition & 1 deletion configuration/fishfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ fishpkg/fish-humanize-duration
# Themes
# daveyarwood/tomita
# rafaelrinaldi/pure
faceleg/simple:master
# faceleg/simple:master
# simple
15 changes: 7 additions & 8 deletions installers/fish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ else
git clone https://github.com/chriskempson/base16-shell.git $BASE16
fi

#printf "\nInstall hub check"
#if command -v hub >/dev/null 2>&1; then
# curl https://raw.githubusercontent.com/github/hub/master/etc/hub.fish_completion > ~/.config/fish/completions/hub.fish
#else
# printf "\nhub command does not exist, install before continuing \n\nbrew install hub"
# exit 1
#fi

printf "\nInstall starship check"
if command -v starship >/dev/null 2>&1; then
printf "\nStarship is installed"
else
curl -fsSL https://starship.rs/install.sh | bash
fi

printf "\nReplacing fish.config\n"
rm -fv ~/.config/fish.config
mkdir -p ~/.config/fish
$CP "$DIR/../configuration/fishfile" ~/.config/fish/fishfile
$CP "$DIR/../configuration/config.fish" ~/.config/fish/config.fish
$CP "$DIR/../configuration/logo.txt" ~/.config/fish/logo.txt

0 comments on commit a65bfee

Please sign in to comment.