From 3e4947673687b94139f819b39de86d9a2fdc2eb8 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Thu, 12 Aug 2010 09:34:14 -0400 Subject: [PATCH] lib: prune some things to load faster --- lib/aliases.zsh | 9 --------- lib/correction.zsh | 4 ---- lib/grep.zsh | 6 ------ lib/misc.zsh | 8 ++++++++ lib/rvm.zsh | 7 ------- 5 files changed, 8 insertions(+), 26 deletions(-) delete mode 100644 lib/aliases.zsh delete mode 100644 lib/grep.zsh delete mode 100644 lib/rvm.zsh diff --git a/lib/aliases.zsh b/lib/aliases.zsh deleted file mode 100644 index eabafbc4d..000000000 --- a/lib/aliases.zsh +++ /dev/null @@ -1,9 +0,0 @@ -# Push and pop directories on directory stack -alias pu='pushd' -alias po='popd' - -# Super user -alias _='sudo' - -# Show history -alias history='fc -l 1' diff --git a/lib/correction.zsh b/lib/correction.zsh index fc60dcdbd..0ad789881 100644 --- a/lib/correction.zsh +++ b/lib/correction.zsh @@ -4,7 +4,3 @@ alias man='nocorrect man' alias mv='nocorrect mv' alias mysql='nocorrect mysql' alias mkdir='nocorrect mkdir' -alias gist='nocorrect gist' -alias heroku='nocorrect heroku' -alias ebuild='nocorrect ebuild' -alias hpodder='nocorrect hpodder' diff --git a/lib/grep.zsh b/lib/grep.zsh deleted file mode 100644 index 93c4270b6..000000000 --- a/lib/grep.zsh +++ /dev/null @@ -1,6 +0,0 @@ -# -# Color grep results -# Examples: http://rubyurl.com/ZXv -# -export GREP_OPTIONS='--color=auto' -export GREP_COLOR='1;32' \ No newline at end of file diff --git a/lib/misc.zsh b/lib/misc.zsh index 607ee8649..b1a14140c 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -37,3 +37,11 @@ alias serve_this='python -m SimpleHTTPServer' ## Highlight-aware less command alias hl='less -R' + +## Show history +alias history='fc -l 1' + +## Color grep results +## Examples: http://rubyurl.com/ZXv +export GREP_OPTIONS='--color=auto' +export GREP_COLOR='1;32' diff --git a/lib/rvm.zsh b/lib/rvm.zsh deleted file mode 100644 index 597be1b33..000000000 --- a/lib/rvm.zsh +++ /dev/null @@ -1,7 +0,0 @@ -# get the name of the branch we are on -function rvm_prompt_info() { - ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return - echo "($ruby_version)" -} - -