19 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
Noah Gorny
dff892e0a3 themes: Adapt themes to new scm_prompt api 2021-05-16 19:17:02 +03:00
tiago
cb5047734b retval check 2021-01-27 22:55:44 +00:00
tiago
3a846a2d47 cleanup modern theme 2021-01-27 22:55:44 +00:00
tiago
e2be8bc2bc trailing and code style 2021-01-23 17:30:20 +00:00
tiago
54bf7f9a59 check if last command successful 2021-01-23 17:10:32 +00:00
tiago
bb6354e205 removed trailing spaces 2021-01-23 14:42:58 +00:00
tiago
c7f6e80ad0 fix modern theme, added virtualenv name 2021-01-22 17:07:16 +00: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
JFSIII
1b7c9419bf Convert themes and plugins to use the update colors. Themes are no longer burdened with escaping the unprintable characters 2011-06-17 19:45:21 -04:00
Mark Szymanski
8dded4fdc5 Added battery info for modern theme 2011-03-06 18:40:16 -06:00
Mark Szymanski
047933378f Added titlebar PWD to modern theme 2011-02-05 11:49:47 -06:00
Mark Szymanski
56d016aed1 Added feature to 'modern' theme to show if you are in vim's shell (achieved by the :sh command) 2010-12-19 09:40:52 -06:00
Mark Szymanski
7c13d46bb1 Added comment to 'modern' theme 2010-12-17 17:56:43 -06:00
Mark Szymanski
f3d19db472 Added $PS3 customization for 'modern' theme. 2010-12-14 18:36:44 -06:00
Mark Szymanski
668f8e68c0 Added PS2 to modern theme 2010-12-05 21:15:30 -06:00
Mark Szymanski
0a67e549cb Added more colors to 'modern' theme 2010-12-05 16:03:33 -06:00
Mark Szymanski
e553638577 Added colors to 'modern' theme 2010-12-05 15:49:51 -06:00
Mark Szymanski
8a3d525460 Added modern theme 2010-12-05 15:40:46 -06:00