diff options
Diffstat (limited to 'accounts/gkleen@sif/zshrc')
| -rw-r--r-- | accounts/gkleen@sif/zshrc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc index f28ef590..c628e2e9 100644 --- a/accounts/gkleen@sif/zshrc +++ b/accounts/gkleen@sif/zshrc | |||
| @@ -300,22 +300,6 @@ dichotomic_search() { | |||
| 300 | echo $min | 300 | echo $min |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | sieve-edit() { | ||
| 304 | host=$1; shift | ||
| 305 | case "$host" in | ||
| 306 | surtr) | ||
| 307 | sieve-connect -s surtr.yggdrasil.li -m EXTERNAL --clientkey <(nix run nixos'#'sops -- decrypt ~flk/hosts/surtr/email/ca/gkleen@sif.key) --clientcert ~flk/hosts/surtr/email/ca/gkleen@sif.crt --edit --remotesieve sieve | ||
| 308 | ;; | ||
| 309 | ymir) | ||
| 310 | sieve-connect -s ymir.yggdrasil.li -u gkleen --edit --remotesieve sieve | ||
| 311 | ;; | ||
| 312 | *) | ||
| 313 | echo "Unknown host: ‘$host’" >&2 | ||
| 314 | return 2 | ||
| 315 | ;; | ||
| 316 | esac | ||
| 317 | } | ||
| 318 | |||
| 319 | while read -r -d $'\0' d _ s; do | 303 | while read -r -d $'\0' d _ s; do |
| 320 | hash -d ${s}=${d} | 304 | hash -d ${s}=${d} |
| 321 | done < <(find ~/projects ~/uni -regextype posix-extended -maxdepth 2 -type d -regex '\S+/[0-9]{2}[ws]/\S+' -print0 2>/dev/null | \ | 305 | done < <(find ~/projects ~/uni -regextype posix-extended -maxdepth 2 -type d -regex '\S+/[0-9]{2}[ws]/\S+' -print0 2>/dev/null | \ |
