From 043d8ae0d7e98135983d71c385d3628cddb3abed Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Tue, 10 Nov 2009 12:08:58 +1100 Subject: [PATCH] Move some customisations out of zshrc into custom --- .gitignore | 3 +-- custom/aliases.zsh | 8 ++++++++ custom/history.zsh | 1 + custom/less.zsh | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 custom/aliases.zsh create mode 100644 custom/history.zsh create mode 100644 custom/less.zsh diff --git a/.gitignore b/.gitignore index f84db6dc2..5c65c6ba8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ locals.zsh log/.zsh_history projects.zsh -custom/*.zsh -!custom/example.zsh \ No newline at end of file +!custom/example.zsh diff --git a/custom/aliases.zsh b/custom/aliases.zsh new file mode 100644 index 000000000..f1ed61817 --- /dev/null +++ b/custom/aliases.zsh @@ -0,0 +1,8 @@ +#RSpec +alias spec="spec -c" + +# Git +alias gs='git status' +alias ga='git add' +alias gco='git checkout' +alias gd="git diff" diff --git a/custom/history.zsh b/custom/history.zsh new file mode 100644 index 000000000..3aacbc222 --- /dev/null +++ b/custom/history.zsh @@ -0,0 +1 @@ +HISTFILE=~/.zhistory diff --git a/custom/less.zsh b/custom/less.zsh new file mode 100644 index 000000000..fb64114d2 --- /dev/null +++ b/custom/less.zsh @@ -0,0 +1 @@ +export LESS="--quit-if-one-screen --RAW-CONTROL-CHARS"