scriptfordummies/addalias.sh
2023-01-20 11:06:44 +01:00

7 lines
189 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="$command" | tee -a ~/.bashrc
echo Alias $alias added