Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update kerl

* Define $_KERL_ACTIVE_DIR when activating
* Use $_KERL_ACTIVE_DIR for `kerl status`
  • Loading branch information...
commit 56035fd958f0284123c707145eaa32302227c988 1 parent 4142e67
Kenji Rikitake jj1bdx authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 kerl
9 kerl
View
@@ -447,6 +447,9 @@ kerl_deactivate()
export REBAR_PLT_DIR
unset _KERL_SAVED_REBAR_PLT_DIR
fi
+ if [ -n "\$_KERL_ACTIVE_DIR" ]; then
+ unset _KERL_ACTIVE_DIR
+ fi
Joseph Wayne Norton
norton added a note

FYI. There is a trailing whitespace on line 452.

Enabling this git config for diff works well for manually spotting such whitespace issues.

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold
        whitespace = red reverse
Kenji Rikitake
jj1bdx added a note

:+1: for the fix. Thanks for the tips. I think my git has already been configured for it, though I often forget to erase the trailing whitespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
if [ -n "\$_KERL_SAVED_PS1" ]; then
PS1="\$_KERL_SAVED_PS1"
export PS1
@@ -471,6 +474,8 @@ MANPATH="\${_KERL_MANPATH_REMOVABLE}:\$MANPATH"
export MANPATH _KERL_MANPATH_REMOVABLE
REBAR_PLT_DIR="$absdir"
export REBAR_PLT_DIR
+_KERL_ACTIVE_DIR="$absdir"
+export _KERL_ACTIVE_DIR
if [ -f "$KERL_CONFIG" ]; then . "$KERL_CONFIG"; fi
if [ -n "\$KERL_ENABLE_PROMPT" ]; then
_KERL_SAVED_PS1="\$PS1"
@@ -645,8 +650,8 @@ update_usage()
get_active_path()
{
- if [ -n "$REBAR_PLT_DIR" ]; then
- echo $REBAR_PLT_DIR
+ if [ -n "$_KERL_ACTIVE_DIR" ]; then
+ echo $_KERL_ACTIVE_DIR
fi
return 0
}
Joseph Wayne Norton

FYI. There is a trailing whitespace on line 452.

Enabling this git config for diff works well for manually spotting such whitespace issues.

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold
        whitespace = red reverse
Kenji Rikitake

:+1: for the fix. Thanks for the tips. I think my git has already been configured for it, though I often forget to erase the trailing whitespaces.

Please sign in to comment.
Something went wrong with that request. Please try again.