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

lib: provide a prompt function for the dirstack #376

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

Commits on Jan 13, 2023

  1. lib: provide a prompt function for the dirstack

    Providing this additional function for prompts allows anyone using
    pushd/popd/dirs to navigate directory trees to quickly view their
    stack and find which entry they want to switch to.
    
    This degrades gracefully for anyone not using the directory stack since
    dirs will always display the same as \w when the stack is only one entry
    deep.
    
    Setting DIRSTACK_EXPAND_TILDE to true in the environment will display
    the directory stack with ~ expanded to the full path of the user's home
    directory.
    
    Setting DIRSTACK_LIMIT to any value greater than 0 will limit the
    display to that number of entries, though the directory stack will still
    contain all entries in it.
    
    The bakke theme has been tweaked to use the new function as an example.
    
    Signed-off-by: Joe MacDonald <[email protected]>
    jjmcdn committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    944e440 View commit details
    Browse the repository at this point in the history