diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-10-06 17:31:55 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-10-06 17:32:32 +0200 |
| commit | f0724869c591d3e316b143b108d9f6a6c4a17989 (patch) | |
| tree | 5aa2c86671c5308ca83f954a90863396657eaef2 /bin/e | |
| parent | 53076b1979ce2cea5dbbfdf8105e18b992fe4ce6 (diff) | |
| download | dotfiles-f0724869c591d3e316b143b108d9f6a6c4a17989.tar.gz dotfiles-f0724869c591d3e316b143b108d9f6a6c4a17989.zip | |
add simple helper script to edit files and compose mails
Diffstat (limited to 'bin/e')
| -rwxr-xr-x | bin/e | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#!/bin/sh + +[ -n "$1" ] || exit 1 + +if [ -n "$TERM" ]; then + "$EDITOR" "$1" +else + "$TERMINAL" -e "$EDITOR $1" +fi |
