Skip to content

Commit f06c821

Browse files
committed
lib/p4helpers: shfmt
My apologies to future `git blame` hunters ♥
1 parent a6342b5 commit f06c821

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

clean_files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ themes/command_duration.theme.bash
153153
themes/easy
154154
themes/essential
155155
themes/modern
156+
themes/p4helpers.theme.bash
156157
themes/pete
157158
themes/powerline
158159
themes/pure

themes/p4helpers.theme.bash

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/usr/bin/env bash
1+
# shellcheck shell=bash
22

33
function _p4-opened {
4-
timeout 2.0s p4 opened -s 2> /dev/null
4+
timeout 2.0s p4 opened -s 2> /dev/null
55
}
66

77
function _p4-opened-counts {
8-
# Return the following counts seperated by tabs:
9-
# - count of opened files
10-
# - count of pending changesets (other than defaults)
11-
# - count of files in the default changeset
12-
# - count of opened files in add mode
13-
# - count of opened files in edit mode
14-
# - count of opened files in delete mode
15-
_p4-opened | awk '
8+
# Return the following counts seperated by tabs:
9+
# - count of opened files
10+
# - count of pending changesets (other than defaults)
11+
# - count of files in the default changeset
12+
# - count of opened files in add mode
13+
# - count of opened files in edit mode
14+
# - count of opened files in delete mode
15+
_p4-opened | awk '
1616
BEGIN {
1717
opened=0;
1818
type_array["edit"]=0;

0 commit comments

Comments
 (0)