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
Jason Al-Mansor
e6a6bb5deb
fix hostname in remaining powerline themes
2018-04-15 14:32:18 -04:00
Will Price
8d18d1f69c
Correct variables -> variable in powerline theme READMEs
2018-02-19 10:41:33 +00:00
Will Price
396bedf11e
Improve documentation on prompt options for powerline themes
2018-02-16 19:51:22 +00: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
e3abf2d231
Revert "Changed the broken icons"
...
This reverts commit 4986468e89 .
2017-12-11 13:07:45 -06:00
Dan Flies
4986468e89
Changed the broken icons
2017-12-08 09:57:34 -06: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
7415c85ed8
corrected typo
2017-02-09 15:22:49 -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
898bb10579
Fix powerline themes README.md
2016-11-09 21:04:18 +01: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
Nils Winkler
66397ef577
Revert "Changes to sudo check for powerline themes"
2016-09-26 09:01:59 +02:00
Vedhapriya Raman
28e9e04d4f
Changes for issue# 744
2016-09-23 20:50:55 -05:00
Yuhao Wu
af96da5d11
Fix bug: themes break global $PROMPT_COMMAND variable
...
Safely append functions to $PROMPT_COMMAND instead of setting it.
2016-07-07 17:13:00 +09:00
Bez Hermoso
77a891d8c6
Check VIMRUNTIME instead
2015-08-31 16:36:07 -07:00
Bez Hermoso
e6dc31b35d
Indicator if running bash in vim
2015-08-31 10:22:28 -07:00
jitakirin
b8649312e4
Style fix
2015-05-22 08:51:13 +01:00
jitakirin
473b3f2075
Abuse uptime to check if sudo requires password
...
The ``sudo -n true`` trick doesn't work on OS X.
2015-05-22 08:43:34 +01:00
jitakirin
9693b39da6
Port sudo indicator to powerline theme
...
This ports sudo indicator feature to powerline theme, originally added
to powerline-multiline theme in PR #452 .
2015-05-21 21:12:18 +01:00
Eduardo Bellido Bellido
418e6fae14
Changed default value to true for SCM_GIT_SHOW_DETAILS
2015-01-06 12:57:57 +01:00
Eduardo Bellido Bellido
01aaf69a96
Adapted Powerline theme to new base theme
2014-12-31 19:45:10 +01:00
Eduardo Bellido Bellido
b0ce36b8ed
Show ref type in git prompt in Powerline theme
2014-12-29 02:38:00 +01:00
Eduardo Bellido Bellido
3e17b17846
Added more Git repository info to Powerline theme
2014-12-24 00:37:31 +01:00
Travis Swicegood
aeb08aea3f
Update powerline to show conda environments
2014-04-05 09:14:55 -05:00
Travis Swicegood
51416056b2
Add ability for themes to specify that you're viewing a tag along with Powerline implementation
2014-04-01 10:41:00 -05:00
Travis Swicegood
1a885b957f
Add a fallback in case Git isn't being used (*shutters*)
2013-11-25 18:06:33 -06:00
Travis Swicegood
16704a68aa
Update to show the difference between staged, unstaged, and untracked files
2013-11-25 18:02:58 -06:00
Eduardo Bellido Bellido
91538bce78
Now, really fixed wrong number for white color in Powerline and Powerline-plain themes
2013-11-15 20:57:27 +01:00
Eduardo Bellido Bellido
ca0d29e2af
Fixed wrong number for white color in Powerline and Powerline-plain themes
2013-11-15 17:57:05 +01:00
Eduardo Bellido Bellido
68dc6768c8
Added Powerline theme
2013-11-13 00:01:09 +01:00