Compare commits
2 Commits
5f2c5b58da
...
9eee926c56
Author | SHA1 | Date | |
---|---|---|---|
9eee926c56 | |||
29fb84b995 |
@ -70,9 +70,8 @@ char* trim(char* str) {
|
||||
|
||||
char* append(char* buffer, int count, ...) {
|
||||
va_list list;
|
||||
int i;
|
||||
va_start(list, count);
|
||||
for (i = 0; i < count; i++) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
strcat(buffer, va_arg(list, char*));
|
||||
}
|
||||
va_end(list);
|
||||
|
@ -100,7 +100,8 @@ fresh_compile_git_prompt() {
|
||||
# --procelain` to greatly decrease the time taken to draw the prompt
|
||||
[ ! -d ~/.cache/zsh ] && mkdir -p ~/.cache/zsh
|
||||
if [ ! -f ~/.cache/zsh/git-prompt ]; then
|
||||
cc -std=gnu99 -O3 -DNDEBUG ~/.config/zsh/git-prompt.c -o ~/.cache/zsh/git-prompt
|
||||
cc -std=gnu99 -O3 -DNDEBUG -Wno-unused-result \
|
||||
~/.config/zsh/git-prompt.c -o ~/.cache/zsh/git-prompt
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "git-prompt was not compiled, is a C99 toolchain installed?"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user