Skip to content

Commit

Permalink
style(setup): Clean the English syntax
Browse files Browse the repository at this point in the history
Make it more readable.
  • Loading branch information
5ouma committed Jul 1, 2024
1 parent 67ef98f commit 17e6b98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ setComputerName() {
gum run 'Setting HostName...' -- sudo scutil --set HostName "$computerName"
gum run 'Setting LocalHostName...' -- sudo scutil --set LocalHostName "$localHostName"
gum format <<EOM
- ComputerName : $(gum style 6 "$(sudo scutil --get ComputerName)")
- HostName : $(gum style 6 "$(sudo scutil --get HostName)")
- LocalHostName : $(gum style 6 "$(sudo scutil --get LocalHostName)")
- ComputerName: $(gum style 6 "$(sudo scutil --get ComputerName)")
- HostName: $(gum style 6 "$(sudo scutil --get HostName)")
- LocalHostName: $(gum style 6 "$(sudo scutil --get LocalHostName)")
EOM
} && run 'setComputerName' '## 💻 Set the computer name' true

Expand Down Expand Up @@ -323,7 +323,7 @@ limitBatteryCharge() {
[[ "$(bclm read)" == 80 || $(bclm read) =~ 'driverNotFound' ]] && skip
sudo bclm write 80
sudo bclm persist
} && run 'limitBatteryCharge' '## 🔋 Limit battery carge' true
} && run 'limitBatteryCharge' '## 🔋 Limit battery charge' true

generateGitHooks() {
[[ -f "$XDG_CONFIG_HOME/git/hooks/pre-commit" && -f "$XDG_CONFIG_HOME/git/hooks/commit-msg" ]] && skip
Expand Down

0 comments on commit 17e6b98

Please sign in to comment.