Skip to content

Commit

Permalink
feat: Cursor shortcut (#83)
Browse files Browse the repository at this point in the history
- 'c' shortcut to open Cursor

## Summary by Sourcery

New Features:
- Add a "c" keyboard shortcut to open the Cursor application.
  • Loading branch information
martimlobao authored Jan 20, 2025
1 parent 9ea87f3 commit 4584704
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions linkme/.functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4584704

Please sign in to comment.