#dotfiles Things I use on el capitan:
- TextMate2
- Fish shell with the Oh-My-Fish framework
- iTerm2
- Homebrew package manager
- base16 tomorrow theme
- hack font
Procedure:
./defaults.sh
if you want- Install iterm2.app
- Install homebrew
- Install homebrew packages (look below)
- Set Fish as default shell
sudo echo '/usr/local/bin/fish' >> /etc/shells; sudo chsh -s /usr/local/bin/fish
- Install Oh-My-Fish
- Copy .config dir from this repo
- Run
omf update
- Set colors + font in TextMate & iTerm
Cool commands available with this homebrew/fish/ohmyfish config:
battery
shows a battery bar in terminalfuck
corrects your last command (like adding sudo)kill-on-port
kills processes based on TCP portcdf
cd to the current Finder directoryitunes
Controle iTunes. Play, pause, stop, resume, etc.manp
Open a specified man page in Previewpfd
Return the path of the frontmost Finder windowpfs
Return the current Finder selectionpushdf
pushd to the current Finder directoryql
Quick Look a specified file or directorytrash
Move a specified file to the Trashz
allows you to doz x
in stead ofcd ~/a/b/c/d/y/x
This runs automatically:
grc
is a Generic Colouriser in python (adds colour to logs (cat
) and commands (ps
,ping
))set_color
package adds extra colors to Fish's set_colorset_color -c --pretty
There is also extra command completion for:
brew
, rvm
, bundler
and gem
## defaults (defaults.sh) #### System Disable startup sound `sudo nvram SystemAudioVolume=" "` Show IP, OS version, etc. when clicking the login window clock `sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName` Expand save panel by default `defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true` Disable smart quotes `defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false` Disable smart dashes `defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false` .DS Dont Write on Network Stores `defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true` Restart on freeze `sudo systemsetup -setrestartfreeze on`
Disable desktop icons
defaults write com.apple.finder CreateDesktop false
Show hidden files in finder
defaults write com.apple.Finder AppleShowAllFiles YES
Disable warning on extension change
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
Set finder views to List
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
QuickLook Enable Text Selection
defaults write com.apple.finder QLEnableTextSelection -bool true
Only copy the email to clipboard
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
Use simple .txt in stead of richtext by default
defaults write com.apple.TextEdit RichText -int 0
Use utf8
defaults write com.apple.TextEdit PlainTextEncoding -int 4
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
### brew packages ``` brew install binutils brew install binwalk brew install caskroom/cask/brew-cask brew install coreutils brew install dex2jar brew install findutils --with-default-names brew install fish brew install fortune brew install gcc brew install homebrew/versions/gcc49 brew install git brew install gnu-sed --with-default-names brew install grc brew install htop-osx brew install hydra brew install john brew install lftp brew install libidn brew install libksba brew install libyaml brew install moreutils brew install mutt brew install mysql brew install nmap brew install node --with-openssl brew install qemu brew install screenfetch brew install socat brew install speedtest_cli brew install sqlmap --HEAD brew install ssh-copy-id brew install tarsnap brew install thefuck brew install unrar brew install wget --with-iri --with-libressl brew install z brew tap homebrew/services`