Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix > not working on OSX without rm first #1

Merged

Conversation

Tritlo
Copy link

@Tritlo Tritlo commented Dec 4, 2016

When doing ">" to a file that already exists, OS X fails (at least for me) with errors like:

serialize_segment:54: file exists: /tmp/p9k/p9k_53225_left_001_prompt_os_icon.sh
serialize_segment:54: file exists: /tmp/p9k/p9k_53225_left_003_prompt_time.sh
serialize_segment:54: file exists: /tmp/p9k/p9k_53225_left_002_prompt_context.sh
serialize_segment:54: file exists: /tmp/p9k/p9k_53225_right_001_prompt_status.sh
serialize_segment:54: file exists: /tmp/p9k/p9k_53225_left_004_prompt_dir.sh
serialize_segment:54: file exists: /tmp/p9k/p9k_53225_right_003_prompt_ip.sh
serialize_segment:54: file exists: /tmp/p9k/p9k_53225_right_004_prompt_battery.sh

this removes the previous file before trying to pipe to it, to circumvent this.

@dritter dritter merged commit c67da01 into dritter:async_all_the_segments Dec 4, 2016
@dritter
Copy link
Owner

dritter commented Dec 4, 2016

Thanks!

dritter pushed a commit that referenced this pull request Jun 6, 2018
dritter pushed a commit that referenced this pull request Dec 13, 2018
Calculate whitespaces on startup time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants