Skip to content

Instantly share code, notes, and snippets.

View flurdy's full-sized avatar

Ivar Abrahamsen flurdy

View GitHub Profile
@flurdy
flurdy / cursor.fish
Last active July 10, 2025 11:43
Fish Shell function to launch Cursor AI editor
# cursor.fish — Fish Shell function to launch Cursor AI Editor
#
function cursor
# List of possible locations for the Cursor executable
set -l possible_paths \
/usr/bin/cursor \
/usr/local/bin/cursor \
/opt/cursor/cursor \
$HOME/.local/bin/cursor
@flurdy
flurdy / clone_worktree.fish
Last active October 15, 2025 18:22
Fish shell function to clone git repositories as bare repos with worktree setup. Supports shorthand notation (org/repo), named arguments, and environment variable configuration.
# Fish Shell Function: clone_worktree
#
# Clone a git repository as a bare repo with a worktree setup
#
# Installation:
# Save this file to: ~/.config/fish/functions/clone_worktree.fish
# Fish will automatically load functions from this directory.
#
# Setup Instructions:
# 1. Create a bash wrapper in your bin folder (e.g., ~/bin/git-clone-worktree.sh):