Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dinhoabreu/dotfiles

Repository files navigation

My dotfiles

Installation

Checkout this repo into $HOME/dotfiles

git clone https://github.com/dinhoabreu/dotfiles.git $HOME/dotfiles
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Plugins

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-highlighting

Shell - setup

echo 'source ~/dotfiles/zshrc' >.zshrc

Git - config

Edit your .gitconfig

[include]
  path = ~/dotfiles/gitconfig

Enable 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"

Tmux - config

Copy & Paste on OS X: A Better Future

brew install tmux
brew install reattach-to-user-namespace

Edit your .tmux.conf

source-file ~/dotfiles/tmux.conf

Install tmux-better-mouse-mode

git clone https://github.com/nhdaly/tmux-better-mouse-mode ~/dotfiles/tmux-plugins/tmux-better-mouse-mode

VS Code

Persistent 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-vscode

Vim - config

Link .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 +qall

To 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/spell

Then run following command on vim:

:mkspell ~/.vim/spell/pt /tmp/pt_BR

SSH - config

Link 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

Terminal - Theme solarized

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-font

Configure 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.

MacOS defaults

./dotfiles/macos

GPG macOS

brew install gpg
git config --global gpg.program gpg

Commands

ssh_passwd

Encrypt/Decrypt password file using gpg2.

ssh_passwd # Decrypt ~/.ssh/passwd.asc
ssh_passwd save # Encrypt ~/.ssh/passwd

About

My dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors