summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2025-12-20 11:37:54 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2025-12-20 11:37:54 -0800
commit9199a4c1eb8c77c76d2ed98c0fa88fcae2b0cc4f (patch)
tree8ccfe173554ba4671db9d1af39c121204c06f810 /bashrc
parent9dfc3885317fd4e46a05ca60d5b46a9b57f202b8 (diff)
emacs: terminal key shadowing fix
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc16
1 files changed, 9 insertions, 7 deletions
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
-