diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-05-21 22:19:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-05-21 22:19:07 +0200 |
commit | 84f64e10721ecfbe22f2e46b32dbc1820f956c9b (patch) | |
tree | a1e5880b7c40d14c2c4f3b1452227023929e3192 | |
parent | d6d6784f138b02b3ccbad0bfd8327a1ddfc2c9b5 (diff) | |
download | dotfiles-84f64e10721ecfbe22f2e46b32dbc1820f956c9b.tar.gz dotfiles-84f64e10721ecfbe22f2e46b32dbc1820f956c9b.tar.xz |
less option, vim :w!! alias, nossh alias, other stuff
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rw-r--r-- | .vimrc | 3 | ||||
-rw-r--r-- | .zshrc | 15 |
2 files changed, 13 insertions, 5 deletions
@@ -32,6 +32,9 @@ set scrolloff=3 set showcmd set display=uhex +"aliases +ca w!! w !sudo tee "%" > /dev/null + let g:qname_hotkey = "<C-b>" syntax on @@ -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' |