Populate repo

This commit is contained in:
Christian Nieves
2022-04-19 15:50:47 +00:00
commit 76a6480b62
1200 changed files with 108582 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#!/usr/bin/env bash
SIGNAL="${1:-KILL}"
pane_pid() {
tmux display-message -p "#{pane_pid}"
}
pid() {
local pane_pid="$(pane_pid)"
ps -ao "ppid pid" |
sed "s/^ *//" |
grep "^${pane_pid}" |
cut -d' ' -f2- |
head -n 1
}
main() {
local pid="$(pid)"
if [ -n "$pid" ]; then
kill -${SIGNAL} $pid
fi
}
main