aboutsummaryrefslogtreecommitdiffstats
path: root/curdel.sh
blob: e4263cfe1807e2583a34854841f20d4221e11ba7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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