Skip to content

Instantly share code, notes, and snippets.

View tonylegrone's full-sized avatar

Tony Legrone tonylegrone

  • Chronicle
  • Birmingham Alabama
View GitHub Profile

Workspace in tmux

I like to work using a separate tmux session for each active project/folder that I'm juggling. This script will either create or attach to a project based on it's name, using fasd to jump to the directory directly. The project will be named based on the basename of the folder, for easy switching using TMUX-s.

@tonylegrone
tonylegrone / git_prompt.zsh
Last active August 29, 2015 14:25 — forked from joshdick/git_prompt.png
My Git prompt for zsh.
# Adapted from code found at <https://gist.github.com/1712320>.
setopt prompt_subst
autoload -U colors && colors # Enable colors in prompt
# Modify the colors and symbols in these variables as desired.
GIT_PROMPT_SYMBOL="%{$fg[blue]%}±"
GIT_PROMPT_PREFIX=""
GIT_PROMPT_SUFFIX=""
GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}"