dotfiles/.local/scripts/other-common-scripts/0-init.sh

20 lines
662 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
if [[ ! -f "${HOME}/.config/alacritty/platform.yml" ]]; then
if [[ "$(uname -s)" == 'Linux' ]]; then
ln -s "${HOME}/.config/alacritty/"{linux,platform}.yml
elif [[ "$(uname -s)" == 'Darwin' ]]; then
ln -s "${HOME}/.config/alacritty/"{darwin,platform}.yml
fi
fi
# for some reason Fedora/RHEL does not have a '/etc/ssl/certs/ca-certificates.crt'
# instead they have a '/etc/pki/tls/certs/ca-bundle.crt'
if [[ "$(uname -s)" == 'Linux' ]]; then
if grep "ID_LIKE=*.rhel*." /etc/os-release > /dev/null; then
sudo ln -s /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt
fi
fi