Add shell option for copying and fix newline in here document.
This commit is contained in:
parent
0d9f742499
commit
a27a1adc89
1 changed files with 3 additions and 2 deletions
5
install-eat.sh
Normal file → Executable file
5
install-eat.sh
Normal file → Executable 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue