From a27a1adc89763cecb04f1f5e96c1392829d22af3 Mon Sep 17 00:00:00 2001 From: rdl technix Date: Wed, 13 Sep 2023 16:55:28 +0200 Subject: [PATCH] Add shell option for copying and fix newline in here document. --- install-eat.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 install-eat.sh diff --git a/install-eat.sh b/install-eat.sh old mode 100644 new mode 100755 index 33d4c3e..205f40e --- a/install-eat.sh +++ b/install-eat.sh @@ -1,17 +1,18 @@ #!/bin/bash # Install special files for the eat emacs terminal emulator. # ama 2023 +shopt -s dotglob EAT_SHELL_INTEGRATION_DIR=~/.emacs.d/elpa/eat-0.8/integration cp -r eat/* ~/ cat >>~/.bashrc <<-EOF - [ -e "$EAT_SHELL_INTEGRATION_DIR" ] \ + [ -e "$EAT_SHELL_INTEGRATION_DIR" ] \\ && source "$EAT_SHELL_INTEGRATION_DIR/bash" EOF cat >>~/.zshrc <<-EOF - [ -e "$EAT_SHELL_INTEGRATION_DIR" ] \ + [ -e "$EAT_SHELL_INTEGRATION_DIR" ] \\ && source "$EAT_SHELL_INTEGRATION_DIR/zsh" EOF