From 12f9fa66dc34a5e422f5a7109008d27365ea5a2a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 18 Aug 2011 20:04:20 -0400 Subject: Merged in lambda's .zshrc --- .zshrc | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 212f280..a167e6c 100644 --- a/.zshrc +++ b/.zshrc @@ -157,15 +157,15 @@ export WORDCHARS='*?_-[]~=&;!#$%^(){}' zmodload -i zsh/complist # Should dircolors exist. Fetch LS_COLORS from it. -if [ `which dircolors` ]; then +if [ "`which dircolors`" != 'dircolors not found' ]; then eval "$(dircolors -b)" fi zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*:*:kill:*' list-colors '=%*=01;31' -alias ls="ls --classify --color=always" # Add all colours and have fancy - # symbols for files, etc. +alias ls="SUBSTS_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 autoload -U compinit; compinit @@ -560,6 +560,20 @@ noproxy() { unset http_proxy } +gbp-snap() { + if [[ -e $@ ]]; then + git-dch -aSN $1 + else + git-dch -aS + fi + gpg-mounter + gibuild --git-ignore-new + DSC=`head -n1 debian/changelog | sed -e 's/\(.*\) (\(.*\)).*/\1_\2.dsc/g'` + DIST=`head -n1 debian/changelog | sed -e 's/.* \(.*\);.*/\1/g'` + cd .. + sbuild -d $DIST $DSC +} + # Pretty menu! zstyle ':completion:*' menu select=1 zstyle ':completion:*' select-prompt %SScroll active at %p%s. -- cgit v1.2.3