1
1
#! /usr/bin/env bash
2
2
# set -eu
3
3
4
+ # shellcheck disable=SC2119,SC2120
4
5
function main() {
5
6
configure_alacritty
6
7
configure_git
7
8
configure_gpg
8
9
configure_helix
9
- configure_kde
10
10
configure_profile
11
11
configure_tmux
12
12
configure_udev
@@ -16,7 +16,7 @@ function main() {
16
16
finish
17
17
}
18
18
19
- configure_alacritty () {
19
+ function configure_alacritty() {
20
20
echo " --> Configure Alacritty."
21
21
22
22
mkdir -p " $HOME " /.config/alacritty/
@@ -566,12 +566,12 @@ redpanda-help() {
566
566
EOF
567
567
568
568
cat << EOF | sudo tee /etc/profile.d/common.sh &> /dev/null
569
- append_path () {
569
+ function append_path () {
570
570
case ":$PATH :" in
571
571
*:"$1 ":*)
572
572
;;
573
573
*)
574
- PATH="${PATH: +$PATH : } $1 "
574
+ PATH="${PATH: +$PATH : } $1 "
575
575
esac
576
576
}
577
577
EOF
@@ -599,22 +599,12 @@ function configure_gpg() {
599
599
function configure_helix() {
600
600
echo " --> Configure Helix"
601
601
602
+ mkdir -p " $HOME " /.config/helix/
602
603
cat > " $HOME " /.config/helix/config.toml << 'EOF '
603
604
theme = "adwaita-dark"
604
605
EOF
605
606
}
606
607
607
- function configure_kde() {
608
- echo " --> Configure KDE."
609
- # kwriteconfig6 --file ~/.config/kdedefaults/ksplashrc --group KSplash --key Theme org.kde.breezedark.desktop
610
- # kwriteconfig6 --file ~/.config/kdeglobals --group General --key ColorSchemeHash babca25f3a5cf7ece26a85de212ab43d0a141257
611
- # kwriteconfig6 --file ~/.config/kdeglobals --group KDE --key LookAndFeelPackage org.kde.breezedark.desktop
612
- # kwriteconfig6 --file ~/.config/kdeglobals --group KDE --key widgetStyle Fusion
613
- # kwriteconfig6 --file ~/.config/kdeglobals --group Sounds --key Enable false
614
- # kwriteconfig6 --file ~/.config/plasma-localerc --group Formats --key LANG en_US.UTF-8
615
- # kwriteconfig6 --file ~/.config/plasmanotifyrc --group DoNotDisturb --key NotificationSoundsMuted true
616
- }
617
-
618
608
function configure_vim() {
619
609
echo " --> Configure vim."
620
610
706
696
707
697
function configure_zellij() {
708
698
echo " --> Configure zellij."
709
-
710
-
711
699
}
712
700
713
701
function configure_udev() {
0 commit comments