Add some tweaks into current Unix/Ubuntu user's home directory. Inspired by https://github.com/paulirish/dotfiles for MacOS. For Windows I prefer my https://github.com/StefanScherer/dotfiles-windows.
This is what the terminal looks like
git clone https://github.com/StefanScherer/dotfiles && cd dotfiles && ./sync.sh
To update later on, just run the sync.sh again.
The usage of sync.sh is
sync.sh [--all|-a] [--force|-f]
--all|-a install all tools, also YouCompleteMe (big dependencies)
--force|-f force overwriting files in $HOME
- autoenv - Directory-based environments
- addtime: show relative time stamp in stdout of another tool. Usage: anothertool | addtime
- timeref: show relative time diffs in logfile. Usage: timeref logfile | gvim -
Fn + F12: toggle One Dark/Light theme in terminal- t: toggle Dark Mode of macOS and Windows from WSL
- whoseport: Who is running that port?
- z: "z foo" - cd to most frecent dir matching foo
- ..: one dir up
- ...: two dirs up
- ....: three dirs up
- .....: four dirs up
- ~: go into users home directory
- eachdir: start a command for all sub directories
- gi: create
.gitignorefile, see gitignore.io - gitcloneall: clone all repos of an organization or user
Usage: gitcloneall git@github.com:YOUR_ORG [user[:pass]] Clones all repos of a GitHub org or user. gitcloneall git@github.com:StefanScherer gitcloneall git@github.com:myorg myuser:password_to_access_private_repos - gitall: start a git command for all sub directories
gitall pull vi */README.md gitall add README.md gitall commit -m "updated README.md" gitall push - gitls: show git status of all repos in current dir, you may add args like in
lsto filter dirs
- git undo-commit: undo last commit, as it says
- hosts: edit your hosts file
- logvi logfile: view a log file with relative times in gvim
- ssh-me: copy my SSH key to remote machine and install my dotfiles there
- dps: like
docker ps, but with less columns - dm: docker-machine shortener:
dm devordm start devordm ip dev...- dm dev is a shortcut for
eval $(docker-machine env dev) - also integrates my windows-docker-machine's 2016, 1709 and insider using Vagrant to start/stop them
- also integrates my docker-windows-azure machines az2016 and az1709 using azure cli to start/stop them
- dm dev is a shortcut for
- installs Vundle and some other stuff
- EditorConfig
,c: show trailing white space,ss: strip trailing white space,e: format JavaScript code with esformatter (npm install -g esformatter)
The simplest way to setup a new Mac box is to download and run the setup-mac script.
curl https://raw.githubusercontent.com/StefanScherer/dotfiles/master/setup-mac | bash
check_macos_updated install_brew install_dotfiles install_terminal_profiles install_brew_packages
- It will run all macOS updates before it installs anything. Maybe you have to run it again after installing updates and rebooting the machine.
- It install
brew - It clones this dotfiles repo and executes the
sync.shscript to install/update it - It installs the One Dark/Light terminal profiles
- It installs all brew packages in
brew.txt - It installs all brew casks in
cask.txt
Things you have to do manually
- Run
SizeUpand enter the license - Insert your Vagrant VMware license
Copyright (c) 2014 Stefan Scherer
MIT License, see LICENSE.txt for more details.
