acomagu/fish-async-prompt

Linux specific commands and files unavailable on Mac OS

beejiujitsu opened this issue · 4 comments

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

cat /proc/self/stat | awk '{ print $4 }'

Related to errors below:

set -U -n | sed -rn 's/__async_prompt_.*_([0-9]+)/\0 \1/p' | while read -l varname pid

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

Related to #2

Pull request to resolve errors: #6

I'm really sorry for my late action.

Do #2 resolve this?

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!