а
This commit is contained in:
parent
c9dff60491
commit
49aaa0e1b9
@ -1,15 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if test -f ~/.zshrc; then
|
if test -f ~/.zshrc; then
|
||||||
cd ~/
|
|
||||||
echo 'alias hlna="hlna.py"' >> .zshrc
|
echo 'alias hlna="hlna.py"' >> ~/.zshrc
|
||||||
echo 'alias hlna-bot="hlna-bot.py"' >> .zshrc
|
echo 'alias hlna-bot="hlna-bot.py"' >> ~/.zshrc
|
||||||
elif test -f ~/.config/fish/config.fish; then
|
elif test -f ~/.config/fish/config.fish; then
|
||||||
sed -i '$alias hlna="hlna.py"' ~/.config/fish/config.fish
|
echo 'alias hlna="hlna.py"' ~/.config/fish/config.fish
|
||||||
sed -i '$alias hlna-bot="hlna-bot.py"' ~/.config/fish/config.fish
|
echo 'alias hlna-bot="hlna-bot.py"' ~/.config/fish/config.fish
|
||||||
source ~/.config/fish/config.fish
|
|
||||||
else
|
else
|
||||||
cd ~/
|
cd ~/
|
||||||
sed -i '$aalias hlna="hlna.py"' .bashrc
|
echo 'alias hlna="hlna.py"' .bashrc
|
||||||
sed -i '$aalias hlna-bot="hlna-bot.py"' .bashrc
|
echo 'alias hlna-bot="hlna-bot.py"' .bashrc
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user