diff --git a/plugins/git/git-prompt.plugin.zsh b/plugins/git/git-prompt.plugin.zsh index 2871180d..6d674158 100644 --- a/plugins/git/git-prompt.plugin.zsh +++ b/plugins/git/git-prompt.plugin.zsh @@ -66,10 +66,10 @@ # https://github.com/git/git/blob/master/contrib/completion/git-completion.bash # -# _git_promt__git_dir accepts 0 or 1 arguments (i.e., location) +# _git_prompt__git_dir accepts 0 or 1 arguments (i.e., location) # echos the location of .git repo. # Useful for quickly figuring out if cwd is under a git repo. -_git_promt__git_dir () +_git_prompt__git_dir () { if [ -z "${1-}" ]; then if [ -d .git ]; then @@ -229,7 +229,7 @@ _git_prompt__rebase_info () fi local r="" - local g="$(_git_promt__git_dir)" + local g="$(_git_prompt__git_dir)" if [ -n "$g" ]; then if [ -f "$g/rebase-merge/interactive" ]; then r="|REBASE-i" @@ -276,7 +276,7 @@ _git_prompt__branch () fi local b="" - local g="$(_git_promt__git_dir)" + local g="$(_git_prompt__git_dir)" if [ -n "$g" ]; then if [ -f "$g/rebase-merge/interactive" ]; then b="$(cat "$g/rebase-merge/head-name")" @@ -421,7 +421,7 @@ _git_prompt__dirty_state () return fi - local g="$(_git_promt__git_dir)" + local g="$(_git_prompt__git_dir)" if [ -z "$g" ]; then return fi diff --git a/themes/ashleydev.zsh-theme b/themes/ashleydev.zsh-theme index 2cd37341..5fcd132e 100644 --- a/themes/ashleydev.zsh-theme +++ b/themes/ashleydev.zsh-theme @@ -57,7 +57,7 @@ local __GIT_PROMPT_INFO='' # will set __GIT_PROMPT_INFO update__GIT_PROMPT_INFO () { - local g="$(_git_promt__git_dir)" + local g="$(_git_prompt__git_dir)" if [ -z "$g" ]; then __GIT_PROMPT_INFO='' return