Skip to content

Commit

Permalink
Merge pull request #75 from akshayr-mecha/chore-alacritty-permissions
Browse files Browse the repository at this point in the history
chore(alacritty): changes alacritty theme directory permissions
  • Loading branch information
akshayr-mecha authored Jan 4, 2025
2 parents 0f45438 + f886582 commit 13f6638
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions debian/distro/modules/alacritty-config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,21 @@ Exec=alacritty
SUDO chmod 644 $desktop_file_path
log_debug "Desktop entry created successfully."

let themes_dir = $"/home/mecha/.alacritty-theme"
try {
SUDO chown -R mecha:mecha $themes_dir
log_info "Ownership set successfully."
} catch {
|error| log_error $"Failed to set ownership : ($error)"
}

# set permissions to 700
try {
SUDO chmod 700 $themes_dir
log_info "Permissions set successfully."
} catch {
|error| log_error $"Failed to set permissions : ($error)"
}

log_debug "Alacritty configuration completed successfully."
}

0 comments on commit 13f6638

Please sign in to comment.