Skip to content

Instantly share code, notes, and snippets.

@joeycozza
joeycozza / .gitconfig
Last active April 24, 2019 19:19
Some git aliases I have
[alias]
co = checkout
cob = checkout -b
md = merge develop
cm = commit -a -m
s = status
b = branch
graph = log --graph -100 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
precommit = diff --cached --diff-algorithm=minimal -w
cod = checkout develop
@joeycozza
joeycozza / kaladinStormBlessington.zsh-theme
Last active January 17, 2018 22:00
Adding node version to the right of the garyblessington prompt. Requires nvm to be used for node versioning
ZSH_THEME_NVM_PROMPT_PREFIX="%{$fg[green]%}⬢ "
ZSH_THEME_NVM_PROMPT_SUFFIX=""
local node_version='$(nvm_prompt_info)'
PROMPT='%{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}: '
RPROMPT="${node_version}%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[blue]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗%{$reset_color%}"
@joeycozza
joeycozza / javascript.snippets
Last active January 16, 2018 17:34
An Ultisnips snippet that will take a visual selection of string concatenation, and turn it into ES6 templatized string.
snippet str "ES6 String Templatize a string concat visual selection"
\``!p
split = snip.v.text.split("+")
finalStr = ""
for x in split:
x = x.strip()
if x[0] == "'" or x[0] == "\"":
x = x.strip("\"'")
finalStr += x
else: