mirror of
https://github.com/akelge/vim
synced 2025-07-03 21:59:06 +00:00
New ZSH folder (3)
This commit is contained in:
11
zsh/zsh.d/Darwin/50-darwin
Normal file
11
zsh/zsh.d/Darwin/50-darwin
Normal file
@ -0,0 +1,11 @@
|
||||
# Darwin/OSX
|
||||
# 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 '
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
19
zsh/zsh.d/Darwin/90-coreutilsDarwin
Normal file
19
zsh/zsh.d/Darwin/90-coreutilsDarwin
Normal file
@ -0,0 +1,19 @@
|
||||
# Core Utils
|
||||
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' # OSX ls is better (supports extended attributes)
|
||||
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
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
25
zsh/zsh.d/Darwin/90-dsFunctions
Normal file
25
zsh/zsh.d/Darwin/90-dsFunctions
Normal 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 :
|
6
zsh/zsh.d/Darwin/90-macportsDarwin
Normal file
6
zsh/zsh.d/Darwin/90-macportsDarwin
Normal file
@ -0,0 +1,6 @@
|
||||
# Mac Ports
|
||||
if [ -f /opt/local/etc/init.sh ]; then
|
||||
source /opt/local/etc/init.sh
|
||||
fi
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
Reference in New Issue
Block a user