lib/p4helpers: `shfmt`

My apologies to future `git blame` hunters ♥
pull/2038/head
John D Pell 2022-01-26 10:56:59 -08:00 committed by John D Pell
parent 0e0e0d3035
commit fbc5d0a5af
2 changed files with 11 additions and 10 deletions

View File

@ -160,6 +160,7 @@ themes/easy
themes/essential
themes/modern
themes/norbu
themes/p4helpers.theme.bash
themes/pete
themes/powerline
themes/pure

View File

@ -1,18 +1,18 @@
#!/usr/bin/env bash
# shellcheck shell=bash
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 {
# Return the following counts seperated by tabs:
# - count of opened files
# - count of pending changesets (other than defaults)
# - count of files in the default changeset
# - count of opened files in add mode
# - count of opened files in edit mode
# - count of opened files in delete mode
_p4-opened | awk '
# Return the following counts seperated by tabs:
# - count of opened files
# - count of pending changesets (other than defaults)
# - count of files in the default changeset
# - count of opened files in add mode
# - count of opened files in edit mode
# - count of opened files in delete mode
_p4-opened | awk '
BEGIN {
opened=0;
type_array["edit"]=0;