Commit Graph

45 Commits (ed4d206bf6d383e526140099980d292493ab7634)

Author SHA1 Message Date
Cristian Lupascu ed4d206bf6 Powerline prompt section to display last command duration
Human display of the last command duration, if threshold exceeded

Add configurable threshold for prompt duration display (5s)

Nicer format for the time
2020-08-18 23:29:55 +03:00
buhl 303e0a937e Simplified-sudo-check 2020-03-30 21:46:46 +02:00
Ofir Shtrull 84ad65c309 cleanup 2020-02-27 21:52:21 +02:00
Ofir Shtrull 936a79f619 now usable by all prompts 2020-02-27 20:53:35 +02:00
Ofir Shtrull 78397ad598 Add terraform workspace to prompt 2020-02-27 14:40:57 +02:00
David Farrell 920a97a264
Adds compact support to powerline themes 2019-12-30 11:29:12 -08:00
David Farrell 8d5233ac19
Fixes prompt color 2019-12-30 09:25:16 -08:00
David Farrell 546b4e948f
Adds last segment prompt char to powerline default theme 2019-12-30 09:25:12 -08:00
David Farrell ee5e1b63bc
Adds history + command line number to powerline themes 2019-12-29 10:22:40 -08:00
David Farrell f8ae0494e8
Adds dirstack segment to powerline themes 2019-12-28 09:15:42 -08:00
Nils Winkler 1383af0ca8
Merge pull request #1445 from davidpfarrell/soft-separator
Adds soft-separator support to powerline main + multiline themes
2019-12-28 13:15:21 +01:00
David Farrell 8123b1c887
Adds shlvl segment to powerline themes 2019-12-27 10:16:07 -08:00
Nils Winkler eb21a1da6c
Merge pull request #1446 from davidpfarrell/short-user-hostname
Adds SHORT_USER/HOSTNAME support to powerline themes
2019-12-27 17:10:08 +01: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
David Farrell 55ce895141
Adds SHORT_USER/HOSTNAME support to powerline themes 2019-11-01 23:16:39 -07:00
David Farrell 349c1df556
Adds soft-separator suport to powerline themes 2019-11-01 10:38:34 -07: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
Anthony Wharton 81c3f70900 Add eval to SCM_BRANCH in powerline theme 2019-03-08 11:35:51 +00:00
Jeremy Mathevet 7e26ae28bf
Add kubernetes-context segment to powerline 2018-11-13 12:29:53 +00:00
Eduardo Bellido Bellido f757cad45a Add new segment, aws_profile, to powerline themes 2018-10-31 20:23:34 +01:00
Saulius Gurklys 025554d79d Add minimal HG prompt to powerline themes 2018-10-06 16:44:37 +03:00
Nils Winkler 3f2c2ddddd
Revert "fix wd_prompt multiline croping" 2018-04-20 08:00:06 +02:00
Florian Molitorisz ea1f235856
fix wd_prompt multiline croping 2018-04-18 00:44:45 +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
Eduardo Bellido Bellido dfc7b8ed80 Fix some regressions in Powerline theme 2017-12-18 01:37:05 +01:00
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
Dan Flies 94ebdf7c5b Added a new function to display current directory only 2017-12-08 09:56:40 -06:00
KeLiu e325859afb
use $SHORT_HOSTNAME if set
change `${HOSTNAME}` to `${SHORT_HOSTNAME:=$HOSTNAME}`
2017-11-17 17:07:43 +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
Tim Noise bb4ac06839 minor bugfix 2017-06-15 07:12:30 +00:00
Jeremy Mathevet 588213980d Prevent unbound variable errors 2017-03-21 12:04:18 +00:00
Nils Winkler db7ad196b7 Made the change from #902 available to Powerline themes 2017-02-14 08:49:45 +01:00
Ari Mourao 7d9628d4f5 refactoring to comply with standards 2017-02-12 14:03:45 -02:00
Ari Mourao 4eeb98772b added suggested improvements 2017-02-10 16:43:22 -02:00
Ari Mourao c7c488f0b0 enable powerscript to check if user can sudo his workstation 2017-02-09 14:45:25 -02:00
Tim Noise 6e1f389952 bugfix: powerline - IFS doesnt split \x20 in prompt on some machines 2017-01-30 06:10:28 +11:00
Tim Noise b5e9e2386f . 2017-01-30 05:44:55 +11:00
Tim Noise 808b6bd253 fixed ssh detection on el for powerline 2017-01-30 05:43:11 +11:00
Tim Noise 3d4c46bd12 Added redline theme, based on powerline
redline:
- added redline features to powerline
- added screenshot
- updated redline readme
- bugfix: resetting foreground color when distro logo is enabled
- fixed redline default element ordering

powerline:
- neater check for cached sudo
- started adding support for custom cwd separator glyph and color

bash-it:
- added sublime text to .gitignore
2017-01-30 05:08:07 +11:00
Tim Noise e8b130a277 commented todo 2017-01-30 04:51:52 +11:00
Tim Noise 3ef6c0b66b - fixed bug : resetting foreground color when distro logo is enabled
- neater check for cached sudo
- started adding support for custom cwd separator glyph and color
2017-01-30 04:34:45 +11:00
Tim Noise bf3600c7e1 - added redline features to powerline
- added screenshot
- updated readme
2017-01-28 04:56:33 +11:00
Eduardo Bellido Bellido 34bd7e49c3 Powerline theme refactor
- Split functions and options in two files
- Add README.md
2016-10-30 01:16:05 +02:00