summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-05-21 22:19:07 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-05-21 22:19:07 +0200
commit84f64e10721ecfbe22f2e46b32dbc1820f956c9b (patch)
treea1e5880b7c40d14c2c4f3b1452227023929e3192 /.zshrc
parentd6d6784f138b02b3ccbad0bfd8327a1ddfc2c9b5 (diff)
downloaddotfiles-84f64e10721ecfbe22f2e46b32dbc1820f956c9b.tar.gz
dotfiles-84f64e10721ecfbe22f2e46b32dbc1820f956c9b.tar.xz
less option, vim :w!! alias, nossh alias, other stuff
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc15
1 files changed, 10 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index cca86ca..99e27cf 100644
--- a/.zshrc
+++ b/.zshrc
@@ -182,7 +182,7 @@ export MANPAGER=vimpager
export PERLDOC_PAGER=vimpager
export LESSCHARSET="UTF-8"
export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-'
-export LESS='-F -i -n -w -g -M -R -P%t?f%f \
+export LESS='-i -n -w -g -M -R -P%t?f%f \
:stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...'
# }}}
@@ -273,7 +273,7 @@ password() {
else
count="$1"
fi
- echo $(< /dev/urandom tr -dc A-Za-z0-9_ | head -c$count)
+ echo $(< /dev/urandom tr -dc A-Za-z0-9 | head -c$count)
}
# jump between directories
@@ -452,12 +452,16 @@ regcheck() {
# History {{{
export HISTFILE=~/.zsh/histfile
# for some odd reason allocating RAM to save the histfile takes ages..
-export HISTSIZE=5000
-export SAVEHIST=$HISTSIZE
+export HISTSIZE=100000
+export SAVEHIST=65536
+readonly HISTFILE
# }}}
# Other ZSH options {{{
-autoload colors
+autoload -U colors
colors
+
+autoload -U zmv
+
# .. -> cd ../
setopt autocd
@@ -606,6 +610,7 @@ alias yql='yaourt -Ql'
# too long to remember
alias asciidoc_full='asciidoc -a icons -a toc -a linkcss -a quirks!'
+alias nossh='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
# other random aliases
alias ☠='pkill -9'