Skip to content

Commit f16d40e

Browse files
committed
pendrellvale => [functions.bash][wmgr.crs]
1 parent c806d24 commit f16d40e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

runes/bash/functions.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ mpv_get() {
142142
}
143143

144144
any() {
145-
find "${1:-.}" -maxdepth 1 | shuf -n 1
145+
if [[ "$#" -eq 1 ]]; then
146+
find_arg=(.)
147+
else
148+
find_arg=("$@")
149+
fi
150+
find "${find_arg[@]}" -maxdepth 1 | shuf -n 1
146151
}
147152

148153
insist() {

spells/wmgr.crs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ fn sync() -> anyhow::Result<()> {
374374

375375
let filter = match whoami::fallible::hostname()?.as_str() {
376376
"localhost" => "walls/phone",
377-
"tolaria" => "walls/all",
377+
"tolaria" | "pendrellvale" => "walls/all",
378378
_ => "walls",
379379
};
380380

0 commit comments

Comments
 (0)