Compare commits
2 Commits
59b2334253
...
5d8d881d4d
| Author | SHA1 | Date | |
|---|---|---|---|
|
5d8d881d4d
|
|||
|
97f132d609
|
@@ -4,12 +4,10 @@
|
|||||||
|
|
||||||
```
|
```
|
||||||
bat
|
bat
|
||||||
fd
|
|
||||||
fzf
|
|
||||||
git-delta
|
git-delta
|
||||||
paru
|
fd
|
||||||
rg
|
rg
|
||||||
zoxide
|
fzf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Useful
|
### Useful
|
||||||
|
|||||||
2
git/configs/alias.gitconfig
Normal file
2
git/configs/alias.gitconfig
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[alias]
|
||||||
|
fixup = "!f() { TARGET=$(git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 ); git commit --fixup=$TARGET ${@:2} && GIT_SEQUENCE_EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
[include]
|
[include]
|
||||||
path = ~/.dotfiles/git/configs/lfs.gitconfig
|
path = ~/.dotfiles/git/configs/lfs.gitconfig
|
||||||
path = ~/.dotfiles/git/configs/delta.gitconfig
|
path = ~/.dotfiles/git/configs/delta.gitconfig
|
||||||
|
path = ~/.dotfiles/git/configs/alias.gitconfig
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
TARGET=$1
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$TARGET" ]; then
|
|
||||||
if hash fzf 2>/dev/null; then
|
|
||||||
TARGET=$(git log -n 50 --pretty=format:'%h %s' --no-merges | fzf --border-label='Select commit' | cut -c -7 )
|
|
||||||
else
|
|
||||||
echo "Not installed: fzf"
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$TARGET" ]; then
|
|
||||||
echo "No target specified"
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
git commit --fixup=$TARGET ${@:2} && GIT_SEQUENCE_EDITOR=true git rebase -i --autostash --autosquash $TARGET^
|
|
||||||
@@ -25,6 +25,7 @@ plugins=(
|
|||||||
tmux
|
tmux
|
||||||
colored-man-pages
|
colored-man-pages
|
||||||
command-not-found
|
command-not-found
|
||||||
|
dirhistory
|
||||||
zsh-autopair
|
zsh-autopair
|
||||||
fast-syntax-highlighting
|
fast-syntax-highlighting
|
||||||
)
|
)
|
||||||
@@ -115,7 +116,7 @@ if hash fzf 2>/dev/null; then
|
|||||||
|
|
||||||
if hash paru 2>/dev/null; then
|
if hash paru 2>/dev/null; then
|
||||||
function pi {
|
function pi {
|
||||||
paru -Slq | fzf -q "$1" --border-label="Packages" --multi --preview 'paru -Si {1} --color=always' | xargs -ro paru -S
|
paru -Slq | fzf -q "$1" --border-label="Packages" --multi --preview 'paru -Si {1}' | xargs -ro paru -S
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user