Ver Fonte

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

Emmanuel Bouthenot há 13 anos atrás
pai
commit
034c2b83bd
3 ficheiros alterados com 9 adições e 3 exclusões
  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