Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change cf() from Bash func to shell script | Tom Ryder | 2016-07-30 | 1 | -0/+27 |
| | |||||
* | Move sprunge() Bash function to spr(1) | Tom Ryder | 2016-07-30 | 1 | -0/+4 |
| | |||||
* | Change pa and paz bash funcs to sh scripts | Tom Ryder | 2016-07-30 | 2 | -0/+8 |
| | |||||
* | Change ca from Bash func to sh script | Tom Ryder | 2016-07-30 | 1 | -0/+3 |
| | |||||
* | Change mkmv/mkcp from Bash funcs to sh scripts | Tom Ryder | 2016-07-30 | 2 | -0/+12 |
| | |||||
* | Quote heredoc string in edda(1) | Tom Ryder | 2016-07-27 | 1 | -1/+1 |
| | |||||
* | Rename vis(1) to eds(1) | Tom Ryder | 2016-07-23 | 1 | -6/+6 |
| | | | | vis(1) is in OpenBSD >=4.4 base | ||||
* | Replace use of ${var:?} with explicit errors | Tom Ryder | 2016-07-15 | 3 | -4/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <http://mywiki.wooledge.org/BashFAQ/100#Default_or_alternate_values> >Nobody ever uses ${var?word} or ${var:?word}. Please pretend they don't >exist, just like you pretend set -e and set -u don't exist. ><tejr> from FAQ 100: >Nobody ever uses ${var?word} or ${var:?word}. ><tejr> why is that? just because it's unwieldy, or are there other >technical reasons? ><ormaaj> tejr: Putting random fatal unhandlable errors into a script is >generally useless. ><tejr> ormaaj: is it less handleable than a more explicit check, like >`[[ $var ]] || exit 1` ? ><ormaaj> yes ><ormaaj> # : ; ${_[RANDOM%2]?:you win} ><shbot> ormaaj: no output ><ormaaj> didn't win ><tejr> i was thinking more as a terse means of perhaps asserting a >variable had a value, like a positional parameter; are you saying if >you really did just want to write to stderr and exit with failure, it's >still inappropriate? ><ormaaj> depends on the complexity I suppose but I'd not consider that >unless it's the global scope in a file you know isn't going to be >sourced and has no other explicit error handling. Even then it's ugly >because it bails out in the middle of evaluating parameters that >technically could have side-effects and such. ><tejr> ahh yes, kinda a separation of concerns ><tejr> that makes more sense now! thank you > * tejr combs his scripts to see if he's used it anywhere ><ormaaj> tejr: another reason is the type of error is a bash error >which usually indicates a problem with the script where bash itself >can't continue. An unset var isn't a " bash error", You can even make >it print counterintuitive error messages that look like bash internal >errors. ><tejr> ormaaj: also compelling ><tejr> i've found a few "{@:?}"s in here so i'm fixing them up now ><tejr> thanks for the analysis | ||||
* | Use - rather than /dev/stdin | Tom Ryder | 2016-07-15 | 1 | -1/+1 |
| | | | | less(1) gets upset if it's not a regular file, because reasons. | ||||
* | Remove -d option from edda(1) mktemp(1) call | Tom Ryder | 2016-07-15 | 1 | -1/+1 |
| | |||||
* | Add ax(1) | Tom Ryder | 2016-07-14 | 1 | -0/+43 |
| | |||||
* | Use escape for pagebreak char in rfct(1) | Tom Ryder | 2016-07-13 | 1 | -1/+1 |
| | |||||
* | Add rfcf(1), rfcr(1), and rfct(1) | Tom Ryder | 2016-07-13 | 3 | -0/+31 |
| | |||||
* | Add pit(1) | Tom Ryder | 2016-07-13 | 1 | -0/+17 |
| | |||||
* | Make murl(1) into plain POSIX sh script | Tom Ryder | 2016-07-07 | 1 | -4/+1 |
| | |||||
* | Improve explanatory note about locales in hurl(1) | Tom Ryder | 2016-07-05 | 1 | -1/+2 |
| | |||||
* | Downgrade hurl(1) to a simple /bin/sh script | Tom Ryder | 2016-07-05 | 1 | -4/+1 |
| | | | | | Not worth the extra dependency just for slightly nicer command presence checking | ||||
* | Pretend to be Mozilla in urlc(1) | Tom Ryder | 2016-07-05 | 1 | -2/+2 |
| | | | | | | Because Amazon tells me to go away when I use the default user agent. I don't really feel sorry for it, because it throws a misleading 503 error too. | ||||
* | Use -p opt to pup in hurl(1) for entity decoding | Tom Ryder | 2016-07-04 | 1 | -1/+1 |
| | |||||
* | Remove C.UTF-8 LANG setting for plmu(1) | Tom Ryder | 2016-07-04 | 1 | -4/+0 |
| | | | | I'm using this script on a machine that doesn't have a C.UTF-8 locale. | ||||
* | Use terser arg noodling in tl(1) | Tom Ryder | 2016-07-02 | 1 | -4/+2 |
| | |||||
* | Inline two lines in jfcd(1) | Tom Ryder | 2016-07-02 | 1 | -2/+1 |
| | |||||
* | Exit from gscr(1) subshell, not continue | Tom Ryder | 2016-07-02 | 1 | -5/+5 |
| | |||||
* | Make fgscr POSIX sh/find compliant | Tom Ryder | 2016-07-01 | 1 | -2/+2 |
| | |||||
* | Only find .git *directories* | Tom Ryder | 2016-07-01 | 1 | -1/+1 |
| | |||||
* | Add dub(1) | Tom Ryder | 2016-07-01 | 1 | -0/+6 |
| | |||||
* | Run gscr(1) in subshell | Tom Ryder | 2016-07-01 | 1 | -2/+2 |
| | |||||
* | Correct glob for finding repos | Tom Ryder | 2016-07-01 | 1 | -1/+1 |
| | |||||
* | Make gscr(1) default to current dir | Tom Ryder | 2016-07-01 | 1 | -1/+1 |
| | |||||
* | Add gscr(1), fgscr(1) | Tom Ryder | 2016-07-01 | 2 | -0/+19 |
| | |||||
* | Add jfcd(1) | Tom Ryder | 2016-06-30 | 1 | -0/+27 |
| | |||||
* | Extend jfc(1) to check for changes before commit | Tom Ryder | 2016-06-30 | 1 | -3/+20 |
| | |||||
* | Add jfc(1) | Tom Ryder | 2016-06-29 | 1 | -0/+7 |
| | |||||
* | Separate games out into own directory/targets | Tom Ryder | 2016-06-24 | 1 | -5/+0 |
| | |||||
* | Remove my CPAN mirror from plmu script | Tom Ryder | 2016-06-24 | 1 | -1/+1 |
| | | | | | | | Defined as an environment variable instead, per-host: $ declare -xp PERL_CPANM_OPT declare -x PERL_CPANM_OPT="--mirror http://cpan.inspire.net.nz/" | ||||
* | Rename binscripts more tersely | Tom Ryder | 2016-06-22 | 8 | -25/+25 |
| | |||||
* | Remove unneeded line-break backslashes | Tom Ryder | 2016-06-21 | 2 | -2/+2 |
| | |||||
* | Fix spelling mistake | Tom Ryder | 2016-06-21 | 1 | -1/+1 |
| | |||||
* | Add options terminator | Tom Ryder | 2016-06-21 | 1 | -1/+1 |
| | |||||
* | Add comments | Tom Ryder | 2016-06-21 | 1 | -0/+11 |
| | |||||
* | Move locale export to top of script | Tom Ryder | 2016-06-21 | 1 | -4/+6 |
| | |||||
* | Test for required programs | Tom Ryder | 2016-06-20 | 1 | -0/+2 |
| | |||||
* | Move LANG setting to top | Tom Ryder | 2016-06-20 | 1 | -3/+6 |
| | |||||
* | Add newline | Tom Ryder | 2016-06-20 | 1 | -0/+1 |
| | |||||
* | Add plenv-modules-update | Tom Ryder | 2016-06-20 | 1 | -0/+17 |
| | |||||
* | Add getmails | Tom Ryder | 2016-06-19 | 1 | -0/+36 |
| | |||||
* | Fix comment too | Tom Ryder | 2016-06-18 | 1 | -1/+1 |
| | |||||
* | Swap pandoc(1) for markdown(1) | Tom Ryder | 2016-06-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | > <REDACTED> OPTIONS Use "--" to end switch parsing. > <REDACTED> are you using the wrong markdown > <tejr> yeah checking versions > <REDACTED> 1.0.1 is the one I quoted > <tejr> ah > <tejr> it's documented, but does not work :^) > <tejr> $ pandoc -f markdown -t html -- /home/tom/.dotfiles/README.markdown > <tejr> based pandoc(1) > <REDACTED> hahaha > <REDACTED> welp > <tejr> welp indeed | ||||
* | markdown(1) can't into option terminators | Tom Ryder | 2016-06-18 | 1 | -1/+1 |
| | |||||
* | Nice comments for URLs scripts | Tom Ryder | 2016-06-18 | 3 | -1/+42 |
| |