diff --git a/linkme/.functions b/linkme/.functions index c9ea7dc..e8b0456 100644 --- a/linkme/.functions +++ b/linkme/.functions @@ -40,6 +40,15 @@ function o() { fi } +# `c` with no arguments opens Cursor in the current directory, otherwise opens at the given location +function c() { + if [[ $# -eq 0 ]]; then + cursor . + else + open "$@" + fi +} + # Create a new directory and enter it. function mkd() { mkdir -p "$@" && cd "${_}" || exit 1