diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-11 09:32:01 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-11 09:32:01 +0100 |
commit | 77b0f29905e2c1eaa21bf043c3f5c41aa04f4edf (patch) | |
tree | 713080f72a536f5e04178d9de1869d8928359924 /curlist.sh | |
parent | e30c304663232fde473029d1cbcae50440174696 (diff) |
Added three tiny scripts for symbolic links
The idea is to create symlinks to files that are currently being worked
on, in one place. Here we can set the link, delete it and list them.
Diffstat (limited to '')
-rwxr-xr-x | curlist.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/curlist.sh b/curlist.sh new file mode 100755 index 0000000..6720b91 --- /dev/null +++ b/curlist.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +curdir=~/Documents/Notes/current/ + +if [[ -d $curdir ]]; then + ls "$curdir/" +else + echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed." + exit 1 +fi |