diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-22 14:19:59 +0100 |
|---|---|---|
| committer | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-22 14:19:59 +0100 |
| commit | 3000da50139ff3b044c5742140bc1ede8e3f4ad6 (patch) | |
| tree | c20dc0d4851ef2c9163392b9c5441b51a174b85d /mut/bin/desktop-open-pipe | |
| parent | 6043502305e3d5ccc6c537d4ed085d8b2454c5c8 (diff) | |
fix git and nushell
Diffstat (limited to 'mut/bin/desktop-open-pipe')
| -rwxr-xr-x | mut/bin/desktop-open-pipe | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/mut/bin/desktop-open-pipe b/mut/bin/desktop-open-pipe index 0ef1901..796bc5b 100755 --- a/mut/bin/desktop-open-pipe +++ b/mut/bin/desktop-open-pipe @@ -1,13 +1,7 @@ -#!/usr/bin/env bash -name="$HOME/.cache/desktop-open.pipe" -while true; do - { - /nix/store/zcw13r2mmpzlnv2yvfl13mcpky3hivq1-system-path/bin/xdg-open "$(cat "$name")" -} >/dev/null 2>&1 -done - -finish () { - rm -vf "$name" +#!/usr/bin/env nu +echo listening for open commands +loop { + let line = nc -l 127.0.0.1 1994 + echo $line | save --append /tmp/debuglogs + ^open $line } - -trap finish EXIT |
