From 588814116db57cda9c41e649aa80e720f599eda1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 22 Feb 2009 16:52:04 +0100 Subject: update --- .zsh/rc/10variables | 1 + .zsh/rc/30functions | 4 ++++ .zsh/rc/60aliases | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.zsh/rc/10variables b/.zsh/rc/10variables index 4796cf3..5ca5fdf 100644 --- a/.zsh/rc/10variables +++ b/.zsh/rc/10variables @@ -10,3 +10,4 @@ export PAGER=vimpager #export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-' #export LESS='-i -c -N -w -g -M -R -P%t?f%f \ #:stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...' +export GPG_TTY=‘tty‘ diff --git a/.zsh/rc/30functions b/.zsh/rc/30functions index 24a2ddc..5bacb00 100644 --- a/.zsh/rc/30functions +++ b/.zsh/rc/30functions @@ -37,6 +37,10 @@ ls () { echo "${PURPLE}Files: ${BLUE}$(/bin/ls -l $@ | grep -v "^[l|d|total]" | wc -l) ${GREEN}--- ${PURPLE}Directories: ${BLUE}$(/bin/ls -l $@ | grep "^d" | wc -l)${NC}" } +password () { + < /dev/urandom tr -dc A-Za-z0-9_ | head -c$1 +} + # jump between directories # Copyright 2005 Nikolai Weibull # notice: option AUTO_PUSHD has to be set diff --git a/.zsh/rc/60aliases b/.zsh/rc/60aliases index 6aa652d..6c1bb5f 100644 --- a/.zsh/rc/60aliases +++ b/.zsh/rc/60aliases @@ -26,6 +26,7 @@ alias pushpkg='cp *.pkg.tar.gz *.src.tar.gz /mnt/mistral/srv/drop' alias sudo="sudo " #Sudo wont recognize aliases without this alias s='sudo' alias x='x -v' +alias xx='x -Rv' alias u='upload.sh' alias mtr='mtr -t' alias wcl='wc -l' @@ -61,6 +62,7 @@ alias ys='yaourt -S' alias ysb='yaourt -Sb' alias ysi='yaourt -Si' alias yr='yaourt -Rs' +alias yrc='yaourt -Rcs' alias yrn='yaourt -Rns' alias yqo='yaourt -Qo' -- cgit v1.2.3-24-g4f1b