]> apps.delaporte.us Git - dotfiles.git/blob - zshrc
Cleanup a bit and add params.
[dotfiles.git] / zshrc
1 # Collaboration permissions are nice.
2 umask 022
3
4 # Colors are nice.
5 # -----------------------------------------------------------------------
6 # autoload -U colors && colors
7 # autoload -U compinit && compinit
8
9 # setopt prompt_subst
10
11 alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
12 export EDITOR="vim"
13
14 alias vi vim
15
16 function ssh-copy-id {
17 cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys; chmod 700 ~/.ssh && chmod 600 ~/.ssh/*"
18 # cat ~/.ssh/id_rsa.pub | ssh $1 "cat >> ~/id_rsa.pub"
19 }
20
21 export PATH=$PATH:$HOME/bin
22
23 # Task Aliases
24 # --------------
25 # Printout tasks
26 alias daily="task end.after:-1wk completed +daily &> /tmp/daily.txt;task +daily list &>> /tmp/daily.txt;open /tmp/daily.txt"
27 alias status="task list &> /tmp/status.txt; open /tmp/status.txt"
28 alias todo="task rc:~/dotfiles/taskrc_weekend $@"
29 alias team="task rc:~/dotfiles/taskrc_team $@"
30 alias someday="task rc:~/dotfiles/taskrc_someday $@"
31 alias vitc="vit -ms -someday -q -daily -assigned"
32 alias vitt="vit +daily"
33 alias vitf="vit +followup"
34 alias week_report="task completed"
35
36 # Minion aliases
37 # --------------
38 alias journal="minion --config=~/.minion_weekend $@"
39 alias life="minion --config=~/.minion_weekend $@"
40 alias mingoogle_drive="minion --config=/Users/delaport/dotfiles/minion_googledrive $@"
41
42 # alias journal="minion --config=~/.minion_weekend"
43 # TODO: Figure out how to make a Minion antigen bundle...
44 alias life="minion --config=~/.minion_weekend"
45
46 # For antigen
47 # ----------------
48 source ~/dotfiles/antigen/antigen.zsh
49
50 # Load the oh-my-zsh's library.
51 # Most others expect this one.
52 antigen use oh-my-zsh
53
54 # Nice git highlighting
55 antigen bundle git
56
57 # Autocomplete for pip install
58 antigen bundle pip
59
60 # Change command color if it exists.
61 antigen bundle command-not-found
62
63 # Color current command based on Zshell interpretation
64 antigen bundle zsh-users/zsh-syntax-highlighting
65
66 # Nice multiline git-aware prompt.
67 # antigen bundle sindresorhus/pure
68 # Does not play nicely with Git two-factor auth / SSH key auth
69
70 # Automatically activate virtualenvs
71 antigen bundle sharat87/autoenv
72
73 # Git Aware Prompt
74 antigen bundle nojhan/liquidprompt
75
76 # # Tell antigen that you're done.
77 antigen apply