Brandon Maier
|
fe1aa1d16d
|
lib/opts.sh: fix prefixes with embedded '-'
If a `--prefix` path has an embedded '-', shiftval incorrectly detects
it as a flag.
|
2024-10-24 16:46:10 -05:00 |
|
Ethan P
|
82ac5c4391
|
batman: If fzf is installed, use batman to search through man pages
|
2021-08-21 15:22:29 -07:00 |
|
Ethan P
|
20cdf5a998
|
lib: Fix no pager being used when PAGER and BAT_PAGER are unset (#57)
|
2021-04-13 12:08:37 -07:00 |
|
Ethan P
|
4f0b961d12
|
lib: Use 'less' as pager instead of 'bat'
|
2021-04-10 12:24:41 -07:00 |
|
Ethan P
|
08d2896b1a
|
lib: Fix accidental forkbomb when using release.sh
|
2021-04-06 16:21:30 -07:00 |
|
Ethan P
|
650845dee4
|
lib: Fix 'getargs' setting an empty string when no args are left
|
2021-04-03 17:16:15 -07:00 |
|
Ethan P
|
e16e05d1d4
|
lib: Add 'term_clear' function to clear the terminal screen
|
2021-04-02 16:09:24 -07:00 |
|
Ethan P
|
93e2e4d048
|
lib: Fix 'getargs --append' adding an empty value to the array
|
2021-04-02 16:09:10 -07:00 |
|
Ethan P
|
47152d69c3
|
lib: Add '--append' mode to 'getargs'
|
2021-04-02 15:43:45 -07:00 |
|
Ethan P
|
9efc5362df
|
lib: Add 'getargs' to 'lib_opt'
|
2021-04-02 15:38:26 -07:00 |
|
Ethan P
|
b85c7c43e3
|
batpipe: Add batpipe script
|
2021-03-24 18:35:56 -07:00 |
|
Ethan P
|
dd07f98367
|
lib: Add NO_COLOR support
|
2021-03-24 17:08:51 -07:00 |
|
Ethan P
|
d8e7cd1d1b
|
lib: Update copyright year to 2021
|
2021-03-24 15:59:43 -07:00 |
|
Ethan P
|
b275282e36
|
prettybat: Add checks to ensure that files exist
|
2020-12-16 17:15:35 -08:00 |
|
Ethan P
|
65a2f7561e
|
lib: Update option parser to better support short options
|
2020-10-29 01:24:32 -07:00 |
|
Ethan P
|
bb94b33353
|
lib: Improve tests and docs for opt lib
|
2020-10-28 20:04:08 -07:00 |
|
Ethan P
|
a6a1e55522
|
batgrep: Remove hardcoded reference to ripgrep executable
|
2020-10-28 19:19:51 -07:00 |
|
Ethan P
|
1fff0bcc51
|
lib: Add DEFAULT color to printc
|
2020-10-04 00:40:05 -07:00 |
|
Ethan P
|
fa58888298
|
bat-modules: Add --modules-file option
|
2020-07-06 18:15:01 -07:00 |
|
Ethan P
|
e4999a7ffb
|
lib: Add option parsing for short flags followed by number
|
2020-07-06 18:03:30 -07:00 |
|
Ethan P
|
38f56c1bc7
|
batwatch: Split hook_help into a lib script
|
2020-07-06 17:49:29 -07:00 |
|
Ethan P
|
6052d6ee17
|
batdiff/lib: Fix hardcoded git executable name (#35)
Thanks to @lilyball for pointing it out.
|
2020-06-17 17:53:20 -07:00 |
|
Ethan P
|
c9f3125002
|
*: Automatically use 'batcat' when 'bat' is missing
|
2020-05-12 02:31:41 -07:00 |
|
Ethan P
|
63101805be
|
lib: Fix term_width to handle cases where stty size returns '0 0'
|
2020-05-02 17:11:30 -07:00 |
|
Ethan P
|
c98e21df04
|
lib: Reduce size of term_width function
|
2020-05-02 17:03:53 -07:00 |
|
Ethan P
|
427baf1491
|
lib: Add term.sh to more accurately get terminal width
|
2020-05-02 16:58:17 -07:00 |
|
Ethan P
|
e7a394a154
|
lib: Use 'awk' instead of '/usr/bin/awk'
|
2020-05-02 14:58:33 -07:00 |
|
Ethan P
|
20a0058014
|
lib: Fix issue when pagers read an empty argument as a file
|
2020-05-01 23:03:59 -07:00 |
|
Ethan P
|
d29915f141
|
Revert "lib: Remove unused function in pager lib"
This reverts commit 309a2169ba .
|
2020-05-01 22:59:09 -07:00 |
|
Ethan P
|
d5fa65132d
|
lib: Remove opt_hooks.sh and edit scripts to source lib files directly
|
2020-04-30 22:11:36 -07:00 |
|
Ethan P
|
309a2169ba
|
lib: Remove unused function in pager lib
|
2020-04-30 20:37:17 -07:00 |
|
Ethan P
|
e4d790ca91
|
lib: Fix regression in pager library
|
2020-04-30 20:37:01 -07:00 |
|
Ethan P
|
9f983891fd
|
lib: Fix behavior of PAGER environment var (#24)
|
2020-04-30 20:13:03 -07:00 |
|
Ethan P
|
a31b322272
|
lib: Add include guard to constants.sh to lower startup time
|
2020-04-27 19:05:42 -07:00 |
|
Ethan P
|
7754406d54
|
*: Fix regression introduced by opt_hook_width on non-tty output
|
2020-04-27 18:51:36 -07:00 |
|
Ethan P
|
ab0f1b96d6
|
batdiff: Add batdiff script
|
2020-04-27 18:51:36 -07:00 |
|
Ethan P
|
7fa1faf7bf
|
bat-modules: Add working but work-in-progress code
|
2020-04-17 02:40:52 -07:00 |
|
Ethan P
|
9a92579100
|
test: Add suite for DSL parsing library
|
2020-04-17 02:25:33 -07:00 |
|
Ethan P
|
c5927f72af
|
bat-modules: Start work on bat-modules script
|
2020-04-17 01:58:59 -07:00 |
|
Ethan P
|
9c489732e6
|
lib: Add 'dsl.sh' library for parsing simple DSL
|
2020-04-17 01:12:11 -07:00 |
|
Ethan P
|
04912ff8fd
|
Add include for constants.sh from print.sh
|
2020-04-08 03:49:57 -07:00 |
|
Ethan P
|
03971fe64e
|
Split hooks into separate files to reduce compiled size
|
2020-04-08 03:19:58 -07:00 |
|
Ethan P
|
a91ee96e6a
|
Update scripts to use $EXECUTABLE_BAT instead of $BAT
|
2020-04-08 03:15:02 -07:00 |
|
Ethan P
|
a3d2df5927
|
Update all scripts to use constants, add --version support
|
2020-04-08 03:00:04 -07:00 |
|
Ethan P
|
7eac8b265d
|
Add tests for pager library
|
2020-04-06 13:01:39 -07:00 |
|
Ethan P
|
47c15dd264
|
Fix regression where --color would no longer work by itself
|
2020-04-01 13:40:57 -07:00 |
|
Ethan P
|
94ca32b0db
|
opt_hooks.sh: Add checks for invalid --color and --paging
|
2020-04-01 12:59:30 -07:00 |
|
Ethan P
|
07c2cabc81
|
Fix small formatting and logic regressions
|
2020-04-01 12:47:21 -07:00 |
|
Éfrit
|
f4765bfa54
|
Fix most of the errors and warnings reported by shellcheck
|
2020-04-01 02:55:41 +02:00 |
|
Éfrit
|
73aafa56e1
|
Format with vs-shell-format
|
2020-04-01 02:55:41 +02:00 |
|