aboutsummaryrefslogtreecommitdiffstats
path: root/curset.sh
diff options
context:
space:
mode:
Diffstat (limited to 'curset.sh')
-rwxr-xr-xcurset.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/curset.sh b/curset.sh
new file mode 100755
index 0000000..8d80605
--- /dev/null
+++ b/curset.sh
@@ -0,0 +1,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
+