notes/scripts/rdir
2022-12-09 19:55:04 -08:00

15 lines
375 B
Bash
Executable file

#!/bin/bash
# A simple bookmarking script used in conjunction with rdir
# to save a directory for easy navigation later
sdrc="$HOME"/.sdrc
# grabs the current $sdir environment variable
if [[ -f "$sdrc" ]] ; then
source "$sdrc"
else
prinf "%s\n" "error: no .sdrc file."
prinf "%s\n" "use sdir scriptt in desired directory first."
exit 1
fi
cd "$sdir" && ls