From 49aaa0e1b901bedb82016fe6d16225ea4c46236a Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 25 Feb 2023 15:32:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna-git/postinstall.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hlna-git/postinstall.sh b/hlna-git/postinstall.sh index 8a49e7f..93c6c0b 100755 --- a/hlna-git/postinstall.sh +++ b/hlna-git/postinstall.sh @@ -1,15 +1,14 @@ #!/usr/bin/env bash if test -f ~/.zshrc; then -cd ~/ -echo 'alias hlna="hlna.py"' >> .zshrc -echo 'alias hlna-bot="hlna-bot.py"' >> .zshrc + +echo 'alias hlna="hlna.py"' >> ~/.zshrc +echo 'alias hlna-bot="hlna-bot.py"' >> ~/.zshrc elif test -f ~/.config/fish/config.fish; then -sed -i '$alias hlna="hlna.py"' ~/.config/fish/config.fish -sed -i '$alias hlna-bot="hlna-bot.py"' ~/.config/fish/config.fish -source ~/.config/fish/config.fish +echo 'alias hlna="hlna.py"' ~/.config/fish/config.fish +echo 'alias hlna-bot="hlna-bot.py"' ~/.config/fish/config.fish else cd ~/ -sed -i '$aalias hlna="hlna.py"' .bashrc -sed -i '$aalias hlna-bot="hlna-bot.py"' .bashrc +echo 'alias hlna="hlna.py"' .bashrc +echo 'alias hlna-bot="hlna-bot.py"' .bashrc source ~/.bashrc fi