Closed FredrikNoren closed 11 years ago
@sorin-ionescu I've been looking at this an I'm not sure why it occurs. Which version of git are you running?
I am using v1.8.4.
@sorin-ionescu can you run git diff HEAD -- name_of_the_file_youre_trying_to_diff
and paste the output here? It looks like it some kind of irregular diff output that the parser isn't anticipating
diff --git i/zlogin w/zlogin
index e48ab66..32f28cf 100644
--- i/zlogin
+++ w/zlogin
@@ -9,21 +9,14 @@
{
# Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
- if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then
+ if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi
-
- # Set environment variables for launchd processes.
- if [[ "$OSTYPE" == darwin* ]]; then
- for env_var in PATH MANPATH; do
- launchctl setenv "$env_var" "${(P)env_var}"
- done
- fi
} &!
# Print a random, hopefully interesting, adage.
-# if (( $+commands[fortune] )); then
-# fortune -a
-# print
-# fi
+if (( $+commands[fortune] )); then
+ fortune -a
+ print
+fi
Thanks! I've made a fix, hope that resolves your problems
@sorin-ionescu reported this in #125 :
I can report something similar.