scriptfordummies/addalias.sh
2023-01-20 11:18:30 +01:00

8 lines
202 B
Bash

echo "Which command do you want to use as alias?"
read alias
echo "Which command should your alias execute?"
read command
echo "alias $alias='$command'" | tee -a ~/.bashrc
echo
echo Alias $alias added