Commit Graph

3929 Commits

Author SHA1 Message Date
Dylan Tuttle
0ab80429ce Removed Bash Dependency section from README and added it to troubleshooting.rst 2022-09-22 16:27:52 -06:00
Dylan Tuttle
f2bc6c4e6d Added update-bash section in README 2022-05-08 00:49:27 -06:00
Noah Gorny
4dddba3bc6 Merge pull request #2145 from tbhaxor/bugfix/docs
Upgrade the sphinx version
2022-05-07 23:29:43 +03:00
Gurkirat Singh
c2698882e4 fix (docs): ugraded sphinx version 2022-05-07 00:32:15 +05:30
Gurkirat Singh
135d480c7d improve (docs): exclude venv pattern in build 2022-05-07 00:31:21 +05:30
Noah Gorny
35334cdcb0 Merge pull request #2121 from BarbUk/update/theme_barbuk
Update of barbuk theme (add modular blocks)
2022-04-13 00:22:04 +03:00
Noah Gorny
b95094153f Merge pull request #2139 from tbhaxor/patch-3
Improve bashit upgrade function git log and add missing popd
2022-04-06 23:06:52 +03:00
Gurkirat Singh
6ccd9f5adf fix (helpers): bashit_update function return to source path and --no-merges in log 2022-03-21 08:52:46 +05:30
Noah Gorny
1ffbc85a62 Merge pull request #2138 from eviweb/fix-projects-plugin-regression
fix projects plugin regression
v3.0.2
2022-03-16 21:54:51 +02:00
Noah Gorny
60c4c0b598 Merge pull request #2132 from NoahGorny/add-default-editor-nano
general: Add default nano editor for the edit alias
2022-03-16 21:47:02 +02:00
Eric Villard
088212fd32 fix projects plugin regression
This regression was introduced in ea2002a.

Before this commit, when the provided project was unique under all the
project paths, the command automatically change the directory to it.
Currently this is no more the case.
If there are many project paths set, then the project path menu is shown
at every call.
This PR solves this issue.

Signed-off-by: Eric Villard <dev@eviweb.fr>
2022-03-16 08:43:52 +01:00
Noah Gorny
d1b831a92d Merge pull request #2119 from BarbUk/fix/command_duration_precision
Fix/command duration precision
2022-03-14 11:59:27 +02:00
Noah Gorny
69407018a7 Merge pull request #2129 from tbhaxor/fix/awscli-completion
Clean awscli completion
2022-03-14 11:55:44 +02:00
Noah Gorny
a481ff41ab general: Add default nano editor for the edit alias 2022-03-14 11:20:40 +02:00
Noah Gorny
7cc2ced3b9 Merge pull request #2122 from BarbUk/fix/grep_path
Fix grep path when a grep alias exists
2022-03-14 10:58:48 +02:00
Gurkirat Singh
66fbed7f6f fix (completion): format awscli 2022-03-13 05:21:13 +05:30
Gurkirat Singh
6b0ca17df0 improve (lint): add awscli.completion.bash in clean_files.txt 2022-03-13 05:20:57 +05:30
BarbUk
23efb39fb0 Fix grep path when a grep alias exists 2022-03-11 09:08:58 +01:00
BarbUk
9a71556b99 shfmt needs more spaces 2022-03-09 22:04:18 +01:00
BarbUk
e1ddf6e311 Fix dynamic clock icon (#2120)
* Fix dynamic clock icon

* Use printf variable scope

* shfmt do not like spaces
2022-03-09 22:59:48 +02:00
BarbUk
0068315c35 Update documentation 2022-03-09 21:38:03 +01:00
BarbUk
b839294827 Complete rework 2022-03-09 21:29:51 +01:00
BarbUk
634c1f8c18 Fix spacing in string output 2022-03-09 11:01:53 +01:00
BarbUk
4686ce1f12 Fix precision to use deciseconds instead of nanoseconds 2022-03-09 09:38:16 +01:00
Noah Gorny
a6fd93076d Merge pull request #2114 from NoahGorny/fix-preview
Fix bash-it preview
v3.0.1
2022-03-08 16:59:02 +02:00
Noah Gorny
13531c9534 lib: search: Increase delay in _bash-it-flash-term to 0.2 secs 2022-03-08 00:02:23 +02:00
Noah Gorny
77c135956d lib: preview: Load only bash-it.sh when previewing
Otherwise you change your theme to your default...
2022-03-08 00:01:37 +02:00
Noah Gorny
23ac376f10 Merge pull request #2110 from tbhaxor/feature/osx-alias
Add open brave browser alias
2022-03-07 00:25:36 +02:00
Ira Abramov
ec6d371db8 Add a 'theme' for OMP, so the internal themes don't clash with it. (#2100)
* Add a 'theme' for OMP, so the internal themes don't clash with it.

* Add theme to clean_files

* Add screenshot to the docs

* Correct the name of the default theme in the docs.

* keeping it cleaner

Co-authored-by: Ira Abramov <github@ira.abramov.org>
2022-03-07 00:23:49 +02:00
John D Pell
db6fd42104 Merge pull request #2108 from tbhaxor/patch-3
fix test file path in `clean_files.txt` from the 7fcad6e commit
2022-03-06 12:17:25 -08:00
Gurkirat Singh
f2b4d82527 feature (alias): add open brave browser 2022-03-06 12:00:23 +05:30
Gurkirat Singh
55e698a737 fix test file path from the 7fcad6ed0d commit 2022-03-06 04:25:33 +05:30
John D Pell
3a778072db Merge pull request #1906 from gaelicWizard/command_duration
Revamp command duration helper/plugin
2022-03-04 13:00:05 -08:00
John D Pell
866e5be86b lib/command_duration: tests & whitespace 2022-03-04 12:58:07 -08:00
John D Pell
1c2fc2837f lib/command_duration: adopt _bash_it_library_finalize_hook 2022-03-04 12:58:07 -08:00
John D Pell
4e0e59230b lib/command_duration: rename theme/command_duration.theme
Rename the `theme/command_duration.theme` file as it's not really got anything to do with theming or SCM.
2022-03-04 12:58:07 -08:00
John D Pell
6ca10cf84c plugin/cmd-returned-notify: Rewrite to match/use lib/command_duration
Use `$EPOCHREALTIME` (or `$SECONDS`) built-in variable provided by Bash instead of `date +%s`. We're only measuing the difference in seconds, so avoid both the binary invocation as well as the subshell.

Alsö, Reduce environmental pollution by not exporting every variable, and unsetting when done.

Change variable names to match lib/command-duration

Remove `preexec_return_notification()` in favor of `lib/command-duration`'s `_command_duration_pre_exec()`.

This should now use the same preexec hook and variables as the theme library `command_duration`.

tests: handle nanoseconds
2022-03-04 12:58:07 -08:00
John D Pell
33505d4db1 lib/command_duration: Refactor using $EPOCHREALTIME
Fallback to `$SECONDS` for older versions of _Bash_.

Instead of shortcircuiting the definition, just short-circuit the function. This allows the variable to be set later, e.g. on theme change.
2022-03-04 12:58:07 -08:00
John D Pell
09e8c25b64 lib/command_duration: dynamic clock hand
Calculate the position (from 1 to 12) of the hour hand on the clock emoji used for the _command_duration string.

Expressly handle COMMAND_DURATION_COLOR as blank when undefined.
2022-03-04 12:39:58 -08:00
John D Pell
ad1d73aaa1 lib/command_duration: remove temporary files 2022-03-04 12:39:02 -08:00
John D Pell
ca8101b34a Merge pull request #2031 from gaelicWizard/bats-cleanup 2022-03-04 11:25:06 -08:00
Noah Gorny
9dece7fe58 Merge pull request #2105 from gaelicWizard/bats/upower
plugin/battery: fix handling of multiple batteries with `upower`
2022-03-04 20:58:17 +02:00
Noah Gorny
49649c5f0c Merge pull request #2028 from gaelicWizard/plugin/base
lib/appearance: export `$CLICOLOR` instead of `$LSCOLOR`
2022-03-04 20:50:33 +02:00
Noah Gorny
6a53066b05 Merge pull request #2077 from Console-Utils/feature/issue-forms
Upgrade to GitHub issue forms
2022-03-04 20:49:54 +02:00
Noah Gorny
53e5965f2d Merge pull request #2038 from gaelicWizard/theme/base
lib/theme: `shfmt`, `shellcheck`, and some cleanup
2022-03-04 20:49:24 +02:00
John D Pell
999b787c92 Close #2082 2022-03-04 00:07:35 -08:00
John D Pell
0286a50fcd lib/appearance: export $CLICOLOR instead of $LSCOLOR
Alsö, since the *value* of `$CLICOLOR` is not used anywhere, overload it to count the number of colors available for use elsewhere.
2022-03-03 23:58:55 -08:00
John D Pell
f7cba27f10 lib/appearance: shellcheck && shfmt 2022-03-03 23:58:55 -08:00
John D Pell
029e53a433 plugin/battery: fix handling of multiple batteries with upower 2022-03-03 23:45:40 -08:00
John D Pell
6d422f17e4 Revert dc380e9ed6 2022-03-03 23:33:05 -08:00