Skip to content

Instantly share code, notes, and snippets.

View mfnalex's full-sized avatar
🌈

mfnalex mfnalex

🌈
View GitHub Profile
@mfnalex
mfnalex / CancellationDetector.java
Created July 13, 2020 21:30 — forked from aadnk/CancellationDetector.java
A class that allows you to detect which plugin cancelled a given event.
package com.comphenix.example;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.Iterator;
import java.util.List;
import org.bukkit.event.Cancellable;
@mfnalex
mfnalex / terminal-prompt-git-branch-zsh.md
Created January 25, 2024 14:05 — forked from reinvanoyen/terminal-prompt-git-branch-zsh.md
Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Updated for MacOS Big Sur | Monterey | Ventura

screenshot

Install

Open ~/.zshrc in your favorite editor and add the following content to the bottom.

function parse_git_branch() {