changed default editor
This commit is contained in:
parent
72a49d5e1c
commit
8f23c730a6
@ -135,7 +135,8 @@ alias zf='z $(flirt)'
|
|||||||
# ~/.bash_aliases, instead of adding them here directly.
|
# ~/.bash_aliases, instead of adding them here directly.
|
||||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||||
# if [ -z "$EDITOR" ]; then
|
# if [ -z "$EDITOR" ]; then
|
||||||
export EDITOR='kak'
|
# export EDITOR='kak'
|
||||||
|
export EDITOR='helix'
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
if [ -f ~/.bash_aliases ]; then
|
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'
|
alias vipe='EDITOR="/usr/bin/kak -c $SESH 2>/dev/null || /usr/bin/kak -s $SESH" vipe'
|
||||||
fi
|
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
|
# 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)"
|
# 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"
|
# alias tmux="tmux new-session -s $SESH"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
[core]
|
[core]
|
||||||
editor = kak
|
editor = helix
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
[sendemail]
|
[sendemail]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user