# General ZSH configurations

export EDITOR="vim"

sz() { source ~/.zshrc }

# General ZSH configurations

export EDITOR="vim"

sz() { source ~/.zshrc }


first() { awk '{print $1}' }
second() { awk '{print $2}' }
sum() { paste -sd+ - | bc }

igrep() { grep -i $@ }

restart-postgres() {
  rm /usr/local/var/postgres/postmaster.pid && ( \
    cd ~/Library/LaunchAgents && \
      launchctl unload homebrew.mxcl.postgresql.plist && \
      launchctl load -w homebrew.mxcl.postgresql.plist \
  )
}

Add awk based `first`, `second`, `last` aliases
zsh: Add awk based `first`, `second`, `last` aliases
