Add fzf to my tooling workflow.

This commit is contained in:
2023-03-22 09:59:34 +13:00
parent 63de85e570
commit 551e7be5a3
2 changed files with 15 additions and 2 deletions

15
.bashrc
View File

@ -107,9 +107,22 @@ if ! shopt -oq posix; then
fi fi
fi fi
# Configure fuzzy find
export FZF_DEFAULT_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{**/node_modules/*,**/.git/*}'"
source /usr/share/doc/fzf/examples/key-bindings.bash
# Configure emacs location and aliases # Configure emacs location and aliases
export EMACSLOADPATH=~/Downloads/humacs: export EMACSLOADPATH=~/Downloads/humacs:
alias e='emacsclient -a ""' function e {
# If the file exists just open it
if test -f "$1"; then
emacsclient -a "" "$1"
# Otherwise we should search for it
else emacsclient -a "" $(fzf --height 40% --reverse -i --query "$1")
fi
}
# Setup prompt # Setup prompt
function color_my_prompt { function color_my_prompt {

View File

@ -27,7 +27,7 @@ cd ~/ && mkdir Documents Downloads
Now that we have our home directory done let's install the standard packages we use. Now that we have our home directory done let's install the standard packages we use.
#+begin_src tmate #+begin_src tmate
sudo apt install --yes htop nvtop screenfetch git curl wget xclip wl-clipboard xsel emacs xterm xtermcontrol jq tmux tmate apt-transport-https dict gh unrar sudo apt install --yes htop nvtop screenfetch git curl wget xclip wl-clipboard xsel emacs xterm xtermcontrol jq tmux tmate apt-transport-https dict gh unrar ripgrep
#+end_src #+end_src
For working with container images locally outside of kubernetes clusters we use [[https://podman.io/][~podman~]] so that we can avoid the security problems of a standard docker daemon. Follow the steps below to install podman: For working with container images locally outside of kubernetes clusters we use [[https://podman.io/][~podman~]] so that we can avoid the security problems of a standard docker daemon. Follow the steps below to install podman: