all repos

dotfiles @ a6fa85b1d0ab2ff071503fc2789b280d23ae93f1

i use rach linux btw
3 files changed, 4 insertions(+), 14 deletions(-)
bin: remove upd, update git
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-02-14 23:32:56 +0200
Parent: e8451e7
A bin/git-unfuck
···
        
        1
        +#!/usr/bin/env bash

      
        
        2
        +git log -1 --format="%h - %an, %ar : %s"

      
        
        3
        +git reset HEAD~1 --soft

      
D bin/upd
···
        1
        
        -#!/usr/bin/env bash

      
        2
        
        -

      
        3
        
        -upd_fname=upd.sh

      
        4
        
        -upd_scripts=(

      
        5
        
        -  "$HOME/org"

      
        6
        
        -  "$HOME/Documents/Obsidian"

      
        7
        
        -)

      
        8
        
        -

      
        9
        
        -for path in "${upd_scripts[@]}"; do

      
        10
        
        -  echo -e "\e[32m====== $path\e[0m"

      
        11
        
        -  cd "$path" || exit 1

      
        12
        
        -  "$path"/"$upd_fname" || exit 1

      
        13
        
        -done

      
M gitconfig
···
        25
        25
             st = status -sb

      
        26
        26
             cm = commit -m

      
        27
        27
             sw = switch

      
        28
        
        -    unfuck = reset HEAD~1 --soft

      
        
        28
        +    unfuck = !git-unfuck

      
        29
        29
             main = !git switch master 2>/dev/null || git switch main

      
        30
        30
         

      
        31
        31
         [interactive]