diff --git a/hlna-git/postinstall.sh b/hlna-git/postinstall.sh index 1329681..a7b0158 100755 --- a/hlna-git/postinstall.sh +++ b/hlna-git/postinstall.sh @@ -1,15 +1,14 @@ - if test -f /home/$SUDO_USER/.zshrc; then echo "zshrc" echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.zshrc echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.zshrc -elif test -f /home/$SUDO_USER/.config/fish/config.fish; then -echo "fish" +fi +if test -f /home/$SUDO_USER/.config/fish/config.fish; then echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.config/fish/config.fish echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.config/fish/config.fish -else -echo "bash" -echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.bashrc -echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.bashrc -source /home/$SUDO_USER/.bashrc fi +if test -f /home/$SUDO_USER/.bashrc; then +echo 'alias hlna="hlna.py"'>>/home/$SUDO_USER/.bashrc +echo 'alias hlna-bot="hlna-bot.py"'>>/home/$SUDO_USER/.bashrsc +source /home/$SUDO_USER/.bashrc +fi \ No newline at end of file