Skip to content

Commit

Permalink
Restore upstream set_git_prompt_dir
Browse files Browse the repository at this point in the history
This function was renamed upstream, but the rename was clobbered during rebase.
  • Loading branch information
MPLew-is authored and guenhter committed Feb 21, 2023
1 parent fe5487a commit d163b64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gitprompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ function async_run_zsh() {
}


function git_prompt_dir() {
# assume the gitstatus.sh is in the same directory as this script
function set_git_prompt_dir() {
# code thanks to http://stackoverflow.com/questions/59895
if [ -z "$__GIT_PROMPT_DIR" ]; then
__GIT_PROMPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand Down

0 comments on commit d163b64

Please sign in to comment.