bash-it/themes
Shashank Bharadwaj 353cb210d4 Add priliminary support for perforce SCM
This patch adds very simple support for the Perforce SCM:
    https://www.perforce.com/

Although perforce is proprietary software, it's somewhat prevalent in enterprise
companies. This patch looks to provide some basic bash_it functionality that
I've come to love for git. I base everything off of two perforce commands:
    $ p4 set
This command does not require a connection the perforce server, it simply tells
us if a directory is managed by the Perforce SCM or not. In addition the
command:
    $ p4 opened

is used to provide the list of pending changes in the client and the number of
opened files in the client. The `p4 opened` command requires a connection to the
perforce server, hence it's run under a `timeout` command. The "p4 opened"
processing into it's own bash file that now has to be sourced at the top-level
bash-it.sh. Since the processing in simple the newly added: _p4-opened-counts
function returns a number of things that are not currently used, but since I had
awk open and doing the processing, I've chosen to include them in the output
anyway.

Testing:
  - Tested with the powerline-multiline theme in a few perforce based
    workspaces/clients
  - Ran:
      ❯ shellcheck themes/p4helpers.theme.bash
    and fixed all the errors
  - Ran the test suite:
      ❯ test/run
      [...]
      182 tests, 0 failures, 1 skipped
2018-02-14 17:53:09 -08:00
..
90210 new theme 90210 added 2017-02-03 15:12:49 -02:00
atomic Update README.md 2017-11-10 14:38:33 -05:00
axin revert the backslash in the base file, and remove it in theme 'axin', fix the git branch name show error 2018-01-02 18:10:38 +08:00
bakke fix: missing virtualenv prompt 2017-07-07 15:02:54 +02:00
binaryanomaly bash-it themes must not set the TERM variable. The used terminal emulator is responsible to set this variable correctly. 2017-11-11 18:02:04 +01:00
bobby Update bobby theme to use scm_prompt_char_info 2017-01-16 23:23:13 -08:00
bobby-python Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
brainy Reset VIRTUALENV vars in brainy theme 2017-12-06 08:50:09 -05:00
brunton refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
candy refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
clean clean theme: Fix scm coloring 2017-12-28 17:53:14 +02:00
cooperkid Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
cupcake Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
demula Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin 2017-09-17 21:05:59 +02:00
dos Added dos theme 2011-04-29 17:56:04 -05:00
doubletime refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
doubletime_multiline refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
doubletime_multiline_pyonly refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
dulcie Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
duru Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
emperor refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
envy Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
font Update font theme 2017-04-24 10:19:14 -07:00
gallifrey Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
hawaii50 Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
iterate Guard against unset COLUMNS 2017-06-23 09:12:46 -05:00
kitsune Added credits 2016-12-09 10:40:42 +05:45
liquidprompt Add gitignore for liquidprompt 2017-07-16 18:28:47 +02:00
luan refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
mairan Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
mbriggs Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
minimal Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
modern Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
modern-t Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
morris Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
n0qorg Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
nwinkler refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
nwinkler_random_colors refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
pete refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
powerline Add priliminary support for perforce SCM 2018-02-14 17:53:09 -08:00
powerline-multiline Added configurable padding value to Powerline-Multiline theme 2018-01-08 08:56:49 +01:00
powerline-naked Fix powerline themes README.md 2016-11-09 21:04:18 +01:00
powerline-plain Fix powerline themes README.md 2016-11-09 21:04:18 +01:00
primer refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
pro Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
pure Use virtualenv_prompt from base.theme.bash 2017-04-10 07:08:23 -07:00
purity Add ability to specify the path color 2017-10-18 16:03:06 -05:00
rainbowbrite Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
rana Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin 2017-09-17 21:05:59 +02:00
redline - fixed bug : resetting foreground color when distro logo is enabled 2017-01-30 04:34:45 +11:00
rjorgenson Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
roderik refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
sexy bash-it themes must not set the TERM variable. The used terminal emulator is responsible to set this variable correctly. 2017-11-11 18:02:04 +01:00
simple fix simple theme 2017-12-28 10:02:13 +01:00
sirup Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
slick Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
standard Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
tonka refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
tonotdo Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
tylenol Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
wanelo refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
zitron Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
zork Fix bug: themes break global $PROMPT_COMMAND variable 2016-07-07 17:13:00 +09:00
base.theme.bash Add priliminary support for perforce SCM 2018-02-14 17:53:09 -08:00
colors.theme.bash Fix white color in colors.theme 2017-04-10 12:01:59 +02:00
githelpers.theme.bash Refactor git functionality into githelpers.theme.bash 2017-12-18 09:05:33 -08:00
p4helpers.theme.bash Add priliminary support for perforce SCM 2018-02-14 17:53:09 -08:00