Skip to content

Commit

Permalink
chore: add bash_profile fallback for bash (spicetify#1583)
Browse files Browse the repository at this point in the history
* chore: add bash_profile fallback for bash

* applied suggested changes

Co-authored-by: wael444 <[email protected]>

* revert part of the suggested changes

Co-authored-by: wael444 <[email protected]>
  • Loading branch information
afonsojramos and apprehensions authored Apr 12, 2022
1 parent 91f95e4 commit 49f1580
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ check() {
if [ -f $shellrc ]; then
if ! grep -q $spicetify_install $shellrc; then
echo "APPENDING $spicetify_install to PATH in $shellrc"
echo ${2:-$path} >> $shellrc
echo ${2:-$path} >> $shellrc
echo "Restart your shell to have spicetify in your PATH."
else
echo "spicetify path already set in $shellrc, continuing..."
Expand All @@ -80,7 +80,10 @@ check() {

case $SHELL in
*zsh) check ".zshrc" ;;
*bash) check ".bashrc" ;;
*bash)
[ -f "$HOME/.bashrc" ] && check ".bashrc"
[ -f "$HOME/.bash_profile" ] && check ".bash_profile"
;;
*fish) check ".config/fish/config.fish" "fish_add_path $spicetify_install" ;;
*) notfound ;;
esac
Expand Down

0 comments on commit 49f1580

Please sign in to comment.