bash-it
bash-it copied to clipboard
Add support for Solaris & Illumos etc. (*easy* fix, code suggestion within)
Solaris and Illumos use Bash as the default shell. However, currently bash-it
does not work as expected on them.
This can be fixed as described, tested, and confirmed here.
Here's what I suggest:
- In
install.sh
, check for$0STYPE
ofsolaris*
- If
$0STYPE
issolaris*
, then:- Backup
~/.profile
to~/.profile.bak
- Comment out all uncommented lines in
~/.profile
- Add the following lines to
~/.profile
:
- Backup
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
- Continue the rest of the
install.sh
as usual.
Great suggestion - please feel free to provide a PR for this!