Commit Graph

147 Commits

Author SHA1 Message Date
Noah Gorny
3eac73f613 plugins: Rename gitstatusd plugin to gitstatus 2020-06-22 14:57:05 +03:00
Noah Gorny
5d14030591 plugins: Add gitstatud plugin 2020-06-22 14:55:25 +03:00
Noah Gorny
fb2e8549ad themes: Tidy base.theme and remove uneeded changes 2020-06-19 21:50:21 +03:00
Markus Krause
feae99431a implement feedback 2020-06-19 19:45:59 +03:00
Markus Krause
83fdc89ec1 implement gitstatusd support 2020-06-19 19:45:58 +03:00
Nils Winkler
47512a1624 Checking for SVN return code 2020-06-14 19:31:25 +02:00
Nils Winkler
2ba3797da6 Added check for SVN not available 2020-06-09 14:07:17 +02:00
Nils Winkler
caced3b65f Using $() instead of backticks to make shellcheck happy 2020-06-09 14:07:17 +02:00
buhl
3bfec8e682 Removed empty VIRTUAL_ENV declaration in the base theme 2020-05-13 22:01:20 +02:00
buhl
ad9876e6e3 Removed initialization of empty VIRTUAL_ENV
When spawning a new bash session when entering a virtual environment
the VIRTUAL_ENV is overwritten by this line.
However not having this line does not affect the bin/activate script.
2020-05-09 12:13:11 +02:00
salex
21885dabb4 add THEME_SHOW_RUBY_PROMPT. 2020-03-20 19:25:45 +08:00
salex
fd162c0786 add RUBY_VERSION_PROMPT_DISABLED parameter for PS1 prompt. 2020-03-20 09:44:06 +08:00
Ofir Shtrull
936a79f619 now usable by all prompts 2020-02-27 20:53:35 +02:00
Eduardo Bellido Bellido
a6e912854a Show NodeJS version in Powerline themes (#1438)
Currently, only nvm is supported.
2019-12-02 08:36:57 +01:00
Nils Winkler
721412aa4c Merge pull request #1395 from zhao-li/toggle-able_commit_count
Toggle able commit count
2019-09-02 08:45:19 +02:00
Eduardo Bart
4c0a51aee2 Optimize SCM checks 2019-07-23 12:50:27 -03:00
Zhao Li
62757b0f3f allow the count information to be turned on or off 2019-07-08 10:52:44 -10:00
Nils Winkler
6329d3bdd2 Merge pull request #1379 from leventyalcin/feature/save_history_immediately
add an env var that themes can save history immediately
2019-07-08 08:47:09 +02:00
Nils Winkler
498f3b41f2 Merge pull request #1389 from martinus/master
Improved subversion support for powerline
2019-07-08 08:41:06 +02:00
Nils Winkler
943e887415 Merge pull request #1387 from zhao-li/feature/customizable_git_ahead_behind_prefix
allow customizing the character before ahead and behind characters
2019-07-08 08:37:12 +02:00
Martin Ankerl
0bafdbbef9 faster subversion status
Stop as soon as "svn status" shows a change, not needed to walk through
all the changes in the whole repository. For my large repository this is
about twice as fast.

Extract just the information we need from "svn info"
2019-06-24 11:28:53 +02:00
Martin Ankerl
e42405705a Improved subversion support for powerline
SVN prompt also when in subdirectories that don't contain .svn
Show correct SVN status for powerline
2019-06-24 11:02:15 +02:00
Levent Yalcin
e93cc67bcd added a function instead running the same check and commands in every theme 2019-06-10 13:39:35 +01:00
Zhao Li
dc61f85196 allow the space before SCM_GIT_AHEAD_CHAR and SCM_GIT_BEHIND_CHAR to be customizable 2019-06-07 15:46:24 -10:00
Szymon Szypulski
1e10ad1813 Ignore unset and empty Kubernetes context
When current-context does not exist or is unset in $KUBECONFIG, kubectl
is throwing a message to stderr "error: current-context is not set".

Ignore it.
2019-05-22 06:54:11 +02:00
Travis Swicegood
b5976ada25 Merge remote-tracking branch 'origin/master' into GH-1142 2018-12-02 21:01:15 -06:00
Jeremy Mathevet
7e26ae28bf Add kubernetes-context segment to powerline 2018-11-13 12:29:53 +00:00
sharils
d0f76548ce Add SCM_GIT_SHOW_STASH_INFO flag #914
In order to make `git_prompt_vars` run faster
As a user with slow `git stash list`
I want to be able to optionally disable running `git stash list` when
`git_prompt_vars` is executed
2018-10-16 22:05:06 +08:00
Nils Winkler
3d6d42ec2f Merge pull request #1211 from dracorp/fork
The function _git-hide-status is invoked to late
2018-07-18 09:19:42 +02:00
Gabriel Smadi
af16e9e68b Display only first line of Python 3.7 version 2018-07-14 20:39:19 -04:00
Piotr Rogoza
f484fadbb1 The function _git-hide-status is invoked to late 2018-07-12 06:32:11 +00:00
Ethan Edwards
1a7ebf4da7 change to setting variables to empty value before use 2018-04-30 13:40:08 -05:00
Ethan Edwards
10d075c9c5 merge latest upstream 2018-04-30 13:36:39 -05:00
Piotr Rogoża
67629aba2d On some hosts scm* functions does not work properly if a vcs tool is missing 2018-04-24 21:50:34 +02:00
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
Ethan Edwards
db55c63c77 GH-1142 add behavior to address using set -e 2018-02-06 11:08:44 -06:00
Ethan Edwards
3eb5e037f9 GH-1140 add safe usage of SCM variable 2018-02-06 03:32:08 -06: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
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
0267554c22 Fixed issue introduced in #1109
With the added $ in there, it would show an error in Git repos:

-bash: ##: command not found
2017-12-11 11:35:52 +01:00
Robin Richtsfeld
c86038d61d Fix some Bash issues 2017-12-09 15:06:22 +01:00
Nils Winkler
68409f3566 Revert "Update base.theme.bash with RUBY interpreter version check" 2017-11-28 08:25:25 +01:00
Luis Felipe Sánchez
31a0c6a9fd Update base.theme.bash
Added feature to detect the ruby version interpreter
```bash
       rb_interp_prompt
```
and added to the existing function to be used in any theme.
2017-11-22 10:14:38 -05:00
Telmo Costa
1fd3fa2440 Allow theming git stash chars 2017-11-12 17:42:11 +00:00
Wei-Han Chen
5ff7df1607 support bash-preexec 2017-11-07 02:59:25 +08:00
Nils Winkler
145ec5dfaa Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin
The original command_exists function will stay in the base plugin, but will no longer be used by other plugins or themes.
2017-09-17 21:05:59 +02:00
Nils Winkler
c33861a9b0 Change dependency check for battery_char function 2017-06-24 17:31:31 +02:00
Nils Winkler
3fac1c7ea5 Fix checks for battery plugin
These now check for the presence of the required function instead of
checking for the battery file in the enabled directory.
2017-06-24 17:31:31 +02:00
林博仁
e2d3419639 Fix more space-in-path-proof issues
Signed-off-by: 林博仁 <Buo.Ren.Lin@gmail.com>
2017-05-02 11:11:13 +08:00