Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Commit eed7a15

Browse files
committed
fix: zsh stowing and remove code duplication
1 parent d893603 commit eed7a15

File tree

4 files changed

+1
-39
lines changed

4 files changed

+1
-39
lines changed

unix/common/dotfiles/zsh.sh

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,6 @@ setup_zsh() {
1111

1212
echo "Configuring ZSH"
1313

14-
if ! command -v zsh &>/dev/null; then
15-
echo "[ERROR] ZSH is not installed"
16-
echo "[INFO] Install ZSH:"
17-
echo " - macOS: brew install zsh"
18-
echo " - Fedora: sudo dnf install zsh"
19-
echo " - Debian: sudo apt install zsh"
20-
echo " - Android: pkg install zsh"
21-
return 1
22-
fi
23-
24-
mkdir -p "$zsh_dir"
25-
26-
local zgenom_dir="$zsh_dir/.zgenom"
27-
28-
if [[ ! -d "$zgenom_dir" ]]; then
29-
echo "[INFO] zgenom not found, cloning from GitHub"
30-
git clone https://github.com/jandamm/zgenom.git "$zgenom_dir"
31-
echo "[SUCCESS] zgenom installed"
32-
else
33-
echo "[INFO] zgenom already installed"
34-
fi
35-
3614
local additionals_file="$zsh_dir/.additionals.zsh"
3715
local platform=$(detect_platform)
3816

unix/fedora/install/config/performance.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,6 @@ if [[ "$enable_fstrim" == "true" ]]; then
5252
fi
5353
fi
5454

55-
# Disable NetworkManager-wait-online for faster boot
56-
if systemctl list-unit-files | grep -q "NetworkManager-wait-online.service"; then
57-
log_info "Disabling NetworkManager-wait-online.service for faster boot"
58-
59-
if sudo systemctl disable NetworkManager-wait-online.service 2>/dev/null; then
60-
log_success "NetworkManager-wait-online.service disabled (saves ~15-20s boot time)"
61-
else
62-
log_info "NetworkManager-wait-online.service already disabled"
63-
fi
64-
else
65-
log_info "NetworkManager-wait-online.service not found"
66-
fi
67-
6855
# CPU mitigations
6956
disable_mitigations=$(get_config '.performance.disable_cpu_mitigations')
7057

unix/fedora/install/dotfiles/all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
log_section "Dotfiles Management"
55

66
source "$FEDORA_INSTALL/dotfiles/directories.sh"
7+
source "$FEDORA_INSTALL/dotfiles/zsh.sh"
78
source "$FEDORA_INSTALL/dotfiles/stow.sh"
89
source "$FEDORA_INSTALL/dotfiles/fonts.sh"
9-
source "$FEDORA_INSTALL/dotfiles/zsh.sh"
1010

1111
log_success "Dotfiles management completed"

unix/fedora/install/dotfiles/zsh.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
2-
# ZSH configuration for Fedora
3-
# Uses common Unix ZSH script
42

5-
# Get ZSH configuration
63
zsh_dir=$(expand_path "$(get_config '.directories.zsh')")
74

85
# Source and run common ZSH setup

0 commit comments

Comments
 (0)