Skip to content

Commit

Permalink
lovely organization functions (thx @raeffu <3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonini committed Jun 9, 2015
1 parent 1cd027d commit 0c5f97f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
5 changes: 4 additions & 1 deletion zsh/aliases
Expand Up @@ -58,4 +58,7 @@ alias e=openemacs
alias mxw='mux start work'

# vlc
alias vlc=/Applications/VLC.app/Contents/MacOS/VLC
alias vlc=/Applications/VLC.app/Contents/MacOS/VLC

alias c='nocorrect c'
alias h='nocorrect h'
19 changes: 17 additions & 2 deletions zshrc
Expand Up @@ -17,8 +17,23 @@ fi
fpath=(~/.zsh/functions $fpath)
autoload -U ~/.zsh/functions/*(:t)

c() { cd ~/Projects/$1; }
_c() { _files -W ~/Projects -/; }
function h () {
cd ~/$1;
}

function c () {
cd ~/Projects/$1;
}

function _h () {
_files -W ~ -/
}

function _c () {
_files -W ~/Projects -/
}

compdef _h h
compdef _c c

export EDITOR="emacsclient -t"
Expand Down

0 comments on commit 0c5f97f

Please sign in to comment.