1
0
mirror of https://github.com/akelge/vim synced 2025-08-18 00:18:51 +00:00

Changed all conf file to .zsh extension

This commit is contained in:
2013-01-17 11:15:16 +00:00
parent a6d5778a47
commit d9013ec2da
16 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,25 @@
BASE='/LDAPv3/dioniso.cube.lan'
KEYWORD="desktop"
function dsComputerUserList {
for c in `dscl $BASE -search Computers Keywords desktop|grep Keywords|cut -f1|sort`; do
echo -n $c:
dscl $BASE -read Computers/$c Comment|cut -d: -f3
done
}
function dsComputerList {
for c in `dsComputerUserList`; do
echo $c|cut -d: -f1
done
}
function dsUser {
COMPUTER=${1-`dscl . -list Computers|grep -v localhost`}
dsComputerUserList| grep -i $COMPUTER|cut -d: -f2
}
unset BASE
unset KEYWORD
# vim: set ts=4 sw=4 tw=0 ft=zsh :