From 9199a4c1eb8c77c76d2ed98c0fa88fcae2b0cc4f Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Sat, 20 Dec 2025 11:37:54 -0800 Subject: emacs: terminal key shadowing fix --- bashrc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index df54154..81b3265 100644 --- a/bashrc +++ b/bashrc @@ -1,7 +1,7 @@ # If not running interactively, don't do anything case $- in *i*) ;; - *) return;; + *) return;; esac # don't put duplicate lines or lines starting with space in the history. @@ -46,13 +46,16 @@ unset color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in -xterm*|rxvt*|st*|alacritty*) - PS1="\[\e]0;\u@\h: \w\a\]$PS1" - ;; -*) - ;; + xterm*|rxvt*|st*|alacritty*) + PS1="\[\e]0;\u@\h: \w\a\]$PS1" + ;; + *) + ;; esac +[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \ + source "$EAT_SHELL_INTEGRATION_DIR/bash" + export ALTERNATE_EDITOR=emacs export EDITOR="emacsclient -c" export VISUAL="emacsclient -c" @@ -60,4 +63,3 @@ export VISUAL="emacsclient -c" if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi - -- cgit v1.2.3