Checkout this repo into $HOME/dotfiles
git clone https://github.com/dinhoabreu/dotfiles.git $HOME/dotfilesAdd Oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"References
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlightingecho 'source ~/dotfiles/zshrc' >.zshrcEdit your .gitconfig
[include]
path = ~/dotfiles/gitconfigEnable diff-so-fancy to improve readability.
brew install diff-so-fancy
git config --global core.pager "LC_ALL=C diff-so-fancy | less --tabs=4 -RFX"Copy & Paste on OS X: A Better Future
brew install tmux
brew install reattach-to-user-namespaceEdit your .tmux.conf
source-file ~/dotfiles/tmux.confInstall tmux-better-mouse-mode
git clone https://github.com/nhdaly/tmux-better-mouse-mode ~/dotfiles/tmux-plugins/tmux-better-mouse-modePersistent terminal sessions in VS Code
In VS Code`s User Settings change:
"terminal.integrated.shell.osx": "code-shell"Enable Git Editor
Edit your .gitconfig
[include]
path = ~/dotfiles/gitconfig-vscodeLink .vim and .vimrc to $HOME
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/vim ~/.vim
# Install plugin manager
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
# Install plugins
vim --noplugin -u ~/.vim/vundles.vim -N "+set hidden" "+syntax on" +BundleClean +BundleInstall +qallTo add spell brasilian portuguese language, download
pt_BR dictionary
and rename file to vero_pt_br_v208aoc.oxt.zip.
mv vero_pt_br_v208aoc.oxt.zip /tmp/
cd /tmp/
unzip vero_pt_br_v208aoc.oxt.zip
mkdir ~/.vim/spellThen run following command on vim:
:mkspell ~/.vim/spell/pt /tmp/pt_BRLink ssh/config and ssh/passwd.asc to $HOME/.ssh/
ln -s ~/dotfiles/ssh/config ~/.ssh/config
ln -s ~/dotfiles/ssh/passwd.asc ~/.ssh/passwd.asc
chmod go-rwx ~/.ssh/{config,passwd.asc}Some cases like in my host amsxd01 I have a git hook .git/hooks/post-checkout and ln -s post-checkout .git/hooks/post-merge
#!/usr/bin/env bash
sed '/ProxyCommand.*amsxd01/d' ssh/config >~/.ssh/config
chmod go-rwx ~/.ssh/{config,passwd.asc}and I need to remove the symbolic link rm ~/.ssh/config
Solarized is a sixteen color palette (eight monotones, eight accent colors) designed for use with terminal and gui applications. It has several unique properties. I designed this colorscheme with both precise CIELAB lightness relationships and a refined set of hues based on fixed color wheel relationships. It has been tested extensively in real world use on color calibrated displays (as well as uncalibrated/intentionally miscalibrated displays) and in a variety of lighting conditions. Nerd-fonts for vim-devicons plugin. Download and configure nerd-fonts into iTerm!
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-fontConfigure Hack Nerd Font into iTerm Profile Text and check Use built-in Powerline glyphs. Configure Hack Nerd Font into Terminal: Integrated: Font Family into vscode.
./dotfiles/macosbrew install gpg
git config --global gpg.program gpgEncrypt/Decrypt password file using gpg2.
ssh_passwd # Decrypt ~/.ssh/passwd.asc
ssh_passwd save # Encrypt ~/.ssh/passwd