dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ec834fc35bbe92682bfc1d72d40fc16433f5133a
parent 249795d625649636b18e52e05cb5ccbdea76f05c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 16 Apr 2020 20:19:40 +0200

Check before overwriting output with hurlo

Diffstat:
M.profile | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/.profile b/.profile @@ -100,7 +100,9 @@ tsplit() { hurlo() { out="${1##*/}" [ -z "$out" ] && out="hurl_out" + [ -f "$out" ] && { printf 'error: %s exists\n' "$out"; return 1; } hurl "$1" > "$out" + printf '%s\n' "$out" } alias w3m='w3m -B'