Commit Graph

12 Commits (31d1a007074927d18b541036d171bcfa448cec7b)

Author SHA1 Message Date
John D Pell c7c447a54b theme/candy: SC2154
Handle all unbound parameters, even colors!
2022-01-08 08:45:52 -08:00
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
John Fred Fadrigalan 409e18f7cb
Clean candy theme 2021-04-20 01:18:40 +08:00
Josh Marshall bca7051a62
Fix bold text issue
The default text style was not being set back to normal so terminal output was rendering bold, e.g. for an ls command
2018-05-18 11:52:35 +10:00
MunifTanjim a2a6fa2812 refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06: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
Amaury Gauthier 30489e7775 Remove the color escape which mess up long command line in candy theme 2012-04-29 15:13:30 +02:00
Eitan Adler 3fc60b5358 Fix bogus bash binary location 2012-04-17 00:24:58 -04: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
John Schulz d5645e74a0 Theme changes
* Load colors before base theme so they can be used by base theme
 * Change git-specific variables to SCM-agnostic ones
2010-11-09 23:21:19 -05:00
Robert R Evans 45a50c099e Updated the color themes. Added underline and background colors. 2010-10-09 15:01:50 -07:00
Robert R Evans 70c3b523b3 Added a couple more themes and put colors into its own file 2010-10-03 11:50:22 -07:00