Open hbjydev opened 4 years ago
(with regards to the git repo one: git rev-parse --show-toplevel
will get the absolute path to the root of the current repository)
At the moment you can set
TRUELINE_WORKING_DIR_ABBREVIATE_PARENT_DIRS=true
TRUELINE_WORKING_DIR_ABBREVIATE_PARENT_DIRS_LENGTH=1
to get ~ > W > git-repo
. I think that having some indication of the full path (even as minimal as a single letter) is generally useful.
Yes, it is, but it would also be useful (for smaller terminals open alongside an editor on a laptop, for instance) to have a basename-based working_dir as well
Ok. I might consider adding it. Feel free to send a PR in the meantime.
If I get the chance, I will. My Bash skills aren't that good though, haha
Then instead of
~ > Workspace > git-repo
we could just havegit-repo
.Perhaps allow just having this when you're in a git repo? So it's relative to the repo root?