3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 18592
/ 1 Year ago, thu, march 9, 2023, 5:24:35
I am unable to source my ~/.profile
using a bash script.
I tried:
source ~/.profile
By the way this is the script I am using
#!/bin/bash
echo Enter the shortcut, or alias, you want to use:
read SHORTTEXT
echo Now enter what text you want it to replace:
read LONGTEXT
echo "alias $SHORTTEXT='$LONGTEXT'" >> ~/.profile
echo "alias $SHORTTEXT='$LONGTEXT' was added to your profile.The alias will work after logoff/on"
More From » 12.04