diff options
Diffstat (limited to 'install/util.fish')
| -rw-r--r-- | install/util.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/install/util.fish b/install/util.fish index ad62230..d9a02f5 100644 --- a/install/util.fish +++ b/install/util.fish @@ -108,3 +108,10 @@ WantedBy=default.target" > $systemd/$module-monitor-scheme.path systemctl --user start $module-monitor-scheme.service end end + +function install-link -a from to + if ! test -L $to -a (realpath $to) = (realpath $from) + confirm-overwrite $to + ln -s $from $to + end +end |