♻️ Install cURL/wget from brew on all systems
This commit is contained in:
parent
4225758983
commit
144d15ca7f
5 changed files with 62 additions and 3 deletions
|
@ -8,6 +8,9 @@ source "$DOT/os/apt_utils.fish"
|
|||
|
||||
print_subtitle "OS"
|
||||
|
||||
brew_install "wget" "wget"
|
||||
brew_install "cURL" "curl"
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]
|
||||
brew_install "mas-cli" "mas"
|
||||
|
||||
|
@ -36,9 +39,6 @@ if [ "$(uname)" = "Darwin" ]
|
|||
brew_install "The Unarchiver" "the-unarchiver" "--cask"
|
||||
|
||||
else if [ "$(uname)" = "Linux" ] && cmd_exists snap
|
||||
apt_install "wget" "wget"
|
||||
apt_install "curl" "cURL"
|
||||
|
||||
# Networking.
|
||||
if ! cmd_exists windscribe
|
||||
execute "sudo wget https://github.com/Windscribe/Desktop-App/releases/download/v2.8.6/windscribe_2.8.6_amd64.deb -O /tmp/ws.deb \
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
"$DOT/os/macos/close_prefs.applescript"
|
||||
|
||||
find "$DOT/os/macos/" -name "*.pref.fish" | while read file; fish -c "$file"; end
|
21
os/macos/app_store.pref.fish
Normal file
21
os/macos/app_store.pref.fish
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
source "$DOT/script/utils.fish"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
print_subtitle "App Store"
|
||||
|
||||
execute "defaults write com.apple.commerce AutoUpdate -bool true" \
|
||||
"Turn on auto-update"
|
||||
|
||||
execute "defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true" \
|
||||
"Enable automatic update check"
|
||||
|
||||
execute "defaults write come.apple.SoftwareUpdate AutomaticDownload -int 1" \
|
||||
"Download newly available updates in background"
|
||||
|
||||
execute "defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 1" \
|
||||
"Install system data files and security updates"
|
||||
|
||||
killall "App Store" &>/dev/null
|
3
os/macos/close_prefs.applescript
Normal file
3
os/macos/close_prefs.applescript
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env osascript
|
||||
|
||||
tell application "System Preferences" to quit
|
30
os/macos/dock.pref.fish
Normal file
30
os/macos/dock.pref.fish
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
source "$DOT/script/utils.fish"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
print_subtitle "Dock"
|
||||
|
||||
execute "defaults write com.apple.dock autohide -bool true" \
|
||||
"Automatically hide/show the dock"
|
||||
|
||||
execute "defaults write com.apple.dock autohide-delay -float 0" \
|
||||
"Disable the hide dock delay"
|
||||
|
||||
execute "defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true" \
|
||||
"Enable spring loading for all dock items"
|
||||
|
||||
execute "defaults write com.apple.dock expose-animation-duration -float 0.1" \
|
||||
"Make all mission control animations faster"
|
||||
|
||||
execute "defaults write com.apple.dock mineffect -string 'scale'" \
|
||||
"Change minimize/maximize window animation to 'scale'"
|
||||
|
||||
execute "defaults write com.apple.dock mru-spaces -bool false" \
|
||||
"Do not automatically rearrange spaces based on most recent use"
|
||||
|
||||
execute "defaults write com.apple.dock show-recents -bool false" \
|
||||
"Do not show recent applications in dock"
|
||||
|
||||
killall "Dock" &>/dev/null
|
Loading…
Reference in a new issue