Files
omarchy/install/4-config.sh

44 lines
1.3 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
# Copy over Omarchy configs
cp -R ~/.local/share/omarchy/config/* ~/.config/
2025-07-04 16:00:28 -07:00
# Ensure application directory exists for update-desktop-database
mkdir -p ~/.local/share/applications
# Setup GPG configuration with multiple keyservers for better reliability
sudo mkdir -p /etc/gnupg
sudo cp ~/.local/share/omarchy/default/gpg/dirmngr.conf /etc/gnupg/
sudo chmod 644 /etc/gnupg/dirmngr.conf
sudo gpgconf --kill dirmngr || true
sudo gpgconf --launch dirmngr || true
# Use default bashrc from Omarchy
echo "source ~/.local/share/omarchy/default/bash/rc" >~/.bashrc
# Set common git aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global pull.rebase true
2025-07-02 13:15:37 -07:00
git config --global init.defaultBranch master
2025-06-16 12:37:30 +02:00
# Set identification from install inputs
2025-06-28 10:10:03 -07:00
if [[ -n "${OMARCHY_USER_NAME//[[:space:]]/}" ]]; then
git config --global user.name "$OMARCHY_USER_NAME"
2025-06-16 12:37:30 +02:00
fi
2025-06-28 10:10:03 -07:00
if [[ -n "${OMARCHY_USER_EMAIL//[[:space:]]/}" ]]; then
git config --global user.email "$OMARCHY_USER_EMAIL"
2025-06-16 12:37:30 +02:00
fi
2025-06-24 14:07:50 -07:00
# Set default XCompose that is triggered with CapsLock
2025-06-16 12:37:30 +02:00
tee ~/.XCompose >/dev/null <<EOF
include "%H/.local/share/omarchy/default/xcompose"
# Identification
2025-06-28 10:10:03 -07:00
<Multi_key> <space> <n> : "$OMARCHY_USER_NAME"
<Multi_key> <space> <e> : "$OMARCHY_USER_EMAIL"
2025-06-16 12:37:30 +02:00
EOF