summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-10-03 09:49:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-10-03 09:49:26 +0200
commit9541406225d954fd578d6daa9565077234a00ba4 (patch)
tree96ae9ed2564fa51f7947b1cfc8b1dc8b3193b405 /.zshrc
parentd6916dab06cea7bd9eebdebebfa91a7e978c7e33 (diff)
downloaddotfiles-9541406225d954fd578d6daa9565077234a00ba4.tar.gz
dotfiles-9541406225d954fd578d6daa9565077234a00ba4.tar.xz
zshrc: remove pkgbuild alias; reduce ram usage by history
170k entires lead to ~32mb of ram usage per shell. Now it's more like 4mb. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc15
1 files changed, 10 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index 1f47067..427532c 100644
--- a/.zshrc
+++ b/.zshrc
@@ -504,11 +504,19 @@ chupdate() {
fi
}
+hgrep() {
+ mpgrep <$HISTFILE "$@" | less
+}
+
+hless() {
+ less $HISTFILE
+}
+
# }}}
# History {{{
export HISTFILE=~/.zsh/histfile
-export HISTSIZE=200000
-export SAVEHIST=200000
+export HISTSIZE=5000
+export SAVEHIST=500000
readonly HISTFILE
# }}}
# Other ZSH options {{{
@@ -597,7 +605,6 @@ alias lld='ls -ld'
# well I got used to that name ;)
alias aurball='makepkg --source -f'
-alias pkgbuild='makepkg -fc && aurball'
#alias sudo="sudo " #Sudo wont recognize aliases without this
alias s='sudo '
@@ -619,8 +626,6 @@ alias xcp="xclip -o | fb"
alias nsl='nslookup'
-alias hgrep="history 0 | mpgrep"
-
alias rscp='rsync --partial --progress'
alias mkdir='nocorrect mkdir'