Commit Graph

48 Commits

Author SHA1 Message Date
John D Pell
1c3cbf7ca6 Delete .shellcheckrc (#1947)
* CI: disable Ubuntu 16.04 as it's EOL

https://github.blog/changelog/2021-04-29-github-actions-ubuntu-16-04-lts-virtual-environment-will-be-removed-on-september-20-2021/

* main: lint false positive

* install: lint

* plugins/cmd-returned-notify: don't `export`

* plugins/xterm: lint

* plugins/git: lint

* plugins/goenv: lint

* plugins/alias-completion: lint false positives

* plugins/alias-completion: fix SC2155, SC2154

Declare `locals` at the top of the function

* completion: lint completions using `bash_completion` functions

Match the style of the existing code

* completion/knife: lint false positives

* completion/knife: lint

* completion/sdkman: lint

* completion/composer: lint

* Move `.shellcheckrc` under `themes/`

* lib/theme: fix SC2155, SC2154, SC2034

* lib/colors: don't warn on unused variables

We assign a large number of variables here and they may or may not be used anywhere else, so disable SC2034 for this file (only).

Alsö disable SC2005 as the functions in this file were written before `printf` was invented and have to do some fancy metascripting to get escape sequences interpreted reliably. I’m not smart enough to fix this to use `printf`, so leave it for now.

* themes/agnoster: lint

* themes: disable SC2154 for colors

Each one of these themes will need it’s own fix for SC2154, possibly upstream.

Due to the way themes are, it's entirely normal to have a *lot* of false positives for SC2034. So much so, that I have to admit that it is probably just not worth linting for SC2034 despite my dislike of blanket ignore rules.

* themes: disable SC2154, fix SC2155

Each one of these themes will need it’s own fix for SC2154, possibly upstream.

Due to the way themes are, it's entirely normal to have a *lot* of false positives for SC2034. So much so, that I have to admit that it is probably just not worth linting for SC2034 despite my dislike of blanket ignore rules.

* Delete `.shellcheckrc`

* remove executable bit
2021-09-18 12:50:59 +03:00
ofir shtrull
2444a57cc5 feat: add k8s namespace indicator (#1887)
* Add k8s namespace to prompt
2021-06-10 16:04:56 +03:00
Cristian Lupascu
1e6113f7b7 Add command duration to the powerline theme family
Fix the __powerline_duration_prompt: location & unused variable `prompt`

Remove the duration segment from powerline* theme defaults

Different color for duration prompt segment
2021-06-05 13:47:54 +03:00
Ofir Shtrull
ffc1701c0a Add to prompt google gcloud active account 2021-03-11 18:25:23 +02:00
David Farrell
e932d8371f Add hooks to check .sh and .bash headers - Fixes #1491 (#1765)
* Add hooks to check .sh and .bash headers
* Adds hooks/ to clean_files.txt
2021-01-09 18:02:26 +02:00
Kan Li
c13850faa2 Address some comments. 2020-11-28 19:07:10 -08:00
Kan Li
8ce9d8daa5 Add in_toolbox prompt to powerline themes
[Toolbox](https://github.com/containers/toolbox) is an containerized
development environment. This commit adds a promot to powerline when it
is running inside a toolbox.
2020-11-28 12:18:13 -08:00
David Farrell
a858e75456 Add Dir Support to Clean_Files; Clean powerline theme 2020-11-03 16:14:02 -08: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
546b4e948f Adds last segment prompt char to powerline default theme 2019-12-30 09:25:12 -08:00
David Farrell
e8ac112583 Adds history/command vars to remaining themes 2019-12-29 10:25:32 -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
David Farrell
921cfea68d Makes NODE vars configurable 2019-12-18 19:32:49 -08:00
David Farrell
db2c6683f1 Makes all powerline vars configurable
Makes all powerline vars configurable

Makes all powerline vars configurable

Makes all powerline vars configurable
2019-12-18 19:22:28 -08: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
349c1df556 Adds soft-separator suport to powerline themes 2019-11-01 10:38:34 -07:00
Levent Yalcin
23fab13d85 requested changes has been made. 2019-06-10 10:57:52 +01: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
Jason Al-Mansor
e6a6bb5deb fix hostname in remaining powerline themes 2018-04-15 14:32:18 -04:00
Nils Winkler
db7ad196b7 Made the change from #902 available to Powerline themes 2017-02-14 08:49:45 +01: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
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