Sweeping refinements and formatting changes
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
function list(){
|
||||
if [ -d "$NOTES_DIR"/"$NOTEBOOK" ]; then
|
||||
printf "+%s\n" "$NOTEBOOK"
|
||||
find "$NOTES_DIR"/"$NOTEBOOK" -type f | while read -r NOTE; do
|
||||
printf " -%s\n" "$(basename \"$NOTE\" | cut -d . -f 1 )"
|
||||
done
|
||||
fi
|
||||
# This function, given a folder, $NOTE, will list the contents of $NOTE.
|
||||
ls "$NOTE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user