acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
390 stars 22 forks source link

Linux specific commands and files unavailable on Mac OS #5

Closed beejiujitsu closed 5 years ago

beejiujitsu commented 5 years ago

With the introduction of parsing /proc/self/stat, fish-async-prompt does not work on Mac OS.

https://github.com/acomagu/fish-async-prompt/blob/f2dc2b860068a2558ba116069a892a67af9ce228/conf.d/__async_prompt.fish#L142

Related to errors below: https://github.com/acomagu/fish-async-prompt/blob/f2dc2b860068a2558ba116069a892a67af9ce228/conf.d/__async_prompt.fish#L11

When I try to enable via fundle:

 ~/w/source    exec fish                                                                                                                                                                                   17.5s  Wed Jan  9 10:47:57 2019
acomagu/fish-async-prompt not installed. You may need to run 'fundle install'
See the docs for more info. https://github.com/tuvistavie/fundle
Darwin pug.local 18.2.0 x86_64
 10:48:00  up 7 days  0:28,  1 user,  load average: 2.71, 3.60, 3.73
 ~/w/source    fundle install                                                                                                                                                                                      Wed Jan  9 10:48:03 2019
Installing acomagu/fish-async-prompt
edc/bass installed in /Users/mshields/.config/fish/fundle/edc/bass
oh-my-fish/plugin-bang-bang installed in /Users/mshields/.config/fish/fundle/oh-my-fish/plugin-bang-bang
oh-my-fish/plugin-expand installed in /Users/mshields/.config/fish/fundle/oh-my-fish/plugin-expand
oh-my-fish/theme-bobthefish installed in /Users/mshields/.config/fish/fundle/oh-my-fish/theme-bobthefish
tuvistavie/fish-fastdir installed in /Users/mshields/.config/fish/fundle/tuvistavie/fish-fastdir
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
cat: /proc/self/stat: No such file or directory
fish: option requires an argument -- c
cat: /proc/self/stat: No such file or directory
fish: option requires an argument -- c
beejiujitsu commented 5 years ago

Related to #2

beejiujitsu commented 5 years ago

Pull request to resolve errors: https://github.com/acomagu/fish-async-prompt/pull/6

acomagu commented 5 years ago

I'm really sorry for my late action.

Do #2 resolve this?

beejiujitsu commented 5 years ago

Thanks for checking in.

I cleaned up my currently installed fish-async-prompt then reinstalled. I had to upgrade my fish to the latest with macports. Once that was done, I now have a working fish async prompt. Thank you so much!