Compare commits

...

6 commits

Author SHA1 Message Date
5c5464d4ae
lint/uid
All checks were successful
/ job (push) Successful in 3m57s
2025-07-06 16:09:46 +02:00
249aa0b19c
lint/modules 2025-07-06 16:05:10 +02:00
de0dd93a71
lint/files 2025-07-06 16:03:46 +02:00
4b55ac1155
tabs 2025-07-06 16:02:10 +02:00
69e71ee1a3
-n 2025-07-06 15:59:31 +02:00
c21cbb1e98
tabs 2025-07-06 15:57:42 +02:00
3 changed files with 31 additions and 29 deletions

View file

@ -94,11 +94,11 @@ rwx_source() {
[ -d "${root}" ] ||
return 1
local file="${2}"
local count module
local count module modules
count=0
__rwx_log "" \
". ${root}"
local modules="$(rwx_find_shell "${root}" "${file}")"
modules="$(rwx_find_shell "${root}" "${file}")"
while IFS= read -r module; do
count=$((count + 1))
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}"

View file

@ -222,10 +222,10 @@ rwx_self_write() {
local target="${1}"
if [ -n "${target}" ]; then
shift
local file text
local file files text
text="#! /usr/bin/env sh
"
local files="$(rwx_self_subset "${@}")"
files="$(rwx_self_subset "${@}")"
while IFS= read -r file; do
text="${text}
$(cat "${RWX_ROOT_SYSTEM}/${file}")

View file

@ -6,7 +6,7 @@
#= tma
rwx_tmux_attach() {
local server="${1}"
if [ "${server}" ]; then
if [ -n "${server}" ]; then
tmux -L "${server}" attach-session
else
rwx_tmux_list
@ -17,7 +17,7 @@ rwx_tmux_attach() {
#= tmk
rwx_tmux_kill() {
local server="${1}"
if [ "${server}" ]; then
if [ -n "${server}" ]; then
tmux -L "${server}" kill-server 2>"/dev/null"
else
rwx_tmux_list
@ -27,7 +27,9 @@ rwx_tmux_kill() {
# list
#= tml
rwx_tmux_list() {
ls "/tmp/tmux-$(id --user)"
local user_id
user_id="$(id --user)"
ls "/tmp/tmux-${user_id}"
}
# ╭──────┬───────╮