1
0
mirror of https://github.com/akelge/zsh synced 2025-07-04 05:29:06 +00:00

migration

This commit is contained in:
Andrea Mistrali
2015-03-13 16:03:57 +01:00
parent fec1d63a8d
commit 0d61c334d7
160 changed files with 0 additions and 48269 deletions

View File

@ -0,0 +1,13 @@
# Darwin/OSX
# Environment and aliases for OSX
export LSCOLORS="GxgxcxdxCxegedabagacad"
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 vim='/Applications/MacVim.app/Contents/MacOS/Vim'
# alias mvim='mvim --remote-tab-silent '
# alias mvim='open -a MacVim '
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -0,0 +1,52 @@
# Mac Ports
[ ! -d /opt/local ] && return
# Setup PATH
if [ -z "$PATH" ]; then
PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:~/bin
else
PATH=/opt/local/bin:/opt/local/sbin:$PATH
fi
export PATH
# # Setup MANPATH
# if [ -z "$MANPATH" ]; then
# MANPATH=`/usr/bin/manpath`
# fi
# MANPATH=/opt/local/man:$MANPATH
# export MANPTH
# # Setup INFOPATH
# if [ -z "$INFOPATH" ]; then
# INFOPATH=/opt/local/share/info:/opt/local/info:/usr/share/info
# else
# INFOPATH=/opt/local/share/info:/opt/local/info:$INFOPATH
# fi
# export INFOPATH
if [ -z "$PERL5LIB" ]; then
PERL5LIB=/opt/local/lib/perl5:/opt/local/lib/perl5/darwin
else
PERL5LIB=/opt/local/lib/perl5:/opt/local/lib/perl5/darwin:$PERL5LIB
fi
export PERL5LIB
# Add X11 paths (but only if the directories are readable)
if [ -r /usr/X11R6/bin ]; then
PATH=$PATH:/usr/X11R6/bin
export PATH
fi
# if [ -r /usr/X11R6/man ]; then
# MANPATH=$MANPATH:/usr/X11R6/man
# export MANPATH
# fi
# PY_VER="2.7"
# PYTHONPATH="/opt/local/lib/python/site-packages:/opt/local/Library/Frameworks/Python.framework/Versions/${PY_VER}/lib/python${PY_VER}/site-packages/"
# #PYTHONHOME="/opt/local/Library/Frameworks/Python.framework/Versions/${PY_VER}"
# export PYTHONPATH
#export PYTHONHOME
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View 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 :

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 :

2
zsh.d/Darwin/90-less.zsh Normal file
View File

@ -0,0 +1,2 @@
LESSPIPE=`whence -p lesspipe || whence -p lesspipe.sh`
eval `$LESSPIPE`

47
zsh.d/Darwin/mvim.diff Normal file
View File

@ -0,0 +1,47 @@
--- mvim~ 2013-07-09 21:55:06.000000000 +0200
+++ mvim 2013-07-07 21:24:15.000000000 +0200
@@ -13,6 +13,8 @@
# or by un-commenting and editing the following line:
# VIM_APP_DIR=/Applications
+tabs=true
+
if [ -z "$VIM_APP_DIR" ]
then
myDir="`dirname "$0"`"
@@ -58,15 +60,26 @@
esac
# Last step: fire up vim.
-# The program should fork by default when started in GUI mode, but it does
-# not; we work around this when this script is invoked as "gvim" or "rgview"
-# etc., but not when it is invoked as "vim -g".
if [ "$gui" ]; then
- # Note: this isn't perfect, because any error output goes to the
- # terminal instead of the console log.
- # But if you use open instead, you will need to fully qualify the
- # path names for any filenames you specify, which is hard.
- exec "$binary" -g $opts ${1:+"$@"}
+ if $tabs && [[ `$binary --serverlist` = "VIM" ]]; then
+ exec "$binary" -g $opts --remote-tab-silent ${1:+"$@"}
+ else
+ exec "$binary" -g $opts ${1:+"$@"}
+ fi
else
- exec "$binary" $opts ${1:+"$@"}
+ exec "$binary" $opts ${1:+"$@"}
fi
+
+# # Last step: fire up vim.
+# # The program should fork by default when started in GUI mode, but it does
+# # not; we work around this when this script is invoked as "gvim" or "rgview"
+# # etc., but not when it is invoked as "vim -g".
+# if [ "$gui" ]; then
+ # # Note: this isn't perfect, because any error output goes to the
+ # # terminal instead of the console log.
+ # # But if you use open instead, you will need to fully qualify the
+ # # path names for any filenames you specify, which is hard.
+ # exec "$binary" -g $opts ${1:+"$@"}
+# else
+ # exec "$binary" $opts ${1:+"$@"}
+# fi