From d6ad7ba856d8722192cd14fc4e6f8877f5e03608 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 20 Mar 2013 19:59:17 -0400 Subject: [PATCH] Refactor func names for consistency's sake --- zsh/prompt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsh/prompt b/zsh/prompt index 47331373..cc4432cf 100644 --- a/zsh/prompt +++ b/zsh/prompt @@ -1,12 +1,12 @@ #!/bin/bash -function short_pwd() { +prompt_pwd() { SHORTPWD=`print -Pn "%4~"` [[ "${SHORT_PWD:0:1}" =~ "[^/~]" ]] && SHORT_PWD=".../$SHORT_PWD" echo -n $SHORTPWD } -function git_prompt() { +prompt_git() { if [ "`git_prompt_info`" ]; then echo -n "$(git_prompt_info)" fi @@ -39,10 +39,10 @@ prompt() { rprompt() { # Make the rprompt a bright grey to set it apart echo -n "%{$FG[245]%}" - echo -n '$(short_pwd)' + echo -n '$(prompt_pwd)' # Show the branch/status if in a git repo - echo -n '$(git_prompt)' + echo -n '$(prompt_git)' # Reset formatting for command output echo -n "%{$reset_color%}"