mirror of
https://github.com/dchakro/brewlog.git
synced 2026-05-17 10:12:16 -07:00
Merge branch 'develop'
# Conflicts: # README.md
This commit is contained in:
commit
395f66b100
1 changed files with 46 additions and 10 deletions
54
README.md
54
README.md
|
|
@ -33,26 +33,62 @@ Now you're easily able to track the changes made to your system while running `b
|
||||||
|
|
||||||
### How to use
|
### How to use
|
||||||
|
|
||||||
|
#### a) Install from binary
|
||||||
|
|
||||||
|
1. Download the latest binary from the releases (should run on *nix with a homebrew installation).
|
||||||
|
2. `mv brewlog /usr/local/bin/brewlog` or to some other place that is in your `$PATH`.
|
||||||
|
3. Familiarize yourself by running `brewlog —help`.
|
||||||
|
|
||||||
|
#### b) Install from source
|
||||||
|
|
||||||
|
The script [`install.sh`](https://github.com/robocopAlpha/brewlog/blob/master/install.sh) automatically picks the place to install brewlog by detecting the location where the `brew` binary is placed in your system `$PATH`.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Review/Modify code
|
|
||||||
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/install.sh'
|
|
||||||
# Install
|
# Install
|
||||||
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/install.sh' | bash
|
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/install.sh' | bash
|
||||||
|
|
||||||
# Show help
|
# Show help
|
||||||
brewlog --help
|
brewlog --help
|
||||||
|
```
|
||||||
|
|
||||||
# Running homebrew commands
|
#### c) Install from source with modifications
|
||||||
brewlog install ffmpeg
|
|
||||||
brewlog info ffmpeg
|
|
||||||
|
|
||||||
# Even complex brew commands work with brewlog
|
```sh
|
||||||
brewlog list --multiple --versions
|
# download
|
||||||
|
curl -OJL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/install.sh'
|
||||||
|
# Review/Modify code
|
||||||
|
bat install.sh
|
||||||
|
nano install.sh
|
||||||
|
# Install
|
||||||
|
sh install.sh | bash
|
||||||
|
# Show help
|
||||||
|
brewlog --help
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Detailed usage
|
#### Examples using brewlog
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Running homebrew commands
|
||||||
|
brewlog install ffmpeg
|
||||||
|
brewlog info ffmpeg
|
||||||
|
brewlog outdated
|
||||||
|
|
||||||
|
# Tail the log file
|
||||||
|
brewlog tail
|
||||||
|
brewlog tail -n 5
|
||||||
|
|
||||||
|
# archive the current log file
|
||||||
|
brewlog archive
|
||||||
|
|
||||||
|
# Even complex brew commands work with brewlog
|
||||||
|
brewlog list --multiple --versions
|
||||||
|
brew deps ffmpeg | xargs brewlog uninstall ----ignore-dependencies
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### `brewlog —help` listing parameters and examples:
|
||||||
|
|
||||||
```
|
```
|
||||||
brewlog - allows you to log your homebrew/linuxbrew operations to a file.
|
brewlog - allows you to log your homebrew/linuxbrew operations to a file.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue