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
man
page,mk
for making folder and entering it,extract
to extract any compressed file,e
to read .env file variables inpwd
,sphp
to switch php versions using brew-php-switcher with skip for apache - Custom /etc/hosts file with blocked Ads, Trackers &
🔥 stuff on internet Inconsolata
font used in PhpStorm, Sublime,Fira Code
used in iTerm2- iTerm2 profile, oh-my-zsh taybalt theme
ssh-manager
command 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
dotfiles
binary to manage dotfiles functions with autocompletecode
function to cd into project with directory autocomplete (code dotfiles
will move you into~/Code/dotfiles
, with directoriesdotfiles
anddots
and typingcode dot
then 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 URL
and set it to~/dotfiles/iterm
- Import PhpStorm settings
sudo reboot
- Enjoy
dotfiles
command
The $ 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
ssh-manager
command
The $ 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.