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

[path] add option to use a short path instead of full relative #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theckman
Copy link

This change to the agnoster theme adds an option for using the name of
the current directory instead of a relative path. Assume you're in the
following directory: ~/projects/agnoster-zsh-theme. If you set
AGNOSTER_SHORT_PATH=1 in your .zshrc file, the path will render only
as agnoster-zsh-theme on the command line instead of
~/projects/agnoster-zsh-theme.

In the implementation of this option, another was added to give you even
more control if you want it (AGNOSTER_CURRENT_PATH). If
AGNOSTER_SHORT_PATH is unset and AGNOSTER_CURRENT_PATH is set, that
value will be used for the path value on the prompt.

This change to the `agnoster` theme adds an option for using the name of
the current directory instead of a relative path. Assume you're in the
following directory: `~/projects/agnoster-zsh-theme`. If you set
`AGNOSTER_SHORT_PATH=1` in your `.zshrc` file, the path will render only
as `agnoster-zsh-theme` on the command line instead of
`~/projects/agnoster-zsh-theme`.

In the implementation of this option, another was added to give you even
more control if you want it (`AGNOSTER_CURRENT_PATH`). If
`AGNOSTER_SHORT_PATH` is unset and `AGNOSTER_CURRENT_PATH` is set, that
value will be used for the path value on the prompt.
@apjanke
Copy link
Collaborator

apjanke commented Jan 3, 2020

If you're interested, I added this to my AgnosterJ fork.

apjanke/agnosterj-zsh-theme@e91e594

Screen Shot 2020-01-03 at 4 25 00 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants