I have created a simple script to setup an alias on an ESXi 6.7 host:
#!/bin/sh
alias ll="ls -la"
echo "Profile done"
When I run the script I see the echo'd message on screen, but the alias is not set. But if I execute the alias command from a command prompt it works fine.
Can someone explain how to setup an alias from a script?