Updated: April 19, 2023 |
Here's an example of a profile that ksh runs if you set the ENV environment variable as described above for .profile:
alias rm="rm -i" alias ll="ls -l" export PS1='$(pwd) $ '
This profile does the following:
Note that you should use single quotes instead of double quotes around the string. If you specify:
export PS1="$(pwd) $ "
the pwd command is evaluated right away because double quotes permit command substitution; when you change directories, the prompt doesn't change.