mirror of
https://github.com/zoriya/flake.git
synced 2026-06-13 07:05:46 +00:00
Add git nuke
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
''
|
||||
!git branch --merged | grep -vE "^([+*]|\s*($(git master))\s*$)" | xargs git branch --delete 2>/dev/null
|
||||
'';
|
||||
nuke =
|
||||
#bash
|
||||
''
|
||||
!git reset --hard HEAD && git clean -df .
|
||||
'';
|
||||
};
|
||||
extraConfig = {
|
||||
gpg.format = "ssh";
|
||||
|
||||
@@ -92,11 +92,6 @@ push() {
|
||||
git add -A && git commit -m "$*" && git push
|
||||
}
|
||||
|
||||
git-branch-clear() {
|
||||
git fetch --prune origin
|
||||
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
|
||||
}
|
||||
|
||||
nixify() {
|
||||
if [ ! -e ./.envrc ]; then
|
||||
echo "use nix" > .envrc
|
||||
@@ -105,9 +100,9 @@ nixify() {
|
||||
cat > shell.nix <<'EOF'
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
|
||||
];
|
||||
packages = with pkgs; [
|
||||
|
||||
];
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user