Andrew on Nostr: Here’s a quick #nushell tip for apps that don’t have auto-reload on configuration ...
Here’s a quick #nushell tip for apps that don’t have auto-reload on configuration changes:
let $app = the-program-in-question
watch $"( $nu.home-dir )/.config/( $app )" {
ps | where name == $app | first | kill -s 12 $in.pid
}
Launch it however you like. The command “kill -s 12” sends a reload signal.
https://www.nushell.sh/commands/docs/watch.htmlPublished at
2026-08-09 04:58:31 UTCEvent JSON
{
"id": "1609f3d988bb97026e6a0f7c3fb3ae584874747231561d9e6e45da53ebc2077d",
"pubkey": "1bd8da6f61ca4da4a35844d9e60da3bc2edf3ac40a1293182b4050d44afef684",
"created_at": 1786251511,
"kind": 1,
"tags": [
[
"t",
"nushell"
],
[
"proxy",
"https://mastodon.online/users/alsorew/statuses/117063779069220507",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Here’s a quick #nushell tip for apps that don’t have auto-reload on configuration changes:\n\nlet $app = the-program-in-question\nwatch $\"( $nu.home-dir )/.config/( $app )\" {\n ps | where name == $app | first | kill -s 12 $in.pid\n}\n\nLaunch it however you like. The command “kill -s 12” sends a reload signal.\n\nhttps://www.nushell.sh/commands/docs/watch.html",
"sig": "4efaa1f77a1e5a1d72c12b250af29eaf1f4b39eb28915810f35f71b16fdffaaebf95edeb5db26d1c0252655ae487643d00f2434933d4836a92d0cb28a45ab400"
}