From afbaba157411108a1fe346269657dbd414ca8c94 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 25 Feb 2023 14:27:46 +0300 Subject: [PATCH] f --- hlna-git/postinstall.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/hlna-git/postinstall.sh b/hlna-git/postinstall.sh index 2957f66..e01333a 100755 --- a/hlna-git/postinstall.sh +++ b/hlna-git/postinstall.sh @@ -1,14 +1,4 @@ #!/usr/bin/env bash -if test -f ~/.zshrc; then -sed -i -f '$aalias hlna="hlna.py"' ~/.zshrc -sed -i -f '$aalias hlna-bot="hlna-bot.py"' ~/.zshrc -source ~/.zshrc -elif test -f ~/.config/fish/config.fish; then -sed -i -f '$alias hlna="hlna.py"' ~/.config/fish/config.fish -sed -i -f '$alias hlna-bot="hlna-bot.py"' ~/.config/fish/config.fish -source ~/.config/fish/config.fish -else -sed -i -f '$aalias hlna="hlna.py"' ~/.bashrc -sed -i -f '$aalias hlna-bot="hlna-bot.py"' ~/.bashrc -source ~/.bashrc -fi +sed -i -e '$aalias hlna="hlna.py"' ~/.bashrc +sed -i -e '$aalias hlna-bot="hlna-bot.py"' ~/.bashrc +source ~/.bashrc \ No newline at end of file