12 de abril de 2018

Making Git diff beautiful

# Access https://github.com/so-fancy/diff-so-fancy

# To install
$ brew install diff-so-fancy

# Configure local git to use them
$ git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"

Done! $ git diff

Easy way to have ZSH on Mac OS High Sierra, a unix command line spectacular!

If you do not have ZSH installed on your machine, install them before.
Access to install ZSH https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH

# http://ohmyz.sh/
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Plugins

1 - https://github.com/sindresorhus/pure
$ npm install --global pure-prompt

## Adds on the of file ~/.zshrc the content belhttps://github.com/sindresorhus/purelow
autoload -U promptinit; promptinit
prompt pure

2 - https://github.com/zsh-users/zsh-autosuggestions
$ brew install zsh-autosuggestions

## Adds on the of file ~/.zshrc the content bellow
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh

Done! Your config command line now is ~/.zshrc

# Errors appendix

prompt_pure_setup containing theme pure.

Maybe your nodejs was not installed or not found. Resolve this and try to run the install with npm again.

Running puma 3.6 in Linux's that SSL is updated

When you use the gem Puma 3.6 in your Ruby or Rails project, on Linux that SSL is more updated. You needs to install the previewsly version ...