Browse Source

Adding “rdebsign”, a debsign wrapper with zsh complation on remote files.

Emmanuel Bouthenot 13 years ago
parent
commit
034c2b83bd
3 changed files with 9 additions and 3 deletions
  1. 2 0
      .zsh.d/bin/rdebsign
  2. 4 0
      .zsh.d/os.d/Debian.zsh
  3. 3 3
      .zsh.d/zshrc

+ 2 - 0
.zsh.d/bin/rdebsign

@@ -0,0 +1,2 @@
+#!/bin/sh
+exec debsign -r $@

+ 4 - 0
.zsh.d/os.d/Debian.zsh

@@ -5,6 +5,10 @@
 # specific aliases
 alias lintian="lintian --color=auto -IEm --pedantic"
 
+# specific completions
+# rdebsign is a trivial shell script wrapper around debsign
+compdef rdebsign=scp
+
 # building environements
 cow-dist () {
     if [ $# -lt 2 ]; then

+ 3 - 3
.zsh.d/zshrc

@@ -6,12 +6,12 @@
 #  but WITHOUT ANY WARRANTY
 #
 
-# redefine PATH
-export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games
-
 # define personal zsh config directory
 export DOTZSHDIR="$HOME/.zsh.d"
 
+# redefine PATH
+export PATH=$HOME/bin:$DOTZSHDIR/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games
+
 # overide insecure stuff with compinit while using 'sudo zsh'
 # my functions (don't forget to modify fpath before call compinit !!)
 if [ -z "$SUDO_USER" -a "$UID" != 0 ]; then