Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: yrashk/kerl
base: 69841dea4f
...
head fork: yrashk/kerl
compare: 9cf83c965f
  • 3 commits
  • 1 file changed
  • 2 commit comments
  • 2 contributors
Commits on Jan 28, 2014
@jj1bdx jj1bdx Update kerl
* Let get_active_path to use $REBAR_PLT_DIR for the current active installation path
4142e67
@jj1bdx jj1bdx Update kerl
* Define $_KERL_ACTIVE_DIR when activating
* Use $_KERL_ACTIVE_DIR for `kerl status`
56035fd
Commits on Jan 31, 2014
@yrashk Merge pull request #60 from jj1bdx/jj1bdx-active-path-fix
Update kerl to use $_KERL_ACTIVE_DIR for get_active_path
9cf83c9
Showing with 7 additions and 2 deletions.
  1. +7 −2 kerl
View
9 kerl
@@ -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
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 "$_KERL_SAVED_PATH" ]; then
- echo $PATH | cut -d ":" -f 1 | sed 's/\(.*\)..../\1/'
+ if [ -n "$_KERL_ACTIVE_DIR" ]; then
+ echo $_KERL_ACTIVE_DIR
fi
return 0
}

Showing you all comments on commits in this comparison.

@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
@jj1bdx

:+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.

Something went wrong with that request. Please try again.