Alois Mahdal
3a95e4dff6
Improve sleeping/beeping Bash functions
Move bb() double-functionatity (sleep+throw alarm but also tell about
it) to snore() and keep bb() without info output.
Also add dotsleep() to double down on the outputting by producing dots
while sleeping.
il y a 7 mois
Alois Mahdal
2a8a12d42e
Add prepend() to simplify mass-renaming files by prepending a string
(Yeah, I know, weirdly specific and likely not very useful.)
il y a 7 mois
Alois Mahdal
cd9f64f8ca
Try and fixe Bash history
Turns out what also breaks it is what might be a bug in Bash causing
HIST* vars in Debian's .bashrc trim the history immediately, before wwe
get a chance to set it to a huge number.
The workaround -- which cannot be done safely within bashum -- is to
comment any HIST* variables in your .bashrc.
il y a 7 mois
Alois Mahdal
4d213f1fd0
Move .bashum to .config/bashum
il y a 7 mois
Alois Mahdal
26efba26bc
Use proper directory name also for exit status temp
il y a 3 ans
Alois Mahdal
b1ad0f7e7f
Use 'bashum' directory name for bash extensions
We already call it that way internally.
il y a 3 ans
Alois Mahdal
3967244319
Update 'sc' alias for the new 'se' implementation
il y a 3 ans
Alois Mahdal
4923f431e8
Prefer cmark for mdvimb
On Fedora, commonmark is from nodejs-commonmark, which is long-term
broken.
il y a 3 ans
Alois Mahdal
9d2affbfa0
Use more standard xdg-open for open()
il y a 3 ans
Alois Mahdal
e6e3615b15
Fix /usr/bin/cal version detection
il y a 3 ans
Alois Mahdal
0ac602f1e2
Add urle() for urlencode encoding/decoding
il y a 3 ans
Alois Mahdal
be0cf4240d
Remove unused variable declaration
il y a 3 ans
Alois Mahdal
0d854d68d5
Do notify about sleeping
il y a 3 ans
Alois Mahdal
c877c56c9f
Use BASHUM_COLOR_* globals for color codes
il y a 3 ans
Alois Mahdal
e6894b6421
Pass delay from nn() to bb()
il y a 3 ans
Alois Mahdal
0430d68a16
Add smv() and smvr() for "moving" files/trees via scp
il y a 3 ans
Alois Mahdal
7d4bd188f3
Add xcp() and xpst() to simulate file copy-pasting ops
il y a 4 ans
Alois Mahdal
2b0a29df16
Add default vars for neaty
il y a 5 ans
Alois Mahdal
cadd660155
Ask xvb() and xxvb() for quick ad-hoc Bash scriptlets
il y a 5 ans
Alois Mahdal
83c05b561e
Add vxx() for editing stdin to C-C/C-V clipboard
il y a 5 ans
Alois Mahdal
6a26eeaa42
Fix typo in docstring
il y a 5 ans
Alois Mahdal
997d7f356f
Add stdin repeaters
lrep() and prep() repeat every line, or whole stream, on stdin
$1 times.
il y a 5 ans
Alois Mahdal
b698f29841
Add pp(), like nn() but also pause
il y a 5 ans
Alois Mahdal
d5ce4d0e50
Add support for arguments in __bashum_run_n()
People can now run
__bashum_run_n 100 echo hello world
and it will print "hello world" 100 times, instead of just running
`echo` 100 times and ignoring the `hello world` part.
il y a 5 ans
Alois Mahdal
6ba46c6d14
Add xcxx(), to use command to transform clipboard (xvxx style)
il y a 5 ans
Alois Mahdal
6c641c3b83
Add interactive functions xl()/xxl() to show clipboards
il y a 5 ans
Alois Mahdal
011593cfb0
Add usage error
il y a 5 ans
Alois Mahdal
e76325ac53
Add 'lt' -- as ll but sorted according to time
il y a 5 ans
Alois Mahdal
090dfaed72
Add YAML quick validator
il y a 5 ans
Alois Mahdal
40e5955c38
Add nn(), like bb() but with a memo hint
il y a 5 ans
Alois Mahdal
7dd26640da
Enable verbosity for mkittool by alias
il y a 5 ans
Alois Mahdal
134bbc9222
Add higlight to normal pstree calls
il y a 5 ans
Alois Mahdal
762a84bf50
Add mdvimb styles to configuration
'darkzen' color profile for HTMLs generated by mdvimb
il y a 5 ans
Alois Mahdal
7b6ebd31bf
Moved mdvimb to a standalone script (local, so far)
Get current version at https://netvor.info/scripts/mdvimb
il y a 6 ans
Alois Mahdal
e3aad7106e
Allow for a little nap before the bell
il y a 6 ans
Alois Mahdal
5be271d311
Deal with several ShellCheck warnings
Work around, obey, or disable.
il y a 6 ans
Alois Mahdal
9709cd0367
Remove unnecessary comment
il y a 6 ans
Alois Mahdal
8783d417b1
Disable safe and unavoidable ShellCheck warning
il y a 6 ans
Alois Mahdal
885313faf8
Try to be smart about cal utility version
il y a 6 ans
Alois Mahdal
6b7669ba4b
Always follow symlinks in recursive grep's
il y a 6 ans
Alois Mahdal
cd90fa9d87
Add utility function to print horizontal "ruler"
Mostly for easier visual distinction and also for fun.
il y a 6 ans
Alois Mahdal
c7d437ded5
Keep timestamp in Bash history
il y a 6 ans
Alois Mahdal
6995b11461
Improve mdvimb() to accept no args or `-` for stdin
il y a 6 ans
Alois Mahdal
7afe9ac763
Weechat logs have been moved elsewhere some time ago
il y a 6 ans
Alois Mahdal
fb66dc0584
Add grepr1(), "flat" version of grepr()
il y a 6 ans
Alois Mahdal
f1cf00ea3d
Add alias for simple wttr.in query
il y a 6 ans
Alois Mahdal
cb9343ba7c
Add stdout to clipboard editor
il y a 6 ans
Alois Mahdal
a0f3f5a8e3
Give more logical naming to clipboard editors
'x' meaning primary, 'xx' meaning 'C-C' and 'v' meaning vipe(1).
il y a 6 ans
Alois Mahdal
5e8dc77f1b
Add simple Quoted-Printable encoding/decoding function
il y a 6 ans
Alois Mahdal
b0b2b2362b
Use `[:blank:]` or space as default split/join character
il y a 6 ans