Skip to content

Commit

Permalink
show target path for --list
Browse files Browse the repository at this point in the history
  • Loading branch information
mfhepp committed Jan 27, 2024
1 parent 8aadbb9 commit b847c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ _cdf_list() {
echo
printf "Existing directory shortcuts are:\n"
# Note: We are looking for symbolic links, hence l
find $CDFPATH -maxdepth 1 -type l -exec basename {} \; | sort | sed 's/^/ - /'
# Old version: find $CDFPATH -maxdepth 1 -type l -exec basename {} \; | sort | sed 's/^/ - /'
for link in ./*; do echo " - $(basename "$link") [$(readlink -f "$link")]"; done
echo
}

Expand Down

0 comments on commit b847c7a

Please sign in to comment.