This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -Uz compinit && compinit | |
autoload -Uz add-zsh-hook | |
autoload -Uz vcs_info | |
add-zsh-hook precmd vcs_info | |
zstyle ':vcs_info:*' enable git | |
zstyle ':vcs_info:*' formats " %F{cyan}%c%u(%b)%f" | |
zstyle ':vcs_info:*' actionformats " %F{cyan}%c%u(%b)%f %a" | |
zstyle ':vcs_info:*' stagedstr "%F{green}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function yesterbox() { | |
var yesterboxName = "Yesterbox"; | |
var backlogName = "Backlog"; | |
var cutoffHour = 7; // 7am each day | |
var backlogCutoffDays = 10; // Older than 10 days | |
var yesterboxLabel = GmailApp.getUserLabelByName(yesterboxName) || GmailApp.createLabel(yesterboxName); | |
var backlogLabel = GmailApp.getUserLabelByName(backlogName) || GmailApp.createLabel(backlogName); | |
var yesterboxCutoff = new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_branch() { | |
local branch=$(git --no-optional-locks branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/^* (*\([^)]*\))*/\1/') | |
if [[ -n $branch ]]; then | |
if [[ -z $(git --no-optional-locks status --porcelain 2> /dev/null) ]]; then | |
echo -e " \001\033[32m\002($branch)\001\033[0m\002" | |
else | |
echo -e " \001\033[31m\002($branch)\001\033[0m\002" | |
fi | |
fi |