# Collaboration permissions are nice. umask 022 # Colors are nice. # ----------------------------------------------------------------------- # autoload -U colors && colors # autoload -U compinit && compinit # setopt prompt_subst export EDITOR="vim" ## Include local bin stuff on the path, if they are there. #if [ -d $HOME/bin ]; then # PATH=$PATH:$HOME/bin #fi # ## Set screen title when SSH-ing #ssh() { # args=$@ # echo -ne "\033k${args##* }\033\\"; # env ssh "$@"; # # Set window title back here! #} # ## Many thanks to https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/completion.zsh ## Same guy who wrote antigen! Awesome! # ## disable named-directories autocompletion #zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories #cdpath=(.) # ## SSH Completion should include ~/.ssh/config #[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(> ~/.ssh/authorized_keys; chmod 700 ~/.ssh && chmod 600 ~/.ssh/*" # cat ~/.ssh/id_rsa.pub | ssh $1 "cat >> ~/id_rsa.pub" } export PATH=$PATH:$HOME/bin # Task Aliases # -------------- # Printout tasks alias daily="task end.after:-1wk completed +daily &> /tmp/daily.txt;task +daily list &>> /tmp/daily.txt;open /tmp/daily.txt" alias status="task list &> /tmp/status.txt; open /tmp/status.txt" alias todo="task rc:~/dotfiles/taskrc_weekend $@" alias team="task rc:~/dotfiles/taskrc_team $@" alias someday="task rc:~/dotfiles/taskrc_someday $@" alias vitc="vit -ms -someday -q -daily -assigned" alias vitt="vit +daily" alias vitf="vit +followup" alias week_report="task completed" # Minion aliases # -------------- alias journal="minion --config=~/.minion_weekend $@" alias life="minion --config=~/.minion_weekend $@" alias mingoogle_drive="minion --config=/Users/delaport/dotfiles/minion_googledrive $@" # alias journal="minion --config=~/.minion_weekend" # TODO: Figure out how to make a Minion antigen bundle... alias life="minion --config=~/.minion_weekend" # For antigen # ---------------- source ~/dotfiles/antigen/antigen.zsh # Load the oh-my-zsh's library. # Most others expect this one. antigen use oh-my-zsh # Nice git highlighting antigen bundle git # Autocomplete for pip install antigen bundle pip # Change command color if it exists. antigen bundle command-not-found # Color current command based on Zshell interpretation antigen bundle zsh-users/zsh-syntax-highlighting # Nice multiline git-aware prompt. antigen bundle sindresorhus/pure # # Tell antigen that you're done. antigen apply