fixes for mksh tmux

This commit is contained in:
daniel fusser
2026-09-13 00:30:10 +02:00
parent 648b2b147f
commit d19d52f0ff
2 changed files with 18 additions and 8 deletions
+6 -3
View File
@@ -1,5 +1,5 @@
export HISTFILESIZE=10000
export HISTCONTROL=ignoredups
export HISTSIZE=10000 # mksh uses HISTSIZE; HISTFILESIZE is bash-only
export HISTCONTROL=ignoredups # bash-only, mksh ignores it (kept for other shells)
export HISTFILE=$HOME/.cache/mksh_history
export PAGER="less"
export FCEDIT=nvim
@@ -11,7 +11,10 @@ ulimit -c unlimited
stty -ixon
bind '^l'=clear-screen
bind '^k'=kill-line
bind '^j'=kill-to-eol
# Do NOT bind ^J: it is LF, i.e. the newline the line editor needs to submit a
# command. Rebinding it makes Enter silently do nothing whenever the terminal
# sends LF instead of CR (tmux extended-keys/CSI-u, pasted input, scripts) and
# the shell looks hung. kill-to-eol is unbound now; ^U still does kill-line.
bind '^e'=edit-line
# alias dot='/usr/bin/git --work-tree=$DOTS --git-dir=$DOTS/.git'