So I tried to change the output of my terminal prompt but when I try something like /W it just puts the /W not the path. For example export PS1="/W $ "
turns my prompt into "/W $"
Terminal issue with export PS1=“”
terminal
Related Question
- MacOS – unable to set new command prompt for terminal
- Terminal commands not found:
- MacOS – Install Monokai Theme on Terminal with prompt colors, etc.
- Change terminal command prompt for root user in Sierra
- Executing commands in PS1 on macOS Sierra not working
- Copy paste string to terminal leave a dangling empty area appearance
- MacOS – how to change the command prompt to show current working directory
Best Answer
It needs to be
\W
, with a backslash.