From e9890f38308f05993736a850df9f85fcac81e8c0 Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Mon, 22 Jul 2019 20:07:59 +0200 Subject: [PATCH] Definition and doc for default settings --- README.md | 4 +--- dot_macos | 15 +++++++++++++++ dot_vimrc | 36 +++++++++++++++++++++++++++++++++++- 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 dot_macos diff --git a/README.md b/README.md index fa4b342..8155672 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,7 @@ git reset --hard ### OSX Defaults ``` -defaults write http://com.apple .screencapture location ~/Downloads -#defaults write com.apple.PowerChime ChimeOnNoHardware -bool true # still KO after closing lid -#killall PowerChime +./.macos ``` ### Install NPM dependencies diff --git a/dot_macos b/dot_macos new file mode 100644 index 0000000..4e13d19 --- /dev/null +++ b/dot_macos @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Save screenshots to the ~/Downloads folder +defaults write http://com.apple.screencapture location ~/Downloads +# Finder: show hidden files by default +#defaults write com.apple.finder AppleShowAllFiles -bool true +# Finder: show all filename extensions +defaults write NSGlobalDomain AppleShowAllExtensions -bool true +# Finder: show path bar +defaults write com.apple.finder ShowPathbar -bool true +#defaults write com.apple.PowerChime ChimeOnNoHardware -bool true # still KO after closing lid +#killall PowerChime + +# Avoid creating .DS_Store files on network or USB volumes +defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true +defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true diff --git a/dot_vimrc b/dot_vimrc index fb91c8a..dbdbee2 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -1,10 +1,44 @@ +" Enable syntax highlighting syntax on +" Enable line numbers set number +" Enable desert theme colorscheme desert +" Always show status line set laststatus=2 + +" Highlight unwanted spaces : +" 1. highlight trailing whitespace in red +" 2. have this highlighting not appear whilst you are typing in insert mode +" 3. have the highlighting of whitespace apply when you open new buffers highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@