15 lines
491 B
Bash
Executable File
15 lines
491 B
Bash
Executable File
#!/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
|