From 8f23c730a62fa9aaa68ff41600f9b1f3e1190fef Mon Sep 17 00:00:00 2001 From: Michael Chalupiak Date: Tue, 3 Jun 2025 18:11:23 -0400 Subject: [PATCH] changed default editor --- config/.bashrc | 6 +++++- config/.gitconfig | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/.bashrc b/config/.bashrc index 27c6818..dedd464 100644 --- a/config/.bashrc +++ b/config/.bashrc @@ -135,7 +135,8 @@ alias zf='z $(flirt)' # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. # if [ -z "$EDITOR" ]; then -export EDITOR='kak' +# export EDITOR='kak' +export EDITOR='helix' # fi if [ -f ~/.bash_aliases ]; then @@ -191,6 +192,9 @@ elif [ -n "$(command -v tmux)" ] && [ -n "$(command -v kak)" ]; then alias vipe='EDITOR="/usr/bin/kak -c $SESH 2>/dev/null || /usr/bin/kak -s $SESH" vipe' fi +if [ -n "$(command -v tmux)" ] && [ -n "$(command -v helix || command -v hx)" ] && [ -z "$TMUX" ]; then + alias helix='tmux new-session -e "EDITOR=helix" helix > /dev/null' +fi # if [ -n "$(command -v tmux)" ] && [ -z "$TMUX" ]; then # SESH="$( (tmux list-sessions 2>/dev/null || echo '-1') | cut -d' ' -f1 | tr -d ':-' | sort -r | head -n1 | xargs -I{} echo '{} + 1' | bc)" # alias tmux="tmux new-session -s $SESH" diff --git a/config/.gitconfig b/config/.gitconfig index 013d369..6917221 100644 --- a/config/.gitconfig +++ b/config/.gitconfig @@ -7,7 +7,7 @@ process = git-lfs filter-process required = true [core] - editor = kak + editor = helix [init] defaultBranch = master [sendemail]