https://brew.sh/
ln -s /Applications/SourceTree.app/Contents/Resources/stree /usr/local/bin/
brew install tree
tree dir
https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion bobthecow/git-flow-completion#46
- Install
brew install bash-completion
curl -o ~/.git-prompt.sh \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
source ~/.git-prompt.sh
- Add to
~/.bash_profile
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then
. `brew --prefix`/etc/bash_completion.d/git-completion.bash
fi
# or source /usr/local/etc/bash_completion.d/git-completion.bash
For colours
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWSTASHSTATE=true
source ~/.git-prompt.sh
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
GRAY="\[\033[1;30m\]"
LIGHT_GRAY="\[\033[0;37m\]"
CYAN="\[\033[0;36m\]"
LIGHT_CYAN="\[\033[1;36m\]"
NO_COLOUR="\[\033[0m\]"
magenta='\e[0;35m\]'
MAGENTA='\e[1;35m\]'
export PS1='\[\e[1;37m\]\[\e[1;32m\]\u\[\e[0;39m\]:\[\e[1;33m\]\w\[\e[0;39m\]\[\e[1;35m\]$(__git_ps1 " (%s)")\[\e[0;39m\] \[\e[1;37m\]|\[\e[0;39m\]\$'
Installation https://packagecontrol.io/installation
Shortcut
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
Show console ctrl `
Install a package
ctrl shift p
> Package Control
> package-name
1. Press CMD+SHIFT+H to enter your Home folder in Finder
2. Then press CMD+ArrowUp to get into the Users folder
3. Drag the folder of your choice to the Sidebar
In ~/.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/key_rsa
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
Instructions: https://devcenter.heroku.com/articles/heroku-cli#download-and-install
brew install heroku/brew/heroku
- Download from https://devcenter.heroku.com/articles/heroku-cli#download-and-install - https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli.pkg
mysql -h localhost -u username -p db
[merge]
tool = diffmerge
[mergetool "diffmerge"]
path = /Applications/DiffMerge.app/Contents/MacOS/DiffMerge
trustExitCode = false
[diff]
guitool = diffmerge
[difftool "diffmerge"]
path = /Applications/DiffMerge.app/Contents/MacOS/DiffMerge
trustExitCode = false
Install:
Option1: Download
https://graphviz.gitlab.io/download
Option2: NPM
https://github.com/sheerun/graphqlviz
Option3: Homebrew
brew install graphviz
Then symlink to dot
if you don't have it
E.g.
ln -s /usr/local/Cellar/graphviz/2.40.1/bin/dot /usr/local/bin/dot
Usage:
graphqlviz https://endpoint | dot -Tpng -o graph.png