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

.zshrc

.zshrc

It all started one long rainy night after setting down my Archlinux laptop and picking up my macbook pro.. inevitably annoyed quickly by the ancient bash version. Switched to zshell. Downloaded oh-my-zsh for a prettiness template to start with.. customized my own theme, and have been hooked for a solid 3 months so far.

# Variable declaration
ZSH_THEME="powerlevel9k/powerlevel9k"  
HIST_STAMPS="dd.mm.yyyy"  
POWERLEVEL9K_PROMPT_ON_NEWLINE=true  
plugins=(git)

# User configuration
export ZSH=/Users/nateinman/.oh-my-zsh  
source $ZSH/oh-my-zsh.sh  
export LANG=en_US.UTF-8  
export PATH=/usr/local/share/npm/lib/node_modules/grunt-cli/bin:$PATH

Read More

tmux + vim + iterm2 + powerline

tmux + vim + iterm2 + powerline

I've been pretty pampered with all my IDE's in the past working a lot on windows machines. Whether it was Visual Studio, Sublime 3 or even notepad++ it's been a good ride. Lately though I've switched entirely to an arch linux custom build on my home pc, and a macbook pro for my work laptop. Both machines now share the same work environment: terminal multiplexer, vim and iterm2 all with a powerline visual update. It has been surprisingly a super quick and easy transition. Every now-and-then I'll find myself switching to the atom editor for non-work related stuff like the

Read More