diff --git a/.bashrc b/.bashrc index e8e681a..3f8a2ba 100644 --- a/.bashrc +++ b/.bashrc @@ -107,9 +107,22 @@ if ! shopt -oq posix; then 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 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 function color_my_prompt { diff --git a/setup.org b/setup.org index a314e06..404b03b 100644 --- a/setup.org +++ b/setup.org @@ -27,7 +27,7 @@ cd ~/ && mkdir Documents Downloads Now that we have our home directory done let's install the standard packages we use. #+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 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: