justfile
This commit is contained in:
parent
1b9e34b141
commit
ad21aaa9e5
1 changed files with 11 additions and 0 deletions
11
justfile
11
justfile
|
@ -11,4 +11,15 @@ add target:
|
|||
fi
|
||||
done
|
||||
|
||||
remove target:
|
||||
#!/bin/env sh
|
||||
target={{trim_end_matches(target, '/')}}
|
||||
find $target -mindepth 1 | while read p
|
||||
do
|
||||
t=~/`echo -n $p | sed "s/^$target\///" | sed s/dot-/./g`
|
||||
if ( test -L $t ); then
|
||||
rm $t && echo "rm $t"
|
||||
fi
|
||||
done
|
||||
|
||||
# vim: set ft=sh :
|
||||
|
|
Loading…
Reference in a new issue