Add shell option for copying and fix newline in here document.

This commit is contained in:
rdl technix 2023-09-13 16:55:28 +02:00
parent 0d9f742499
commit a27a1adc89

5
install-eat.sh Normal file → Executable file
View file

@ -1,17 +1,18 @@
#!/bin/bash #!/bin/bash
# Install special files for the eat emacs terminal emulator. # Install special files for the eat emacs terminal emulator.
# ama 2023 # ama 2023
shopt -s dotglob
EAT_SHELL_INTEGRATION_DIR=~/.emacs.d/elpa/eat-0.8/integration EAT_SHELL_INTEGRATION_DIR=~/.emacs.d/elpa/eat-0.8/integration
cp -r eat/* ~/ cp -r eat/* ~/
cat >>~/.bashrc <<-EOF cat >>~/.bashrc <<-EOF
[ -e "$EAT_SHELL_INTEGRATION_DIR" ] \ [ -e "$EAT_SHELL_INTEGRATION_DIR" ] \\
&& source "$EAT_SHELL_INTEGRATION_DIR/bash" && source "$EAT_SHELL_INTEGRATION_DIR/bash"
EOF EOF
cat >>~/.zshrc <<-EOF cat >>~/.zshrc <<-EOF
[ -e "$EAT_SHELL_INTEGRATION_DIR" ] \ [ -e "$EAT_SHELL_INTEGRATION_DIR" ] \\
&& source "$EAT_SHELL_INTEGRATION_DIR/zsh" && source "$EAT_SHELL_INTEGRATION_DIR/zsh"
EOF EOF