Commit Graph

700 Commits (040474499f066862761f231a30831ee1c74d22d2)

Author SHA1 Message Date
Konstantin Gredeskoul 040474499f
Adding node prompt that does not require NVM
There are now alternative version managers available, such as volta.sh.
We should be able to show node version regardless of whether you are
using NVM or not. I decided not to add dedicated PREFIX variables for
now, but it can be done later.

We still check nvm first, and if it returns something — we use it.
Only if the output of NVM is blank do we use the new function to grab the version of NodeJS.

There is a caveat — if node is installed with the OS, eg `/usr/bin/node` this
function will pick it up and run `--version` on it, and therefore it will
now be displayed in the prompt.

Tested locally on OS-X/bash:

* with/without NVM
* with/without VOLTA
* with/without system node
2021-09-12 23:35:38 -07:00
Konstantin Gredeskoul 2db1698680
More themes 2021-04-30 08:21:48 -07:00
Konstantin Gredeskoul 977cacf54a
Skip dirname stderr 2021-04-29 20:20:12 -07:00
Konstantin Gredeskoul a30b04f376
WIP — enhancements 2021-04-23 04:35:29 -07:00
Konstantin Gredeskoul 380cfb3343
WIP: more fixes to the prompts 2021-04-23 04:35:29 -07:00
Konstantin Gredeskoul f1fa5e0ccd
Various powerlline enhancements and simplification 2021-04-23 04:35:26 -07:00
Konstantin Gredeskoul 5dcb8243b7
Fixing base theme 2021-04-23 04:31:09 -07:00
Konstantin Gredeskoul 4e6a3c5794
Fixing colors + sedx 2021-04-08 11:46:36 -07:00
Konstantin Gredeskoul a519448852
Adding shortening of CWD and Golang 2021-04-08 11:46:33 -07:00
Konstantin Gredeskoul 4256dcf54e
Adding support for BASH_IT_COLORSCHEME variable + colorschemes 2021-04-08 11:40:38 -07:00
Titivoot Pangrit 6866648ac6 Add theme Easy 2021-04-01 00:28:28 +03:00
Noah Gorny 4860fb8c60
Merge pull request #1849 from tiagobarros99/purity-add-virtualenv
purity theme, added virtualenv name display
2021-03-25 19:16:35 +02:00
tiago cda81f3d74 cleaned and linted purity theme 2021-03-24 21:39:57 +00:00
tiago 64c4c30706 minor change 2021-03-17 15:39:57 +00:00
tiago ea444459cf improved PS1, function rename 2021-03-17 15:26:39 +00:00
Ofir Shtrull 8ae2b1e73d fix typo 2021-03-11 18:32:10 +02:00
Ofir Shtrull ffc1701c0a Add to prompt google gcloud active account 2021-03-11 18:25:23 +02:00
tiago 682d6d728d added python's virtualenv name 2021-03-10 15:24:32 +00: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
Noah Gorny 9b04e11bfc
Merge branch 'master' into vendor 2021-01-27 16:43:34 +02:00
Noah Gorny 7b817f388d
Merge pull request #1790 from BarbUk/clean/theme_starting_by_b
Clean b* themes
2021-01-26 19:57:45 +02:00
tiago e80e29be6d Merge remote-tracking branch 'upstream/master' into fix-modern-theme 2021-01-24 14:09:48 +00:00
buhl 29855ed1e6 Adding preexec as a vendored library
Added a vendored lib loading routine in bash-it.sh
Added documentation on how to vendor libs in bash-it
Added and fixed plugins using preexec
Added tests for two plugins
Removed the old preexec lib
2021-01-23 18:31:18 +01: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
BarbUk f86d823dc3
Disable SC2207 to keep COMPREPLY simple 2021-01-22 18:41:16 +04:00
Noah Gorny d2ab59fef8 Disable keep-padding option in shfmt
Has some serious bugs and not really needed
Also fixed all files that need to be changed after this
2021-01-21 22:08:45 +02:00
BarbUk b92f53ece5
Update atomic theme with correct `compgen` syntax 2021-01-16 23:21:04 +01:00
BarbUk ef42c822e6
Update brainy theme with correct `compgen` syntax 2021-01-16 23:18:58 +01:00
BarbUk 814ff562e9
Fix rbenv version prompt 2021-01-16 09:25:12 +01:00
BarbUk 86fd073ee6
Clean brunton 2021-01-16 09:13:23 +01:00
BarbUk 662a5c4ac7
Clean brainy 2021-01-16 09:13:10 +01:00
BarbUk eadd2685df
Clean bobby 2021-01-16 09:12:59 +01:00
BarbUk 8691894175
Clean bira 2021-01-16 09:12:42 +01:00
BarbUk cfb9a22e70
Clean binaryanomaly 2021-01-16 09:12:20 +01:00
BarbUk fb0fa7f799
Clean bakke 2021-01-16 09:12:06 +01:00
BarbUk bd6dbd3edf
Merge branch 'master' into clean/theme_atomic_and_axin 2021-01-14 13:45:31 +01:00
Marcos Pereira 94d261b42d
Fix shellcheck warnings for themes/base.theme.bash 2021-01-12 00:55:15 -05:00
Marcos Pereira 5a761b7ae3
Run code fomatter for themes/base.theme.bash 2021-01-11 15:14:49 -05:00
BarbUk e574abbbba
Clean theme atomic 2021-01-11 11:42:04 +01:00
BarbUk 6495e3479e
Clean theme axin 2021-01-11 11:41:44 +01: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
Noah Gorny f255d03057 shellcheck agnoster theme 2021-01-07 19:11:22 +02:00
Noah Gorny 60da498ed4 shfmt agnoster theme 2021-01-07 19:11:22 +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
Russell b119540ce7
Add comment to install "t" and disable "todo.plugin" (#1742)
This commit is intended to help new uses of the
modern-t theme get it set up properly
and avoid the "todo.plugin" breaking it

Please see the following issues for details.
https://github.com/Bash-it/bash-it/issues/1693
https://github.com/Bash-it/bash-it/issues/1374

Co-authored-by: Russell Adams <russell.adams@avast.com>
2020-12-27 17:24:52 +02:00