1
0
mirror of https://github.com/akelge/zsh synced 2025-07-03 13:09:07 +00:00

New version of zshrc, that uses /Network/Library/zsh.d

This commit is contained in:
2010-11-04 14:05:46 +00:00
parent 6eb89f7d1e
commit dc808faaf7
6 changed files with 105 additions and 48 deletions

View File

@ -0,0 +1,8 @@
# Environment and aliases for OSX
export LSCOLORS="GxgxcxdxCxegedabagacad"
alias aquamacs='open -a Aquamacs\ Emacs'
alias ldd='otool -L'
alias ls='ls -F -G'
alias skill=killall
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
alias ipython='ipython-2.6 '

4
zsh.d/20-macPorts Normal file
View File

@ -0,0 +1,4 @@
if [ -f /opt/local/etc/init.sh ]; then
source /opt/local/etc/init.sh
fi
# vim: set ts=4 sw=4 tw=0 ft=sh :

23
zsh.d/30-dsFunctions Normal file
View File

@ -0,0 +1,23 @@
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

18
zsh.d/30-gnucoreutils Normal file
View File

@ -0,0 +1,18 @@
which gcp > /dev/null
if [ $? -eq 0 ]; then
if [ -f /etc/zsh/gdircolors ]; then
eval `gdircolors /etc/zsh/gdircolors`
else
eval `gdircolors`
fi
#alias ls='gls --color -F'
alias ll='ls -l'
alias la='ls -a'
alias cp='gcp'
alias mv='gmv'
alias rm='grm'
alias du='gdu'
alias df='gdf -a'
fi

6
zsh.d/90-vimFunc Normal file
View File

@ -0,0 +1,6 @@
# Alias for editors on OSX, a bit hard, to be fixed
# alias mvim="vimFunc "
alias mvim="mvim --serverlist && mvim --remote-tab-silent "
# alias vi="mvim "
# vim: set ts=4 sw=4 tw=0 ft=sh :