postinstall

This commit is contained in:
2023-02-25 13:46:51 +03:00
parent b428ee9331
commit 62f6632c26
2 changed files with 20 additions and 15 deletions

16
hlna-git/postinstall.sh Normal file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
if [-e $HOME/.zshrc]
then
echo 'alias hlna="hlna.py"' >> $HOME/.zshrc
echo 'alias hlna-bot="hlna-bot.py"' >> $HOME/.zshrc
source ~/.zshrc
elif [-e $HOME/.config/fish/config.fish]
then
echo 'alias hlna="hlna.py"' >> $HOME/.config/fish/config.fish
echo 'alias hlna-bot="hlna-bot.py"' >> $HOME/.config/fish/config.fish
source ~/.config/fish/config.fish
else
echo 'alias hlna="hlna.py"' >> $HOME/.bashrc
echo 'alias hlna-bot="hlna-bot.py"' >> $HOME/.bashrc
source ~/.bashrc
fi