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

/tmp/XXX no such file error in termux in android #802

Closed
2 tasks done
RichardLuo0 opened this issue Jun 11, 2021 · 7 comments · Fixed by #803
Closed
2 tasks done

/tmp/XXX no such file error in termux in android #802

RichardLuo0 opened this issue Jun 11, 2021 · 7 comments · Fixed by #803

Comments

@RichardLuo0
Copy link

RichardLuo0 commented Jun 11, 2021

Prerequisites

  • I have read and understand the CONTRIBUTING guide
  • I looked for duplicate issues before submitting this one

Description

I am trying to use it in termux which is a terminal emulator for android phone. Everything works fine except for a weird error says /tmp/XXX no such file before every instruction. I think it may relate to termux's different filesystem hierarchy because /tmp is not available for termux.

500153200999_148338

Environment

  • Oh My Posh version: 3.162.4
  • Theme: stelbent.minimal
  • Operating System: android
  • Shell: bash
  • Terminal: termux
@JanDeDobbeleer
Copy link
Owner

Interesting. This is related to the way we treat command duration. We'll do a validation before assuming the file is there.

@lnu
Copy link
Contributor

lnu commented Jun 12, 2021

Interesting. @RichardLuo0 What's your goal in using omp in termux on android(just for my understanding)?

@lnu
Copy link
Contributor

lnu commented Jun 12, 2021

@JanDeDobbeleer For me, on macOS the duration is not working in bash. No error but no duration shown. Can you confirm?

@JanDeDobbeleer
Copy link
Owner

I've planned to check this weekend yes. It did work (and to my understanding we didn't change it).

@lnu
Copy link
Contributor

lnu commented Jun 12, 2021

Because this PS0='$(::OMP:: --millis > $TIMER_START)' is executed in a sub shell. No file is created for me.

=> bash 3.2.57 on the Mac...... PS0 works with 4.4
=> works fine after installing latest version(my bad)

@RichardLuo0
Copy link
Author

Interesting. @RichardLuo0 What's your goal in using omp in termux on android(just for my understanding)?

Just to make termux look better... Actually, I find there is an ARM version of omp, so I decided to try it and surprisingly it works well.

Copy link

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues.
If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants