diff options
Diffstat (limited to 'curdel.sh')
-rwxr-xr-x | curdel.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/curdel.sh b/curdel.sh new file mode 100755 index 0000000..e4263cf --- /dev/null +++ b/curdel.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +curdir=~/Documents/Notes/current/ +file=$(find $curdir -type l |fzf) +echo $file + +if [[ -d $curdir ]]; then + unlink "$file" + echo "Deleted symbolic link for $file in $curdir." +else + echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed." + exit 1 +fi |