Commit Graph

25 Commits (3c2bc3d1967fe6e4cf3a065aa3a63eb8e8cf6ed2)

Author SHA1 Message Date
John D Pell 6db5f38f6e theme/atomic: lint/cleanup
Use `[[` instead of `[`, set some local variables, still more to clean
2022-01-08 08:45:35 -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
BarbUk f86d823dc3
Disable SC2207 to keep COMPREPLY simple 2021-01-22 18:41:16 +04:00
BarbUk b92f53ece5
Update atomic theme with correct `compgen` syntax 2021-01-16 23:21:04 +01:00
BarbUk e574abbbba
Clean theme atomic 2021-01-11 11:42:04 +01:00
Noah Gorny 1702e0217a docs: Remove themes readmes 2020-12-04 17:24:26 +02:00
Luis Felipe Sánchez 794f0e321e
Update atomic.theme.bash
fixed the space error after hiding the scm
2020-11-26 09:11:08 -05:00
Ira Abramov c42e3e8b21 Removed trailing whitespaces 2020-10-29 19:57:14 +02:00
David Farrell d79fc5027b
theme/atomic: update sudo check method 2020-03-31 14:02:22 -07:00
Luis Felipe Sánchez ad2112ca50
Update README.md 2017-11-10 14:38:33 -05:00
Luis Felipe Sánchez 0008bec5d7
Update README.md
Update Readme for fix image demo
2017-11-09 16:50:12 -05:00
Luis Felipe Sánchez 7fbfc3f356
Update README.md 2017-10-30 16:26:43 -05: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
Luis Felipe Sánchez d2fb415856 Update atomic.theme.bash
Improvements in the theme
2017-07-03 12:09:27 -05:00
Nils Winkler 11469fe235 Fix battery_percentage check in Atomic theme
Check for the return value "no", which is returned when no battery check funcationality is available in the OS. This is now consistent with how the Brainy theme does this.
2017-06-24 17:31:31 +02:00
Luis Felipe Sánchez d4bc67ffdd Update Theme
Minor Fixes
2017-06-15 15:37:01 -05:00
Luis Felipe Sánchez 794b1661f6 Create README.md 2017-06-15 15:32:53 -05:00
Luis Felipe Sánchez 7d318def48 Update atomic.theme.bash
Theme improved to 100%
2017-05-28 13:39:48 -05:00
Luis Felipe Sánchez f936b1e485 Update atomic.theme.bash
Minor Updates u_u
2017-05-26 13:41:08 -05:00
Luis Felipe Sánchez 692c3516d5 Update atomic.theme.bash
Minor Updates
2017-05-26 13:38:22 -05:00
Luis Felipe Sánchez 8e98790c1d Update atomic.theme.bash
- Changed the dependence of the battery plug-in.
- Now checking if the function of the battery plugin exists, otherwise it will not load.
2017-05-26 13:35:11 -05:00
Luis Felipe Sánchez 6e1477a8aa Update atomic.theme.bash
- Reverted Battery Segment to the original.
- Now the segment is the same for all operating systems.
- Battery Plugin control segment battery in theme.
- I have cleaned and organized the code 😃
2017-05-25 23:43:18 -05:00
Luis Felipe Sánchez 7a51ea23ee Improvements in Atomic theme
Operating system detection was added to show the percentage of the battery in the promt
2017-05-25 00:21:30 -05:00
Luis Felipe Sánchez a064a01ce3 Update README.md
Updated Installation Instructions.
2017-05-22 14:53:56 -05:00
Luis Felipe Sánchez 23e1bb9a7b New theme Atomic added and reverted the theme Brainy by default
- Brainy theme reverted to original.
- add Atomic theme based on the original brainy.
- Special thanks to @MunifTanjim and @nwinkler for such excellent job.
2017-05-22 14:26:13 -05:00