Zsh Theme For Pragmata Pro

Zsh Theme For Pragmata Pro

#!/usr/bin/env zsh

local LAMBDA="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)"  
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi

# Git sometimes goes into a detached head state. git_prompt_info doesn't
# return anything in this case. So wrap it in another function and check
# for an empty string.
function check_git_prompt_info() {  
  if git rev-parse --git-dir > /dev/null 2>&1; then
    if [[ -z $(git_prompt_info) ]]; then
      echo "%{$fg[blue]%}detached-head%{$reset_color%}) $(git_prompt_status)
%{$fg[yellow]%}→ "
    else
      echo "$(git_prompt_info) $(git_prompt_status)
%{$fg_bold[cyan]%}→ "
    fi
  else

Read More

Versioning NPM packages

Versioning NPM packages

Update January 9th, 2016

In order to update a npm package you may simply npm version patch npm version minor and npm version major for semver. They also support pre versions and a few other features. For more information man npm-version

Original Post

It's a pain to update according to semver so here's a config to help those using gulp. You'll notice the reference path comment on the top. If you're not familiar with the editor update, go check it code out! Microsoft Visual Studio on mac without a virtual host? What is this...

Read More