ldpl-highlighter/nano/install.sh

15 lines
337 B
Bash
Raw Normal View History

2024-02-21 06:24:58 +00:00
#!/usr/bin/env bash
# Check if ~/.nano directory exists
if [ ! -d "$HOME/.nano" ]; then
echo "Creating ~/.nano directory..."
mkdir ~/.nano
fi
# Copy ldpl.nanorc to ~/.nano
echo "Copying ldpl.nanorc to ~/.nano"
cp ldpl.nanorc ~/.nano/ldpl.nanorc
# Add ldpl.nanorc to .nanorc
echo "include $HOME/.nano/ldpl.nanorc" >> ~/.nanorc