Restrict tmux and desktop tools to Void hosts

This commit is contained in:
Fabio Scotto di Santolo
2026-03-31 19:00:15 +02:00
parent e065ca6030
commit 38aa26779f
177 changed files with 11 additions and 102 deletions

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PANE_PID="$1"
exit_safely_if_empty_ppid() {
if [ -z "$PANE_PID" ]; then
exit 0
fi
}
full_command() {
ps -ao "ppid,args" |
sed "s/^ *//" |
grep "^${PANE_PID}" |
cut -d' ' -f2-
}
main() {
exit_safely_if_empty_ppid
full_command
}
main