15 lines
439 B
Bash
Executable File
15 lines
439 B
Bash
Executable File
if test -f ~/.zshrc; then
|
|
cd ~/
|
|
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
|
|
else
|
|
cd ~/
|
|
sed -i '$aalias hlna="hlna.py"' .bashrc
|
|
sed -i '$aalias hlna-bot="hlna-bot.py"' .bashrc
|
|
source ~/.bashrc
|
|
fi
|