Commit Graph

28 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
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
BarbUk
ae9da3b62b Clean barbuk theme (#1766) 2021-01-07 19:05:00 +02:00
BarbUk
13e795c995 add command time duration plugin (#1683) 2020-12-27 18:48:17 +02:00
Noah Gorny
1702e0217a docs: Remove themes readmes 2020-12-04 17:24:26 +02:00
Ira Abramov
c42e3e8b21 Removed trailing whitespaces 2020-10-29 19:57:14 +02:00
BarbUk
5e65235d0e Theme barbuk - add venv glyph and fix venv display in ssh mode (#1681)
* Add python venv glyph

* Fix venv display (tested for local and ssh prompt)

* Add documentation for python venv
2020-10-21 00:27:48 +03:00
8F3E
43dfe23d10 Declare python_venv as a local variable 2020-09-23 11:32:18 +01:00
8F3E
185257e971 Detect python venv and show in prompt 2020-09-22 11:31:05 +01:00
BarbUk
c4b8d4cf2e Update documentation 2020-04-08 11:06:44 +04:00
BarbUk
b968ecac80 Update custom var naming 2020-04-08 11:06:26 +04:00
Nils Winkler
4e5c241095 Merge pull request #1538 from davidpfarrell/themes/barbuk/defaults
theme/barbuk: Update prefix for overrides
2020-04-08 08:54:39 +02:00
BarbUk
3c6ffeb44f Update theme var prefix 2020-04-01 12:09:54 +04:00
BarbUk
0896ff2fb3 Use same notation for user@hostname 2020-04-01 01:08:38 +04:00
BarbUk
d6d4e4bc7d Fix typo 2020-04-01 01:05:15 +04:00
BarbUk
78db4d56f0 Update documentation to explain new BARBUK_HOST_INFO configuration 2020-04-01 01:02:24 +04:00
BarbUk
347995d33e Allow to customize hostname format 2020-04-01 01:02:01 +04:00
BarbUk
6d0744a928 Update documentation 2020-04-01 00:48:11 +04:00
BarbUk
d39eb053cf Allow to disable ssh info 2020-04-01 00:46:58 +04:00
David Farrell
6943996f0b Revert the NONE_CHAR override 2020-03-31 10:21:02 -07:00
David Farrell
9e443009ac theme/barbuk: Update prefix for overrides 2020-03-31 10:15:22 -07:00
David Farrell
8c44bae797 theme/barbuk: Update prefix for overrides 2020-03-31 10:12:19 -07:00
BarbUk
337ed0de9a Documentation for ssh and sudoer configuration 2020-03-31 12:16:06 +04:00
BarbUk
81c4ed70ea Add user@host information for ssh session 2020-03-31 12:15:28 +04:00
BarbUk
f4cc8ddb77 Allow git glyphs customization 2020-03-30 14:23:58 +04:00
BarbUk
611d4f234f Update font documentation 2020-03-30 02:11:30 +04:00
BarbUk
5654874aee Documentation: font usage for theme barbuk 2020-03-30 01:53:27 +04:00
BarbUk
c0af591f2f Add theme barbuk 2020-03-09 17:24:18 +04:00