diff options
author | Ryan Kavanagh <rak@debian.org> | 2012-02-01 20:25:11 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2012-02-01 20:25:11 -0500 |
commit | 9e9bed061bc496e435231edde2e78627257486f9 (patch) | |
tree | 097561523b9cb7139f70db40dfff0d5580dc408f /.zshrc | |
parent | Slashdot comes from a new address (diff) |
Added zsh function to pretty format plaintext for printing
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -36,8 +36,8 @@ #export LANG="en_CA.UTF-8" # ...as default language. #export LC_ALL="fr_CA.UTF-8" #export LANG="fr_CA.UTF-8" -export LC_ALL="LOCALE" -export LANG="LOCALE" +export LC_ALL="es_ES.UTF-8" +export LANG="es_ES.UTF-8" export TZ="America/Toronto" # Force our time zone this location. export EDITOR="vim" # Long live vim (as our editor). export NAME="Ryan Kavanagh" # Our name. @@ -60,7 +60,7 @@ export CCACHE_DIR=/ccache #export HTTP_PROXY="http://localhost:3128/" export MANWIDTH=80 export MANOPT="-L en" -export BTS_SENDMAIL_COMMAND="MSMTP_PATH" +export BTS_SENDMAIL_COMMAND="/usr/bin/msmtp" export PYTHONSTARTUP=~/.pythonrc.py export PAGER=less export TEXMFHOME=/home/ryan/.texmf @@ -126,7 +126,7 @@ alias mv="mv -iv" alias ln="ln -v" # Only delete files on the current file system to avoid removing recursively # from bind mounts. -alias rm="SUBSTS_RM -iv --one-file-system" +alias rm="rm -iv --one-file-system" alias chown="chown -v" alias chmod="chmod -v" @@ -169,7 +169,7 @@ fi zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*:*:kill:*' list-colors '=%*=01;31' -alias ls="SUBSTS_LS --classify --color=always" # Add all colours and +alias ls="ls --classify --color=always" # Add all colours and # have fancy symbols for files, etc. alias grep="grep --colour=always" # Colour grep too. # Load the completion system @@ -374,6 +374,11 @@ loop() { done } +# For formating text files for a printer +fmtpr() { + fmt --width=62 $@ | LC_ALL=C LANG=C pr -o 10 -W 62 -J -F -l 62 +} + # # Debian. # |