diff options
author | Ryan Kavanagh <ryanakca@kubuntu.org> | 2011-08-18 20:04:20 -0400 |
---|---|---|
committer | Ryan Kavanagh <ryanakca@kubuntu.org> | 2011-08-25 07:43:09 -0400 |
commit | 12f9fa66dc34a5e422f5a7109008d27365ea5a2a (patch) | |
tree | 2e72a75792f803421674c3f1aee2478dabccbd31 | |
parent | sha256sums (diff) |
Merged in lambda's .zshrc
-rw-r--r-- | .zshrc | 20 | ||||
-rw-r--r-- | SUBSTS | 3 | ||||
-rwxr-xr-x | dm | 4 |
3 files changed, 23 insertions, 4 deletions
@@ -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. @@ -19,3 +19,6 @@ SCREENLAYOUT epsilon-SAIL PM_EMAIL pipemajor@example.org # Locale LOCALE es_ES.UTF-8 + +# ls or gls command +SUBSTS_LS ls @@ -58,6 +58,7 @@ XMONAD_DZEN_W = $(call get-val,XMONAD_DZEN_W) XMONAD_DZEN_X = $(call get-val,XMONAD_DZEN_X) XMONAD_DZEN_Y = $(call get-val,XMONAD_DZEN_Y) LOCALE = $(call get-val,LOCALE) +SUBSTS_LS = $(call get-val,SUBSTS_LS) # This target relies on GLOBAL_FILES being before LOCAL_FILES so that the # build/LOCAL_FILES targets overwrite what was copied in GLOBAL_FILES. @@ -103,7 +104,8 @@ build/.xmonad/xmonad.hs: .xmonad/xmonad.hs $(SUBSTS_FILE) build/.zshrc: .zshrc $(SUBSTS_FILE) [ -d $(dir $@) ] || mkdir -p $(dir $@) - sed -e 's/LOCALE/$(LOCALE)/g' $< > $@ + sed -e 's/LOCALE/$(LOCALE)/g' \ + -e 's/SUBSTS_LS/$(SUBSTS_LS)/g' $< > $@ build/%: % [ -d $(dir $@) ] || mkdir -p $(dir $@) |