Commit Graph

2133 Commits (353cb210d4bf03db4ecb86985ca54cf3c643ee5c)

Author SHA1 Message Date
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
Nils Winkler 7bd62af151
Merge pull request #1138 from camservo/feature/docker-completion-update
Updating docker completions
2018-01-29 08:31:11 +01:00
Cameron Jeffries bc38f9817f Updating docker completions 2018-01-26 13:28:58 -08:00
Nils Winkler 4e730eb9a1
Merge pull request #1136 from LanikSJ/master
Update Terraform Completion
2018-01-22 08:43:22 +01:00
Nils Winkler 6f279e2b91
Merge pull request #1135 from seefood/libvirt-completions
Add completions for libvirt's CLI "virsh"
2018-01-22 08:42:04 +01:00
LanikSJ 2930506687
Update Terraform Completion 2018-01-21 11:07:48 -08:00
Ira Abramov a139f318d0 Add completions for libvirt's CLI 'virsh' 2018-01-21 17:20:25 +02:00
Nils Winkler a9b606eaab
Merge pull request #1134 from samdfonseca/python2-svn-show-proxy
explicitly use python2 for svn proxy functions
2018-01-21 12:16:30 +01:00
Sam Fonseca 75630b01d5
explicitly use python2 for svn proxy functions 2018-01-20 13:55:59 -05:00
Nils Winkler bed6c758c3
Merge pull request #1132 from seefood/ira-gifski
gif plugin - mostly ironing of bugs
2018-01-19 08:32:36 +01:00
Ira Abramov 19a2dd8bb8 Support filenames with spaces. Bash is magic sometimes. 2018-01-18 12:26:27 +02:00
Ira Abramov af3ca28430 Just in case - make sure WebM output is marked to loop. 2018-01-18 12:01:18 +02:00
Ira Abramov bb27aafee5 Fix a minute logic bug - if one file deletion is skipped, not all the following deletions will be skipped 2018-01-18 12:01:18 +02:00
Nils Winkler 33f6a022f2
Merge pull request #1129 from adawalli/percol
Fixes: 659ecd0388 plugins: percol: Check for alias zz before unalias
2018-01-11 08:12:00 +01:00
Adam Wallis 3651a31c5e Fixes: 659ecd0388 plugins: percol: Check for alias zz before unalias
The original patch (659ecd0388)
unaliases the percol alias, however, does not validate if the alias
is already defined. This leads to the following message that is shown
everytime a new bash session is spawned where this variable is not
defined when the percol plugin is enabled.

bash: unalias: zz: not found
2018-01-10 19:58:29 -05:00
Nils Winkler 886b1d3f1e
Merge pull request #1128 from nwinkler/powerline-multiline-padding
Added configurable padding value to Powerline-Multiline theme
2018-01-08 09:07:23 +01:00
Nils Winkler d0df07435e Added configurable padding value to Powerline-Multiline theme
Required on macOS High Sierra with the default Terminal app, otherwise,
the right segment would extend to the next line.
2018-01-08 08:56:49 +01:00
Nils Winkler f48560bae0
Merge pull request #1126 from seefood/ira-gifski
GIF plugin: Fix the FPS detection and add webm creation as a future-looking feature
2018-01-04 12:20:11 +01:00
Ira Abramov f693e7cb59 Adding GIF2WebM, but it actually works will with any video input file. 2018-01-03 19:56:34 +02:00
Ira Abramov 1620f2cc78 GIF plugin: Fix the FPS detection and add webm creation as a future-looking feature. 2018-01-03 19:10:07 +02:00
Nils Winkler 600838785f
Merge pull request #1124 from songxinqiang/master
remove the escape char to fix git repo branch prompt show error
2018-01-02 11:17:34 +01:00
阿信sxq 517f6c94f9 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
阿信sxq 40fd3813d3 remove the escape char to fix git repo branch prompt show error 2017-12-31 16:20:55 +08:00
Nils Winkler 1f7d1b755c
Merge pull request #1123 from skalkoto/patch-3
clean theme: Fix scm coloring
2017-12-29 17:48:51 +01:00
Nikos Skalkotos f512f71100
clean theme: Fix scm coloring
Remove zsh stuff and fix coloring
2017-12-28 17:53:14 +02:00
Nils Winkler e3fd28760c
Merge pull request #1122 from skalkoto/patch-2
clean theme: Remove extra \
2017-12-28 15:35:10 +01:00
Nikos Skalkotos 2ada230c4c
clean theme: Remove extra \ 2017-12-28 16:29:10 +02:00
Nils Winkler b9e49433c9
Merge pull request #1121 from peh/master
fix simple theme
2017-12-28 11:55:36 +01:00
Philipp Eschenbach 4387beda46 fix simple theme 2017-12-28 10:02:13 +01:00
Nils Winkler 78666805a2
Merge pull request #1119 from edubxb/pm-theme-new-options
New customization options
2017-12-21 08:06:47 +01:00
Eduardo Bellido Bellido d779fd6fe4 New customization options
Added two new variables:

POWERLINE_LEFT_END
POWERLINE_RIGHT_END

used to change the end character of the the left and right parts.
2017-12-19 22:31:59 +01:00
Nils Winkler fe1ae061cc
Merge pull request #1018 from wendorf/git-helpers
Allow non-alphanumeric git branch names
2017-12-19 09:19:38 +01:00
Nils Winkler baf111112e
Merge pull request #1118 from inderpreet99/feature/fix-readme-toc
Fix table of contents link to its correct section
2017-12-19 09:07:43 +01:00
Inderpreet Singh c336df2137 Fix table of contents link to its correct section 2017-12-18 14:42:56 -05:00
Dan Wendorf c5f2c408e7 SCM_CURRENT_USER supports accented characters
`tr 'A-Z' 'a-z'` will only convert non-accented characters. Switching to
`[:upper:]` and `[:lower:]` adds support for accents.
See https://github.com/koalaman/shellcheck/wiki/SC2018

Additionally, printf's character splitting does not support accented
characters, so output isn't as expected. Using bash's variable expansion
syntax instead will correctly get the full accented character.
2017-12-18 09:05:33 -08:00
Dan Wendorf 150e82b221 Refactor git functionality into githelpers.theme.bash
- Add unit tests around git functionality
2017-12-18 09:05:33 -08:00
Nils Winkler 8c89381762
Merge pull request #1117 from edubxb/fix-powerline-user-info
Fix some regressions in Powerline theme
2017-12-18 11:45:19 +01:00
Nils Winkler a018cf3653
Merge pull request #1114 from navanchauhan/master
Fomatted the README File
2017-12-18 08:28:35 +01:00
Nils Winkler 4c5dd2225f
Update README.md
Changed case for "INSTALL OPTIONS"
2017-12-18 08:28:02 +01:00
Eduardo Bellido Bellido dfc7b8ed80 Fix some regressions in Powerline theme 2017-12-18 01:37:05 +01:00
Navan Chauhan c441fd830f
u 2017-12-17 17:49:08 +05:30
Travis Swicegood 0d3eedbc1c
Merge pull request #891 from dnoiz1/master
Added redline theme, based on powerline
2017-12-16 16:27:14 -06:00
Navan Chauhan 7be5f99e16
Formatted it
A heading should have ##
Whereas a sub-heading should have ####
2017-12-16 13:41:31 +05:30
Navan Chauhan 9984397607
Formatted it 2017-12-16 13:39:27 +05:30
Tim Noise 54d6a10601 i am bad at git 2017-12-16 16:53:45 +11:00
Tim Noise 0eb02456e2 updated theme to latest
- fixed minor errors in powerline.base when pulling from origin master
2017-12-16 16:45:55 +11:00
Tim Noise 02d0997e0a Merge branch 'master' of https://github.com/Bash-it/bash-it 2017-12-16 16:37:27 +11:00
Nils Winkler d318c6536f
Merge pull request #1103 from dsem/fix-brainy-virtualenv-box
Reset VIRTUALENV vars in brainy theme
2017-12-15 08:21:21 +01:00
Nils Winkler b88cda15da
Merge pull request #1113 from wendorf/git-home-alias
Add git `gh` alias to go "home" (top-level dir)
2017-12-15 08:16:04 +01:00
Dan Wendorf a35c9473f8 Add git `gh` alias to go "home" (top-level dir) 2017-12-14 10:48:05 -08:00