customizing the Oh My Posh terminal path to show only the last three folders (maximum depth of 3) #6243
Unanswered
cnjackhu
asked this question in
Troubleshoot
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue: Customizing Oh My Posh to Show Only the Last 3 Folders in Terminal Path
Description
I am using Oh My Posh to customize my terminal prompt on a Linux system (KAUST Ibex HPC cluster), and I want to configure the prompt to show only the last three folders in the path (e.g., for a path like
/home/user/projects/code/src
, the prompt should displayprojects/code/src
). However, I’m encountering issues with the configuration, and I’d like guidance on how to achieve this correctly.Environment
Problem
I want to customize my Oh My Posh prompt to:
Show only the last three folders in the current path (e.g.,
/home/user/projects/code/src
should displayprojects/code/src
).Beta Was this translation helpful? Give feedback.
All reactions