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 | |
| parent | 53076b1979ce2cea5dbbfdf8105e18b992fe4ce6 (diff) | |
| download | dotfiles-f0724869c591d3e316b143b108d9f6a6c4a17989.tar.gz dotfiles-f0724869c591d3e316b143b108d9f6a6c4a17989.zip | |
add simple helper script to edit files and compose mails
| -rwxr-xr-x | bin/e | 9 | ||||
| -rwxr-xr-x | bin/mailto | 9 | ||||
| -rwxr-xr-x | setup.py | 2 |
3 files changed, 20 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 diff --git a/bin/mailto b/bin/mailto new file mode 100755 index 0000000..9380ee9 --- /dev/null +++ b/bin/mailto @@ -0,0 +1,9 @@ +#!/bin/sh + +MAIL=aerc + +if pgrep "$MAIL" > /dev/null; then + "$MAIL" "$@" +else + "$TERMINAL" -e "$MAIL" "$@" +fi @@ -144,6 +144,8 @@ targets = { ("local/share/qutebrowser/userscripts/qutebrowser-live-reload.sh", local_share_dir + "/qutebrowser/userscripts/qutebrowser-live-reload.sh")], "scripts": [("bin/alert", local_bin_dir + "/alert"), + ("bin/e", local_bin_dir + "/e"), + ("bin/mailto", local_bin_dir + "/mailto"), ("bin/set_theme", local_bin_dir + "/set_theme")], "ssh": [("ssh/config.gpg", home_dir + "/.ssh/config"), enable_ssh_agent], |
