Compare commits

..

2 Commits

Author SHA1 Message Date
5d8d881d4d Configure fzf
It is now setup to look very similar to telescope.
It now uses fd for finding files.

There is a shell function `pi` to search for packages using fzf and to
then install them with paru
2025-09-07 04:49:38 +02:00
97f132d609 Added zoxide 2025-09-07 04:25:49 +02:00
5 changed files with 7 additions and 24 deletions

View File

@@ -4,12 +4,10 @@
```
bat
fd
fzf
git-delta
paru
fd
rg
zoxide
fzf
```
### Useful

View 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"

View File

@@ -1,6 +1,7 @@
[include]
path = ~/.dotfiles/git/configs/lfs.gitconfig
path = ~/.dotfiles/git/configs/delta.gitconfig
path = ~/.dotfiles/git/configs/alias.gitconfig
[push]
default = simple

View File

@@ -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^

View File

@@ -25,6 +25,7 @@ plugins=(
tmux
colored-man-pages
command-not-found
dirhistory
zsh-autopair
fast-syntax-highlighting
)
@@ -115,7 +116,7 @@ if hash fzf 2>/dev/null; then
if hash paru 2>/dev/null; then
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