This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch -p | |
selected=$(git branch --format="%(refname:short)" | gum choose --height 20 --header "Select a branch:") | |
[ -z "$selected" ] && exit 0 | |
git switch "$selected" && gum style --foreground 46 "✅ Switched to $selected" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This bash check all remote branches deleted to delete them locally | |
# You can delete them totally or select some of them. | |
# @author Floberrot | |
# @authorUrl https://github.com/Floberrot | |
# Fetch remote changes and prune deleted branches | |
git fetch --prune |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Mes dernières PR(s) | |
# @raycast.mode silent | |
# if you want to see processing because it can be long, try to change raycast.mode | |
# Optional parameters: | |
# @raycast.icon 🔄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Add review information on Github PR list | |
// @version 1 | |
// @include https://github.com/* | |
// @grant none | |
// @author https://gist.github.com/mRoca | |
// ==/UserScript== | |
const hovercardSubject = document.querySelector('meta[name=hovercard-subject-tag]').getAttribute('content'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub Mark File Viewed | |
// @version 0.1 | |
// @description Mark file as "viewed" on GitHub PR UI when hovering and pressing 'Escape' key | |
// @match https://github.com/* | |
// @author https://gist.github.com/mRoca | |
// ==/UserScript== | |
function markFileAsViewed() { |