scriptfordummies/addalias.sh

8 lines
202 B
Bash
Raw Normal View History

2023-01-20 11:05:52 +01:00
echo "Which command do you want to use as alias?"
read alias
echo "Which command should your alias execute?"
read command
2023-01-20 11:18:30 +01:00
echo "alias $alias='$command'" | tee -a ~/.bashrc
echo
2023-01-20 11:05:52 +01:00
echo Alias $alias added