Skip to content

Commit

Permalink
init fzf, thefuck, zocide commands
Browse files Browse the repository at this point in the history
  • Loading branch information
duzun committed May 20, 2023
1 parent ef23fd0 commit be462ad
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ~/command/fzf.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/usr/bin/env bash
# general purpose fuzzy search: https://github.com/junegunn/fzf

alias fvim="fzf --bind 'enter:become(vim {})'"

s="${_shell:-bash}"

. /usr/share/fzf/completion.bash
. /usr/share/fzf/key-bindings.bash
for i in \
"/usr/share/fzf/completion.$s" \
"/usr/share/fzf/key-bindings.$s" \
"/usr/share/doc/fzf/examples/key-bindings.$s" \
/usr/share/bash-completion/completions/fzf; do
[ -s "$i" ] && source "$i"
done
4 changes: 4 additions & 0 deletions ~/command/thefuck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# https://github.com/nvbn/thefuck

eval "$(thefuck --alias)"
4 changes: 4 additions & 0 deletions ~/command/zoxide.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# https://github.com/ajeetdsouza/zoxide

eval "$(zoxide init "${_shell:-bash}")"

0 comments on commit be462ad

Please sign in to comment.