parent
0e0e0d3035
commit
fbc5d0a5af
|
|
@ -160,6 +160,7 @@ themes/easy
|
||||||
themes/essential
|
themes/essential
|
||||||
themes/modern
|
themes/modern
|
||||||
themes/norbu
|
themes/norbu
|
||||||
|
themes/p4helpers.theme.bash
|
||||||
themes/pete
|
themes/pete
|
||||||
themes/powerline
|
themes/powerline
|
||||||
themes/pure
|
themes/pure
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
#!/usr/bin/env bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
function _p4-opened {
|
function _p4-opened {
|
||||||
timeout 2.0s p4 opened -s 2> /dev/null
|
timeout 2.0s p4 opened -s 2> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
function _p4-opened-counts {
|
function _p4-opened-counts {
|
||||||
# Return the following counts seperated by tabs:
|
# Return the following counts seperated by tabs:
|
||||||
# - count of opened files
|
# - count of opened files
|
||||||
# - count of pending changesets (other than defaults)
|
# - count of pending changesets (other than defaults)
|
||||||
# - count of files in the default changeset
|
# - count of files in the default changeset
|
||||||
# - count of opened files in add mode
|
# - count of opened files in add mode
|
||||||
# - count of opened files in edit mode
|
# - count of opened files in edit mode
|
||||||
# - count of opened files in delete mode
|
# - count of opened files in delete mode
|
||||||
_p4-opened | awk '
|
_p4-opened | awk '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
opened=0;
|
opened=0;
|
||||||
type_array["edit"]=0;
|
type_array["edit"]=0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue