~hedy/dotfiles

dotfiles/.config/fish/functions/gitsimhis.fish -rw-r--r-- 384 bytes
29d99131 — hedy Fish: Fix prompt for fish v3.4.1 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function gitsimhis
    cd $argv[1]
    if read_confirm 'Everything in this directory will be replaced. Do you want to continue? '
        rm -rf *
    else
        echo 'Aborting...'
    return 1
    end
    
    echo '1' > a
    git init && git add . && git commit -m '1'
    echo '2' >> a
    git add . && git commit -m '2'
    echo '3' >> a
    git add . && git commit -m '3'
end