From 63e0b3c9df5748ae5143403abaa8ea8e5f9c3a15 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 26 Aug 2024 23:55:22 +0200 Subject: Make 'e' my new EDITOR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .bashrc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 6fff26b..99d5a9e 100644 --- a/.bashrc +++ b/.bashrc @@ -66,20 +66,17 @@ if command -v bat &>/dev/null; then fi # Set up fzf key bindings and fuzzy completion -if command -v fzf &> /dev/null; then +if command -v fzf &>/dev/null; then eval "$(fzf --bash)" fi ## # Editors & terminals. -# Set GNU Emacs as the default editor. You can find this `emacsclient-a-nw` -# executable in the `bin` directory of my dotfiles. That being said, in the -# `bin` directory there is a globally installed script called `e`. This is the -# script that will be called most of the times from the CLI for reaching out to -# the default editor. -export EDITOR=emacsclient-a-nw -export VISUAL=emacsclient-a-nw +# The default editor is simply called 'e', which is a shell script that will +# call the proper editor depending on what's installed on the system. +export EDITOR=e +export VISUAL=e alias vi=vim # We want a full-fledged 256-color terminal. -- cgit v1.2.3