Skip to content

Commit

Permalink
zsh/zshrc.d/040_prompt: add a more portable source checker
Browse files Browse the repository at this point in the history
`$HOME` went from `/Users/jlamb` to `/home/jlamb`.
  • Loading branch information
jonnylamb committed Jan 25, 2019
1 parent bb4b23f commit ca02057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zsh/zshrc.d/040_prompt
Expand Up @@ -85,7 +85,8 @@ prompt_context() {

_is_expensive_repo() {
toplevel=$(git rev-parse --show-toplevel 2>/dev/null)
test "$toplevel" = "/Users/jlamb/workspace/source"
# ugly but fast, hoepfully?
echo $toplevel | grep "/source$" >/dev/null
}

# fast and super ugly git command(s)
Expand Down

0 comments on commit ca02057

Please sign in to comment.