Skip to content

Commit

Permalink
♻️ Make minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
wingy3181 committed Dec 1, 2023
1 parent 4dd46e9 commit 596b979
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/os/create_directories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ create_directories() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

main() {
print_in_purple "\n\n * Create directories\n\n"
print_in_purple "\n * Create directories\n\n"
create_directories
}

Expand Down
2 changes: 1 addition & 1 deletion src/os/create_local_config_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ create_vimrc_local() {

main() {

print_in_purple "\n\n * Create local config files\n\n"
print_in_purple "\n * Create local config files\n\n"

create_bash_local
create_gitconfig_local
Expand Down
2 changes: 1 addition & 1 deletion src/os/initialize_git_repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ initialize_git_repository() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

main() {
print_in_purple "\n Initialize Git repository\n\n"
print_in_purple "\n Initialize Git repository\n\n"
initialize_git_repository "$1"
}

Expand Down
6 changes: 2 additions & 4 deletions src/os/installs/bash-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

main() {

print_in_purple "\n Bash-it\n\n"

declare -r BASHIT_DIR="$HOME/.bash_it"
declare -r BASHIT_GIT_REPO_URL="https://github.com/Bash-it/bash-it.git"

Expand Down Expand Up @@ -77,10 +79,6 @@ main() {
&& bash-it enable plugin proxy" \
"Bash-it (enable plugins)"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_green "\n ---\n\n"

}

main
2 changes: 1 addition & 1 deletion src/os/installs/npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main() {
print_in_purple "\n npm\n\n"

install_npm_package "Update npm" "npm"
printf "\n"
#printf "\n"
# Install the specified `npm` packages
# [!]: IMPORTANT - These only get installed on the default version of node set by nvm
# and have to get re-installed when switching node versions via nvm
Expand Down
2 changes: 1 addition & 1 deletion src/os/installs/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ main() {

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n\n * Installs\n"
print_in_purple "\n * Installs\n"
print_warning "This may take awhile, so please be patient!\n"

if $skipQuestions; then
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/app_store.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n App Store\n\n"
print_in_purple "\n App Store\n\n"

execute "defaults write com.apple.appstore ShowDebugMenu -bool true" \
"Enable debug menu"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Chrome\n\n"
print_in_purple "\n Chrome\n\n"

execute "defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false" \
"Disable backswipe"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/computer_name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main() {

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n UI & UX\n\n"
print_in_purple "\n UI & UX\n\n"

declare -r netBiosName=$(defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName 2> /dev/null)
declare -r computerName=$(scutil --get ComputerName 2> /dev/null)
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/dock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Dock\n\n"
print_in_purple "\n Dock\n\n"

execute "defaults write com.apple.dock autohide -bool true" \
"Automatically hide/show the Dock"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/keyboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Keyboard\n\n"
print_in_purple "\n Keyboard\n\n"

# System Preferences -> Keyboard -> Shortcuts -> 1=Text boxes and lists only, 3=All controls
# https://github.com/CamHenlin/imessageclient/issues/6
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/maps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Maps\n\n"
print_in_purple "\n Maps\n\n"

execute "defaults write com.apple.Maps LastClosedWindowViewOptions '{
localizeLabels = 1; // show labels in English
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/photos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Photos\n\n"
print_in_purple "\n Photos\n\n"

execute "defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true" \
"Prevent Photos from opening automatically when devices are plugged in"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/safari.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Safari\n\n"
print_in_purple "\n Safari\n\n"

execute "defaults write com.apple.Safari AutoOpenSafeDownloads -bool false" \
"Disable opening 'safe' files automatically"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/terminal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Terminal\n\n"
print_in_purple "\n Terminal\n\n"

execute "defaults write com.apple.terminal FocusFollowsMouse -string true" \
"Make the focus automatically follow the mouse"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/textedit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n TextEdit\n\n"
print_in_purple "\n TextEdit\n\n"

# TextEdit -> Preferences -> Open and Save -> Plain Text File Encoding
execute "defaults write com.apple.TextEdit PlainTextEncoding -int 4 && \
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/trackpad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Trackpad\n\n"
print_in_purple "\n Trackpad\n\n"

execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool false && \
defaults write com.apple.AppleMultitouchTrackpad Clicking -int 0 && \
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/transmission.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Transmission\n\n"
print_in_purple "\n Transmission\n\n"

execute "defaults write org.m0k.transmission DeleteOriginalTorrent -bool true" \
"Delete the original torrent files"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/ui_and_ux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n UI & UX\n\n"
print_in_purple "\n UI & UX\n\n"

execute "defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true && \
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true" \
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/macos/xtrafinder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n XtraFinder\n\n"
print_in_purple "\n XtraFinder\n\n"

execute "defaults write com.apple.finder XtraFinder_ShowStatusBarIcon -bool false" \
"Tools -> Hide Menu Bar Icon (enable)"
Expand Down
2 changes: 1 addition & 1 deletion src/os/preferences/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ main() {

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n\n * Preferences\n"
print_in_purple "\n * Preferences\n"

if $skipQuestions; then
"./$(get_os)/main.sh" -y
Expand Down
12 changes: 5 additions & 7 deletions src/os/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ main() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

if ! $skipQuestions; then
ask_for_confirmation "Do you want the additional directories to be created?"
ask_for_confirmation "\n\n\naDo you want the additional directories to be created?1"
printf "\n"
fi

Expand All @@ -264,7 +264,7 @@ main() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

if ! $skipQuestions; then
ask_for_confirmation "Do you want local config files for bash, git and vim to be created?"
ask_for_confirmation "\n\n\nDo you want local config files for bash, git and vim to be created?"
printf "\n"
fi

Expand All @@ -275,7 +275,7 @@ main() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

if ! $skipQuestions; then
ask_for_confirmation "Do you want to install the applications/command line tools?"
ask_for_confirmation "\n\n\nDo you want to install the applications/command line tools?"
printf "\n"
fi

Expand All @@ -288,7 +288,7 @@ main() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

if ! $skipQuestions; then
ask_for_confirmation "Do you want to set the custom preferences?"
ask_for_confirmation "\n\n\nDo you want to set the custom preferences?"
printf "\n"
fi

Expand Down Expand Up @@ -316,7 +316,7 @@ main() {

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

print_in_purple "\n Optional items & reminders\n\n"
print_in_purple "\n * Optional items & reminders\n\n"

print_optional_info "Add favourite locations (home & Development) to Finder sidebar"
print_optional_info "Activate gifox license"
Expand Down Expand Up @@ -356,8 +356,6 @@ main() {
print_optional_info "Set Jetbrains IDE settings via IDE Settings Sync and Jetbrains account (https://plugins.jetbrains.com/plugin/9922-ide-settings-sync and https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#IDE_settings_sync)"
print_optional_info "Set VS Code settings via Settings Sync (https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync and https://gist.github.com/wingy3181/e7b8fde022a14cff76a96b4a1a98ad7f)"

printf "\n"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Expand Down

0 comments on commit 596b979

Please sign in to comment.