aboutsummaryrefslogblamecommitdiffstats
path: root/curset.sh
blob: 8d806052b649f830b03dd72a4011bc45227cda5f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                               
#!/bin/bash

file=$(find ~/Documents/Notes -type f|fzf)
curdir=~/Documents/Notes/current/

if [[ -d $curdir ]]; then
    ln -s "$file" "$curdir"
    echo "Created symbolic link for $file in $curdir."
else
    echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed."
    exit 1
fi