dotfiles
dotfiles copied to clipboard
My dotfiles for development
Dotfiles
Dotfiles I use with MacOS Sierra mostly for Web Development.

Contains:
- System defaults and Dock icons setup
- Git config with aliases, Git global ignore
- Global aliases
- Functions, colored
manpage,mkfor making folder and entering it,extractto extract any compressed file,eto read .env file variables inpwd,sphpto switch php versions using brew-php-switcher with skip for apache - Custom /etc/hosts file with blocked Ads, Trackers & 🔥 stuff on internet
Inconsolatafont used in PhpStorm, Sublime,Fira Codeused in iTerm2- iTerm2 profile, oh-my-zsh taybalt theme
ssh-managercommand to manage ssh config hosts and keys, including copy public keys to clipboard, transfer to server and more with autocomplete- Packages / CLI (brew, brew cask, dockutil, htop, iftop, openssl, tig, composer, nmap, php70, php71, php72, brew-php-switcher, git, subversion, nvm with node/npm (node 6.2 with latest working npm, LTS node with latest working npm), python3, thefuck, wget, yarn, zsh, zsh-completions, sqlmap, aircrack-ng)
- Applications (alfred, google-chrome, slack, spotify, sublime-text, vlc, phpstorm, sequel-pro, filezilla, postman, iterm2, teamviewer, lastpass, spectacle, appcleaner, skype)
- Valet for web development
dotfilesbinary to manage dotfiles functions with autocompletecodefunction to cd into project with directory autocomplete (code dotfileswill move you into~/Code/dotfiles, with directoriesdotfilesanddotsand typingcode dotthen hitting tab will autocomplete you directories matching namedot)
Install
On fresh installation of MacOS:
sudo softwareupdate -i -a
xcode-select --install
Clone and install dotfiles:
git clone https://github.com/mihaliak/dotfiles.git ~/dotfiles
cd ~/dotfiles
git checkout v3.12
cd ~/dotfiles/install
chmod +wx install.sh
chmod -R +wx ~/dotfiles/bin
./install.sh
Additional steps
- Install fonts
- In iterm
Preferences > General > Load preferences from a custom folder or URLand set it to~/dotfiles/iterm - Import PhpStorm settings
sudo reboot- Enjoy
The dotfiles command
$ dotfiles
→ Usage: dotfiles <command>
Commands:
help This help message
update Update packages and pkg managers (OS, brew, npm, yarn, commposer)
clean Clean up caches (brew, npm, yarn, composer)
symlinks Run symlinks script
brew Run brew script
node Run node setup script
valet Run valet script
ohmyzsh Run oh my zsh script
hosts Run hosts script
defaults Run MacOS defaults script
dock Run MacOS dock script
The ssh-manager command
$ ssh-manager
→ Usage: ssh-manager <command>
Commands:
help This help message
list List of all SSH keys and hosts in SSH config
list-keys List of all SSH keys
copy Copy public SSH key
new Generate new SSH key
host Add host to SSH config, use --key to generate new key
remove Remove host from SSH config
list-host List of all hosts in SSH config
Credits
Many thanks to the dotfiles community and the creators of the incredibly useful tools.