Compare commits

..

No commits in common. "9eee926c56837eacbed14a8bae2a9185bd25701b" and "5f2c5b58da52223803339676cec43c883a52a84f" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -70,8 +70,9 @@ char* trim(char* str) {
char* append(char* buffer, int count, ...) { char* append(char* buffer, int count, ...) {
va_list list; va_list list;
int i;
va_start(list, count); va_start(list, count);
for (int i = 0; i < count; i++) { for (i = 0; i < count; i++) {
strcat(buffer, va_arg(list, char*)); strcat(buffer, va_arg(list, char*));
} }
va_end(list); va_end(list);

View File

@ -100,8 +100,7 @@ fresh_compile_git_prompt() {
# --procelain` to greatly decrease the time taken to draw the prompt # --procelain` to greatly decrease the time taken to draw the prompt
[ ! -d ~/.cache/zsh ] && mkdir -p ~/.cache/zsh [ ! -d ~/.cache/zsh ] && mkdir -p ~/.cache/zsh
if [ ! -f ~/.cache/zsh/git-prompt ]; then if [ ! -f ~/.cache/zsh/git-prompt ]; then
cc -std=gnu99 -O3 -DNDEBUG -Wno-unused-result \ cc -std=gnu99 -O3 -DNDEBUG ~/.config/zsh/git-prompt.c -o ~/.cache/zsh/git-prompt
~/.config/zsh/git-prompt.c -o ~/.cache/zsh/git-prompt
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "git-prompt was not compiled, is a C99 toolchain installed?" echo "git-prompt was not compiled, is a C99 toolchain installed?"
fi fi