No description provided.
@mike-burns I tried changed changing the ~ on line 20 of zlogin to use basename pwd a few different ways but was seeing some weird behavior. Any hints? Having a hard time reading that line, too. Would be cool to break it apart into named pieces if possible.
The ~ is actually %~. According to the zsh prompt expansion documentation, you want %1~ to get the basename.
Also, you cannot use ' around PS1. In general, you want to use " around your shell variables.
Niiiice. Thanks, Mike. $1~ worked beautifully. Thanks for the zsh prompt expansion documentation.
I think the inner " is why the ' is being used. Switching the outer to " and inner to ' resulted in a funky effect.
[#41] Use basename $PWD in shell prompt