Bash completion for Perforce.
Source p4_completion.bash
by adding this to your bashrc
source /path/to/p4_completion.bash
Or add p4_completion.bash
to your system's bash_completion.d
directory.
# Linux
$ sudo cp p4_completion.bash /etc/bash_completion.d/p4
# OSX (Mac)
$ sudo cp p4_completion.bash /opt/local/etc/bash_completion.d/p4