A bunch of scripts to catch p4 commands, run them, and make their output better.
BP4O will use colordiff to output diffs in color from commands like p4 diff
and p4 describe
To get colored diffs, install colordiff and unset the P4DIFF
environment variable.
BP4O works with Perforce's builtin aliasing!
And BP4O provides its own aliasing!
To use BP4O aliases, add a file named aliases
to ~/.config/bp4o/
.
Each line of ~/.config/bp4o/aliases
is treated as an alias with the syntax <alias> = <command>
.
e.g.
ch = change
op = opened
su = submit
log = changes -s submitted -l
BP4O works with Bash, Zsh, and Fish shell
brew tap zachwhaley/beer
brew install bp4o
Use the install.sh
script to install BP4O
sudo ./install.sh
Or...
./install.sh ~
Or...
./install.sh /some/dir
Use the -u
option in install.sh
to uninstall BP4O
./install.sh -u <install directory>
It overrides the p4 command with a shell function named p4. When a p4 command is issued, this function looks for executables in your PATH named p4-command. It then gives the command line arguments to this executable, which runs the p4 command, parses the output, and prints better output.