all repos — nixfiles @ 7c20d9e6e237b1c1e9cb1ac7f1e7174a6fda5a1f

System and user configuration, managed by nix and home-manager

zsh/functions/runit/linksv (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env zsh

if [[ -z $1 ]]; then
	echo "No service specified"
	return 64
fi


if [[ ! -x $1 ]]; then
	echo "Service does not exist in current directory"
	return 1
fi

mv $1{,.old}
ln -s =sv $1
chmod -h a-w $1