Add example of string manipulation to prompt_pwd

This commit is contained in:
JJ
2025-07-28 19:54:21 -07:00
parent db0f9c1d53
commit 17e0f3d96f

View File

@@ -55,3 +55,9 @@ Examples
>_ prompt_pwd --full-length-dirs=2 --dir-length=1
/t/b/s/with/mustard
>_ echo (prompt_pwd | string split /)[-1]
mustard
>_ echo (string join / (prompt_pwd | string split /)[-3..-1])
s/with/mustard