mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
bin: remove upd, update git
This commit is contained in:
parent
e8451e7512
commit
a6fa85b1d0
3 changed files with 4 additions and 14 deletions
3
bin/git-unfuck
Executable file
3
bin/git-unfuck
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
git log -1 --format="%h - %an, %ar : %s"
|
||||
git reset HEAD~1 --soft
|
||||
13
bin/upd
13
bin/upd
|
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
upd_fname=upd.sh
|
||||
upd_scripts=(
|
||||
"$HOME/org"
|
||||
"$HOME/Documents/Obsidian"
|
||||
)
|
||||
|
||||
for path in "${upd_scripts[@]}"; do
|
||||
echo -e "\e[32m====== $path\e[0m"
|
||||
cd "$path" || exit 1
|
||||
"$path"/"$upd_fname" || exit 1
|
||||
done
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
st = status -sb
|
||||
cm = commit -m
|
||||
sw = switch
|
||||
unfuck = reset HEAD~1 --soft
|
||||
unfuck = !git-unfuck
|
||||
main = !git switch master 2>/dev/null || git switch main
|
||||
|
||||
[interactive]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue