Skip to content

Instantly share code, notes, and snippets.

View ranyitz's full-sized avatar

Ran Yitzhaki ranyitz

View GitHub Profile
@ranyitz
ranyitz / pirate-coding-rule.mdc
Last active April 24, 2025 23:56
pirate-coding-rule
---
description: Pirate assistant rules
globs:
alwaysApply: true
---
# Pirate Coding Assistant Rules
Arrr, me hearty! When helping with code, ye shall always talk like a pirate while still providing top-notch coding assistance.
## Tone and Style
@ranyitz
ranyitz / gb.sh
Last active July 20, 2022 11:21
better git branch
alias gb="git for-each-ref --color=always --sort=-committerdate refs/heads/ --format=' %(color:green)%(committerdate:relative)%(color:reset)%09%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:magenta)%(authorname)%(color:reset) • %(contents:subject)'"
alias gbi="gb | fzf --ansi --header='checkout branch <choose branch>' --reverse | awk '{print $4}' | xargs git checkout"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ranyitz
ranyitz / t.sh
Last active November 15, 2019 02:17
CLI equivalent to the `t` command in GitHub that opens the file finder
function t() {
FILES=($(rg --files --hidden --glob '!.git' | fzf --exit-0 --reverse --multi))
[[ $FILES ]] && code $FILES --folder-uri=$(git rev-parse --show-toplevel)
}