neovim hex editor

This commit is contained in:
Michael Chalupiak
2025-09-18 11:28:54 -04:00
parent 6dcd713273
commit 93361624d7
6 changed files with 21 additions and 4 deletions

View File

@@ -197,9 +197,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=hx" hx > /dev/null'
alias hx='tmux new-session -e "EDITOR=hx" hx > /dev/null'
if [ -n "$(command -v tmux)" ] && [ -n "$(command -v helix)" ] && [ -z "$TMUX" ]; then
alias helix='tmux new-session -e "EDITOR=helix" helix > /dev/null'
# alias hx='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)"