mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 06:50:13 +00:00
clean up scripts
This commit is contained in:
@ -126,14 +126,11 @@ install_spacemacs() {
|
||||
}
|
||||
|
||||
printf "\nbootstrapping...\n\n"
|
||||
#check_for_zsh
|
||||
#check_for_ohmyzsh
|
||||
install_xcode
|
||||
install_homebrew
|
||||
install_brews
|
||||
setup_tmux
|
||||
install_gitmux
|
||||
install_spacemacs
|
||||
use_fish_shell
|
||||
("$DOTS/scripts/setup_symlinks")
|
||||
|
||||
@ -144,4 +141,5 @@ echo " - configure_macos"
|
||||
echo " - setup_keybase"
|
||||
echo " - install_python"
|
||||
echo " - install_rust"
|
||||
echo " - install_cargos"
|
||||
echo ""
|
||||
|
@ -3,18 +3,12 @@
|
||||
echo "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)"
|
||||
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
|
||||
|
||||
echo "Enable subpixel font rendering on non-Apple LCDs"
|
||||
defaults write NSGlobalDomain AppleFontSmoothing -int 2
|
||||
|
||||
echo "Do NOT automatically show and hide the dock"
|
||||
defaults write com.apple.dock autohide -bool false
|
||||
echo "Automatically show and hide the dock"
|
||||
defaults write com.apple.dock autohide -bool true
|
||||
|
||||
echo "Make Dock icons of hidden applications translucent"
|
||||
defaults write com.apple.dock showhidden -bool true
|
||||
|
||||
echo "Do NOT show all filename extensions in Finder"
|
||||
defaults write NSGlobalDomain AppleShowAllExtensions -bool false
|
||||
|
||||
echo "Use current directory as default search scope in Finder"
|
||||
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
||||
|
||||
@ -75,9 +69,6 @@ defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
|
||||
# echo "Only use UTF-8 in Terminal.app"
|
||||
# defaults write com.apple.terminal StringEncodings -array 4
|
||||
|
||||
# echo "Make ⌘ + F focus the search input in iTunes"
|
||||
# defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
|
||||
|
||||
# Noah Prefs
|
||||
echo "Enable dock magnification"
|
||||
defaults write com.apple.dock magnification -bool true
|
||||
@ -90,8 +81,15 @@ echo "Turn on Scroll Reverser"
|
||||
open /Applications/Scroll\ Reverser.app
|
||||
osascript -e 'tell application "System Events" to make login item at end with properties {path:"/Applications/Scroll Reverser.app", hidden:false}'
|
||||
|
||||
# echo "Allow apps from anywhere"
|
||||
# sudo spctl --master-disable
|
||||
echo "Allow apps from anywhere"
|
||||
SPCTL=$(spctl --status)
|
||||
if ! [ "$SPCTL" = "assessments disabled" ]
|
||||
then
|
||||
sudo spctl --master-disable
|
||||
fi
|
||||
|
||||
# App Store Installs
|
||||
mas install 1017470484 # NextMeeting - show upcoming meeting in menu bar
|
||||
|
||||
# ---
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_cargos() {
|
||||
programs=(
|
||||
cargo-edit
|
||||
cargo-whatfeatures
|
||||
jql
|
||||
racer
|
||||
rustlings
|
||||
toml-cli
|
||||
)
|
||||
for i in "${programs[@]}"; do
|
||||
cargo install "$i"
|
||||
done
|
||||
}
|
@ -22,18 +22,26 @@ download_rust_analyzer() {
|
||||
then
|
||||
echo "downloading rust analyzer"
|
||||
rust_analyzer_bin=/usr/local/bin/rust-analyzer
|
||||
curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-mac -o $rust_analyzer_bin
|
||||
curl -s -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-mac -o $rust_analyzer_bin
|
||||
chmod +x $rust_analyzer_bin
|
||||
fi
|
||||
|
||||
echo "rust-analyzer ✓"
|
||||
}
|
||||
|
||||
cargo_tools() {
|
||||
cargo install toml-cli
|
||||
cargo install jql
|
||||
install_cargos() {
|
||||
programs=(
|
||||
cargo-edit
|
||||
cargo-whatfeatures
|
||||
jql
|
||||
toml-cli
|
||||
)
|
||||
for i in "${programs[@]}"; do
|
||||
cargo install "$i"
|
||||
done
|
||||
}
|
||||
|
||||
install_rust
|
||||
update_rust
|
||||
download_rust_analyzer
|
||||
install_cargos
|
||||
|
Reference in New Issue
Block a user