puuuuuush
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Jacob Bohanon
|
name = Jacob Bohanon
|
||||||
email = jacob.bohanon@solo.io
|
email = jacobbohanon@gmail.com
|
||||||
signingkey = /home/jacob/.ssh/id_ed25519.pub
|
signingkey = /home/jacob/.ssh/id_ed25519.pub
|
||||||
[url "ssh://git@github.com/"]
|
[url "ssh://git@github.com/"]
|
||||||
insteadOf = https://github.com/
|
insteadOf = https://github.com/
|
||||||
|
[url "ssh://git@git.nonahob.net:30009/"]
|
||||||
|
insteadOf = https://git.nonahob.net/
|
||||||
[tag]
|
[tag]
|
||||||
sort = version:refname
|
sort = version:refname
|
||||||
[init]
|
[init]
|
||||||
|
|||||||
2
init.sh
2
init.sh
@@ -9,7 +9,7 @@ echo "PKGUPD: ${PKGUPD}"
|
|||||||
echo "PKGINST: ${PKGINST}"
|
echo "PKGINST: ${PKGINST}"
|
||||||
|
|
||||||
# Install zsh, neovim, ripgrep, fd
|
# Install zsh, neovim, ripgrep, fd
|
||||||
[[ $PKGINST != '' ]] && $PKGUPD && $PKGINST curl tmux zsh ripgrep fd-find fzf
|
[[ $PKGINST != '' ]] && $PKGUPD && $PKGINST curl tmux zsh ripgrep fd-find fzf tree
|
||||||
|
|
||||||
# Install neovim
|
# Install neovim
|
||||||
pushd /tmp || true
|
pushd /tmp || true
|
||||||
|
|||||||
29
zsh/config.d/fzf.zsh
Normal file
29
zsh/config.d/fzf.zsh
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
cdf_preview() {
|
||||||
|
if [ -d $1 ]; then
|
||||||
|
tree -L 1 $1
|
||||||
|
else
|
||||||
|
cat $1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
# cdf - cd with fuzzy finder
|
||||||
|
# Usage: cdf [path]
|
||||||
|
cdf() {
|
||||||
|
local fd_options fzf_options target
|
||||||
|
|
||||||
|
fd_options=(
|
||||||
|
--hidden
|
||||||
|
)
|
||||||
|
|
||||||
|
fzf_options=(
|
||||||
|
# --preview='echo {}'
|
||||||
|
--preview='([[ -d {} ]] && tree -L 1 {}) || ([[ -L {} ]] && ls -al {}) || cat {}'
|
||||||
|
--bind=ctrl-space:toggle-preview
|
||||||
|
--exit-0
|
||||||
|
)
|
||||||
|
|
||||||
|
target="$(fdfind . "${1:-.}" "${fd_options[@]}" | fzf "${fzf_options[@]}")"
|
||||||
|
|
||||||
|
([[ -f "$target" ]] || [[ -L "$target" ]]) && target="${target%/*}"
|
||||||
|
|
||||||
|
cd "$target" || return 1
|
||||||
|
}
|
||||||
0
zsh/gitclone.sh
Normal file → Executable file
0
zsh/gitclone.sh
Normal file → Executable file
Reference in New Issue
Block a user