mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Merge pull request #220 from LucaFilipozzi/master
improve detection of superuser on macOS (fixes #218)
This commit is contained in:
commit
8e6b82e450
@ -416,7 +416,7 @@ function __bobthefish_prompt_status -S -a last_status -d 'Display flags for a no
|
||||
# will be wrong. But I can't think of a single reason that would happen, and
|
||||
# it is literally 99.5% faster to check it this way, so that's a tradeoff I'm
|
||||
# willing to make.
|
||||
[ -w / ]
|
||||
[ -w / -o -w /private/ ]
|
||||
and [ (id -u) -eq 0 ]
|
||||
and set superuser 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user