Merge pull request #37 from scottydelta/master
Added remaining battery time and percentage to hardware information
This commit is contained in:
commit
960937a497
10
README.md
10
README.md
@ -497,6 +497,16 @@ atsutil server -ping
|
|||||||
networksetup -listallhardwareports
|
networksetup -listallhardwareports
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Remaining Battery Percentage
|
||||||
|
```bash
|
||||||
|
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f1 -d';'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Remaining Battery Time
|
||||||
|
```bash
|
||||||
|
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f3 -d';'
|
||||||
|
```
|
||||||
|
|
||||||
#### Show Connected Device's UDID
|
#### Show Connected Device's UDID
|
||||||
```bash
|
```bash
|
||||||
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p'
|
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p'
|
||||||
|
Loading…
Reference in New Issue
Block a user