Skip to content

Commit b4095c1

Browse files
Save changes at: 1741964471
1 parent 7e571f0 commit b4095c1

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

profile.sh

+5-17
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
22
# set -eu
33

4+
# shellcheck disable=SC2119,SC2120
45
function main() {
56
configure_alacritty
67
configure_git
78
configure_gpg
89
configure_helix
9-
configure_kde
1010
configure_profile
1111
configure_tmux
1212
configure_udev
@@ -16,7 +16,7 @@ function main() {
1616
finish
1717
}
1818

19-
configure_alacritty() {
19+
function configure_alacritty() {
2020
echo "--> Configure Alacritty."
2121

2222
mkdir -p "$HOME"/.config/alacritty/
@@ -566,12 +566,12 @@ redpanda-help() {
566566
EOF
567567

568568
cat << EOF | sudo tee /etc/profile.d/common.sh &> /dev/null
569-
append_path () {
569+
function append_path() {
570570
case ":$PATH:" in
571571
*:"$1":*)
572572
;;
573573
*)
574-
PATH="${PATH:+$PATH:}$1"
574+
PATH="${PATH:+$PATH:}$1"
575575
esac
576576
}
577577
EOF
@@ -599,22 +599,12 @@ function configure_gpg() {
599599
function configure_helix() {
600600
echo "--> Configure Helix"
601601

602+
mkdir -p "$HOME"/.config/helix/
602603
cat > "$HOME"/.config/helix/config.toml << 'EOF'
603604
theme = "adwaita-dark"
604605
EOF
605606
}
606607

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-
618608
function configure_vim() {
619609
echo "--> Configure vim."
620610

@@ -706,8 +696,6 @@ EOF
706696

707697
function configure_zellij() {
708698
echo "--> Configure zellij."
709-
710-
711699
}
712700

713701
function configure_udev() {

0 commit comments

Comments
 (0)