diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2025-12-20 11:37:54 -0800 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2025-12-20 11:37:54 -0800 |
| commit | 9199a4c1eb8c77c76d2ed98c0fa88fcae2b0cc4f (patch) | |
| tree | 8ccfe173554ba4671db9d1af39c121204c06f810 /bashrc | |
| parent | 9dfc3885317fd4e46a05ca60d5b46a9b57f202b8 (diff) | |
emacs: terminal key shadowing fix
Diffstat (limited to 'bashrc')
| -rw-r--r-- | bashrc | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 - |
