Skip to content

Commit

Permalink
simple cheat-sheet management
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Apr 8, 2012
1 parent 0727f44 commit 8218ff0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion bashrc
Expand Up @@ -99,7 +99,7 @@ alias bk='bundle exec rake'
alias br='bundle exec rails'
alias bs='bundle exec spec'

# Git branch in shell prompt.
# Git branch in shell prompt.
function parse_git_branch {
git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
Expand All @@ -112,3 +112,17 @@ export PATH="$dotfiles/bin":$PATH
if [[ -d $HOME/bin ]]; then
export PATH=$HOME/bin:$PATH
fi

#
# --- Cheat Sheets ------------------------------------------------------------
#
function cs {
pushd $dotfiles/cheat-sheets > /dev/null
if [ -z "$1" ]
then
ls
else
${EDITOR-subl} $1*
fi
popd > /dev/null
}
File renamed without changes.

0 comments on commit 8218ff0

Please sign in to comment.