laksjdlakjsd
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
{ name = "Touhou"; source = "/mnt/freon/Music/Touhou"; }
|
||||
{ name = "OST"; source = "/mnt/freon/Music/OST"; }
|
||||
{ name = "Kancolle"; source = "/mnt/freon/Music/Kancolle"; }
|
||||
{ name = "Downloads"; source = "/mnt/freon/Downloads/music"; }
|
||||
{ name = "Downloads"; source = "/mnt/reidun/Downloads/music"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -59,9 +59,10 @@
|
||||
|
||||
dos2unix
|
||||
|
||||
pandoc # TODO: typst and latex
|
||||
pandoc # TODO: latex
|
||||
graphviz
|
||||
visidata
|
||||
typst
|
||||
|
||||
gallery-dl
|
||||
yt-dlp
|
||||
@@ -139,9 +140,8 @@
|
||||
};
|
||||
|
||||
home.shellAliases = {
|
||||
#flexget = "ssh -t knut.pbsds.net sudo -u flexget flexget";
|
||||
flexget = "sudo --user=flexget flexget -c /var/lib/flexget/flexget.yml"; # TODO: only applies to nox...
|
||||
hman = "man -H "; # HTML opened in a browser
|
||||
flexget = "ssh -t noximilien sudo --user=flexget flexget -c /var/lib/flexget/flexget.yml"; # TODO: only applies to nox...
|
||||
# hman = "man -H "; # HTML opened in a browser
|
||||
tmux = "systemd-run --scope --user tmux"; # detach from ssh scope, surviving logout
|
||||
/* shpool = "systemd-run --scope --user shpool"; # detach from ssh scope, surviving logout */
|
||||
|
||||
@@ -154,7 +154,8 @@
|
||||
|
||||
killall = "killall -v";
|
||||
|
||||
bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
|
||||
# bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
|
||||
bin = "${lib.getExe pkgs.netcat} termbin.com 9999";
|
||||
|
||||
denix = "sed -E 's@/nix/store/[^ /]+@@g'";
|
||||
};
|
||||
|
||||
@@ -8,12 +8,12 @@ zeditor-remote() (
|
||||
fi
|
||||
# echo maybe_spin="$maybe_spin"
|
||||
|
||||
host="$(
|
||||
host=$(
|
||||
{
|
||||
echo localhost
|
||||
tailscale status --json | jq .Peer[].HostName -r
|
||||
} | sort -u | fzf --multi --reverse --bind 'ctrl-a:toggle-all' --height=25
|
||||
)"
|
||||
)
|
||||
|
||||
if [[ -z "$host" ]]; then
|
||||
exit
|
||||
@@ -24,5 +24,8 @@ zeditor-remote() (
|
||||
$maybe_spin xe -j"$(wc -l <<<"$host")" <<<"$host" -s 'timeout 7 ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$1" fd "^\.git$" repos/ --hidden --max-depth 5 -x printf '"'"'"zeditor ssh://%s/~/%s\n"'"'"' "$1" "{//}" 2>/dev/null' | sort
|
||||
)
|
||||
|
||||
fzf <<<"$repos" --reverse --height=25 | bash
|
||||
choice=$(fzf <<<"$repos" --reverse --height=25)
|
||||
printf "%s\n" "$choice"
|
||||
rg <<<"$choice" '^zeditor ssh://([^/]*)/(~/.*)$' -r 'ssh -t $1 "cd $2; $$SHELL -l"' ||:
|
||||
bash "$choice"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user