My buddy finally made me start using Fish Shell, and I'm trying to set it up just like I had Bash. In PS1 PS1Set my current directory followed >. This, however, was not an absolute path (for example, /Users/me/Documents/...or ~/Documents/...). If I were in /Users/me/Documents/projects/Go/project1/, a hint would just say project1 >.
Is there an alternative "Shell" to replace \Wfor Bash? Again, I just need the folder I'm in, not the full path. I know that you can use echo (pwd)for all this.
I looked through the program basenameand echo "${PWD##*/}", but they only work in Bash.
source
share