aboutsummaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.zshrc20
1 files changed, 17 insertions, 3 deletions
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.