Skip to content

Commit

Permalink
Merge pull request #73 from mecha-org/revert-65-chore-alacritty
Browse files Browse the repository at this point in the history
Revert "chore(alacritty setup): removes sudo for config setup"
  • Loading branch information
akshayr-mecha authored Jan 4, 2025
2 parents 0ca2a07 + f661d81 commit 009b78d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debian/distro/modules/alacritty-config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@ export def configure_alacritty [] {
# Create config directory if it doesn't exist
if not ($config_dest | path exists) {
log_debug $"Creating directory: ($config_dest)"
mkdir -p $config_dest
SUDO mkdir -p $config_dest
}

# Copy configuration file
log_debug $"Copying ($alacritty_config) to ($config_dest)"
cp $alacritty_config $"($config_dest)/alacritty.yml"
SUDO cp $alacritty_config $"($config_dest)/alacritty.yml"
log_info "alacritty.yml copied successfully."

# Create theme directory and copy theme
log_info "Setting up Alacritty theme..."
if not ($theme_dest | path exists) {
log_debug $"Creating directory: ($theme_dest)"
mkdir -p $theme_dest
SUDO mkdir -p $theme_dest
}

# Copy theme file
log_debug $"Copying ($alacritty_theme) to ($theme_dest)"
cp $alacritty_theme $"($theme_dest)/flat-remix.yml"
SUDO cp $alacritty_theme $"($theme_dest)/flat-remix.yml"
log_info "flat-remix.yml theme file copied successfully."

log_debug "Alacritty configuration completed successfully."
Expand Down

0 comments on commit 009b78d

Please sign in to comment.