machine-setup/install-eat.sh
2025-06-18 09:03:58 +02:00

19 lines
412 B
Bash
Executable file

#!/bin/bash
# Install special files for the eat emacs terminal emulator.
# ama 2023
shopt -s dotglob
EAT_SHELL_INTEGRATION_DIR=~/.eat/integration
cp -r eat ~/.eat
mv ~/.eat/.terminfo ~/
cat >>~/.bashrc <<-EOF
[ -e "$EAT_SHELL_INTEGRATION_DIR" ] \\
&& source "$EAT_SHELL_INTEGRATION_DIR/bash"
EOF
cat >>~/.zshrc <<-EOF
[ -e "$EAT_SHELL_INTEGRATION_DIR" ] \\
&& source "$EAT_SHELL_INTEGRATION_DIR/zsh"
EOF