nixos/tips/distrobox/kde/configure.sh
Florian RICHER d08eb3a107
All checks were successful
check / check (push) Successful in 35s
tips(kdedev): Add .kde_bashrc
2024-09-07 20:55:40 +02:00

27 lines
No EOL
856 B
Bash
Executable file

#!/bin/bash
if [[ $PATH != *".local/bin"* ]]; then
echo "Append .local/bin to PATH in ~/.bashrc"
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
echo "Reload shell"
source ~/.bashrc
fi
if [[ $PATH != *"alias new_shell"* ]]; then
echo "Append new_shell alias to PATH in ~/.bashrc"
echo 'alias new_shell="env -u PATH -u QML2_IMPORT_PATH -u QT_PLUGIN_PATH -u NIXPKGS_QT6_QML_IMPORT_PATH -u XDG_CONFIG_DIRS bash -l"' >> ~/.bashrc
echo "Reload shell"
source ~/.bashrc
fi
echo "Installing kde-builder"
curl 'https://invent.kde.org/sdk/kde-builder/-/raw/master/scripts/initial_setup.sh?ref_type=heads' > ~/initial_setup.sh
bash ~/initial_setup.sh && rm ~/initial_setup.sh
echo "Run initial setup from kde-builder"
kde-builder --initial-setup
echo "Install missing dependencies"
sudo dnf install qt6-*-devel
echo "Configuration DONE"