From cc65dbd03c601e8126d23a6f2c06ae48ec398018 Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 27 Nov 2024 16:03:38 +0200 Subject: [PATCH] fish, zsh: make helix the default editor --- cli/.config/fish/conf.d/globals.fish | 2 +- cli/.config/zsh/settings.zsh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cli/.config/fish/conf.d/globals.fish b/cli/.config/fish/conf.d/globals.fish index b7a7c54..b076196 100644 --- a/cli/.config/fish/conf.d/globals.fish +++ b/cli/.config/fish/conf.d/globals.fish @@ -1,6 +1,6 @@ set -x LESS 'i n M R S' set -x PAGER less -set -x EDITOR nvim +set -x EDITOR hx set -x TIME_STYLE long-iso set -x SSH_AUTH_SOCK "$HOME/.ssh/ssh_auth_sock" set -x ALTERNATE_EDITOR "" diff --git a/cli/.config/zsh/settings.zsh b/cli/.config/zsh/settings.zsh index 9f3293f..fd3d416 100644 --- a/cli/.config/zsh/settings.zsh +++ b/cli/.config/zsh/settings.zsh @@ -1,4 +1,4 @@ -# disable the bloody ^S / ^Q, I use tmux all the time anyway +# disable the bloody ^S / ^Q stty -ixon setopt APPEND_HISTORY EXTENDED_HISTORY HIST_IGNORE_DUPS EXTENDED_GLOB AUTO_CD AUTO_PUSHD PRINT_EXIT_VALUE unsetopt BEEP NO_MATCH NOTIFY MENU_COMPLETE AUTO_MENU @@ -7,9 +7,12 @@ SAVEHIST=1000 HISTSIZE=1000 HISTFILE=$HOME/.histfile.$UID +EDITOR=vim +whence hx >/dev/null && EDITOR=hx + +export EDITOR export LESS='i M R' export PAGER=less -export EDITOR=nvim export TIME_STYLE=long-iso export ALTERNATE_EDITOR=