Commit Graph

36 Commits (master)

Author SHA1 Message Date
John D Pell 262e55eda2 theme/bobby: 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
BarbUk eadd2685df
Clean bobby 2021-01-16 09:12:59 +01:00
Zhengnan Zhao f3cb4e5122 Make bobby and bobby-python themes more readable 2020-10-01 23:45:57 -04:00
Ivan Font 17999fcc13 Update bobby theme to use scm_prompt_char_info
The bobby theme now uses scm_prompt_char_info to print out the SCM char
and SCM prompt info. This also required fixing the
SCM_THEME_PROMPT_PREFIX to match GIT_THEME_PROMPT_PREFIX.
2017-01-16 23:23:13 -08:00
MunifTanjim a2a6fa2812 refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
MunifTanjim 7d901b11b6 seperate clock_char function 2016-10-17 04:11:09 +06:00
MunifTanjim 01dab32683 modify clock prompt for better customizability 2016-10-17 03:37:25 +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
goromlagche e525ea1fbe clock_check added, datetime added instaed of clock, also battery_percentage added 2015-08-12 22:59:18 +05:30
goromlagche 39b5d0b042 adding time to bobby 2015-08-12 00:20:50 +05:30
Omer Katz abb0167ffa Revert "Added pyenv-virtualenv plugin" 2014-12-14 09:52:27 +02:00
Luke Culbertson a0f89bc1f8 Added better support for pyenv, virtualenvwrapper, and autoenv
working in concert with one another.
Features added:
- Added a pyenv-virtualenv plugin which creates virtual environments
  using the current pyenv python version
- `cd` into a directory that has a virtual environment already created
  and autoenv will automatically activate that environment
- Current virtual environment is displayed in command prompt
2014-09-25 17:23:53 -07:00
Eitan Adler 3fc60b5358 Fix bogus bash binary location 2012-04-17 00:24:58 -04:00
Hendrik Mans 1be4467429 Update (most) themes to use new ${ruby_version_prompt} variable. 2012-01-26 16:07:06 +01: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
Robert R Evans ee943453ab Updated my theme 2011-01-13 15:10:31 -08:00
Robert R Evans 6c97585329 merge conflict 2010-11-10 15:49:21 -08:00
Robert R Evans 1148f42c5b Updated bobby theme and merged in noqqe's additions 2010-11-10 15:45:48 -08:00
John Schulz e7cfe6d1df Lost the wrapping for non-printable characters 2010-11-09 23:52:25 -05: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 7aa791e2d6 Improved the wrapping of the bobby theme 2010-10-21 15:06:32 -07:00
Robert R Evans d0d58f3763 rvm goodness 2010-10-09 21:47:45 -07:00
Robert R Evans 698509adb0 Added rvm prompt info 2010-10-09 21:46:28 -07:00
Robert R Evans f1ead0535b updated bobby theme 2010-10-09 16:28:16 -07:00
Robert R Evans b64c228da5 Updates 2010-10-07 17:15:14 -07:00
Rich Manalang 63d5e7be5e update the tab/window title with the pwd 2010-10-07 13:19:53 -07:00
Robert R Evans 7ca450440c Fixed issue #2 2010-10-06 18:21:46 -07:00
Robert R Evans c9da086643 Removed custom.bash and am now completely ignoring all files within the custom directory. Started de-macify to provide more support for linux (thanks to alsemyonov on github). 2010-10-06 17:27:55 -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
Robert R Evans 1f923a90ad Added more color support for git themeing 2010-10-03 09:41:36 -07:00
Robert R Evans a4d0242dd0 Help files. Added the rest of bash it 2010-10-02 15:07:29 -07:00
Robert R Evans a7d1ee0c02 Added help screens. 2010-10-02 15:04:24 -07:00
Robert R Evans e0b3ef5f8f Cleaner colors for reuse 2010-10-02 12:54:15 -07:00
Robert R Evans 76ed68d18c Cleaned bash it up 2010-10-02 12:29:17 -07:00
Robert R Evans 9c7cd9aa00 First Commit 2010-10-02 11:55:34 -07:00