Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the Dir car to just show first letter of directory for non-current directory #36

Closed
raguay opened this issue Aug 5, 2019 · 4 comments

Comments

@raguay
Copy link

raguay commented Aug 5, 2019

Hi,

I'm really liking this version of prompt, but I'd like to have the feature I use in oh-my-zsh prompt: every directory before the current directory just shows the first letter and the current directory is the full name. That way my path will not be so long. I looked through the docs, but I don't see a way to set this with the Dir car config.

@raguay raguay changed the title Get the Dir car to just show fir letter of directory for non-current directory Get the Dir car to just show first letter of directory for non-current directory Aug 5, 2019
@jtyr
Copy link
Owner

jtyr commented Aug 5, 2019

Thanks for opening this issue, @raguay. It shouldn't be that difficult to implement this. I will look into it tonight.

@jtyr
Copy link
Owner

jtyr commented Aug 5, 2019

I have added the requested feature. Please compile GBT from master branch like this (assuming you got Golang installed):

mkdir ~/go
export GOPATH="$HOME/go"
export PATH="$HOME/go/bin:$PATH"
go install github.com/jtyr/gbt/cmd/gbt

Then you can activate the new feature like this:

export GBT_CAR_DIR_DEPTH='3'
export GBT_CAR_DIR_NONCURLEN='1'

@raguay
Copy link
Author

raguay commented Aug 6, 2019 via email

@jtyr
Copy link
Owner

jtyr commented Aug 6, 2019

Thanks for the confirmation. The change will be included in the next release.

@jtyr jtyr closed this as completed Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants