Add fzf to my tooling workflow.
This commit is contained in:
15
.bashrc
15
.bashrc
@ -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 {
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user