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 | |
# _ _ _ | |
# (_)_ __ (_) |_ | |
# | | '_ \| | __| | |
# | | | | | | |_ | |
# |_|_| |_|_|\__| | |
# Make sure running as root. | |
if [ "$(id -u)" != "0" ]; then |
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
# Source: https://web.archive.org/web/20240930075945/https%3A%2F%2Fstackoverflow.com%2Fquestions%2F13064613%2Fhow-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore#17029936 | |
alias git-list-untracked='git fetch --prune && git branch -r | awk "{print \$1}" | grep -E -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}"' | |
alias git-remove-untracked='git fetch --prune && git branch -r | awk "{print \$1}" | grep -E -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -d' | |
alias git-remove-untracked-force-unmerged='git fetch --prune && git branch -r | awk "{print \$1}" | grep -E -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -D' |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Comment: 9EA6 C866 165A 3A86 08BE 3568 EA2D C27E 87A4 94F2 | |
Comment: Frederik Holm Strøm (https://frederikstroem.com) <[email protected]> | |
xjMEYcKXfhYJKwYBBAHaRw8BAQdAYYr1A3SfO/3KrCcRH1B9Auug0f2c7i7Eyik+ | |
iNrpsOnNSkZyZWRlcmlrIEhvbG0gU3Ryw7htIChodHRwczovL2ZyZWRlcmlrc3Ry | |
b2VtLmNvbSkgPHBncEBmcmVkZXJpa3N0cm9lbS5jb20+wsJmBBMWCgLOAhsBBAsJ | |
CAcEFQoJCAUWAgMBAAIeAQIXgAIZARYhBJ6myGYWWjqGCL41aOotwn6HpJTyBQJm | |
+SI6RxSAAAAAABAALnByb29mQGFyaWFkbmUuaWRodHRwczovL2dpdGxhYi5jb20v | |
ZnJlZGVyaWtzdHJvZW0vZ2l0bGFiX3Byb29mVhSAAAAAABAAPXByb29mQGFyaWFk |
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 nu | |
use std log | |
$env.NU_LOG_FORMAT = "%ANSI_START%%LEVEL%: %MSG%%ANSI_STOP%" | |
# _ _ _ | |
# | || |___| |_ __ ___ _ _ ___ | |
# | __ / -_) | '_ \/ -_) '_(_-< | |
# |_||_\___|_| .__/\___|_| /__/ | |
# |_| |
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
{ config, pkgs, ... }: | |
{ | |
programs.starship = { | |
enable = true; | |
settings = { | |
custom = { | |
nu_dirs = { | |
disabled = false; | |
description = "Nushell `dirs` module"; |
OlderNewer