Changes for Darwin/OSX

master
Philipp Frischmuth 2011-02-07 17:18:41 +01:00
parent ff7d8bbb0b
commit a95e2b8382
5 changed files with 27 additions and 5 deletions

View File

@ -2,3 +2,4 @@ functions.d
history
private
.*-cache
zshrc.bak

View File

@ -9,10 +9,18 @@ update:
@hg update --repository fizsh
install:
mv ../.zshrc zshrc.bak
ln -s zshrc ../.zshrc
touch history private
touch $(HOME)/.zshrc # In cases, where no .zshrc already exists
mv $(HOME)/.zshrc ./zshrc.bak
ln -s $(PWD)/zshrc $(HOME)/.zshrc
mkdir -p $(HOME)/.local/share # Autojump writes to this dir if existing (otherwise we get a autojump_erros file)
touch history private.zsh
hg clone git://github.com/joelthelion/autojump.git
hg clone git://github.com/nicoulaj/zsh-syntax-highlighting.git
hg clone git://github.com/robbyrussell/oh-my-zsh.git
hg clone git://fizsh.git.sourceforge.net/gitroot/fizsh/fizsh
clean:
rm -r ./autojump
rm -r ./zsh-syntax-highlighting
rm -r ./oh-my-zsh
rm -r ./fizsh

6
darwin.zsh Normal file
View File

@ -0,0 +1,6 @@
# Darwin ls command does not support --color option.
alias ls='ls'
# The OSX way for ls colors.
export CLICOLOR=1
export LSCOLORS="gxfxcxdxbxegedabagacad"

View File

@ -7,7 +7,8 @@
export GREP_OPTIONS='-D skip --binary-files=without-match --ignore-case'
# keybindings Strg+v is your friend :-)
eval "`dircolors -b`"
# Not supported on e.g. OSX, so we test for command first
which dircolors > /dev/null && eval "`dircolors -b`"
bindkey "^[[1;5D" .backward-word
bindkey "^[[1;5C" .forward-word

8
zshrc
View File

@ -9,7 +9,6 @@ typeset -ga sources
sources+="$HOME/.zsh/options.zsh"
sources+="$HOME/.zsh/prompt.zsh"
sources+="$HOME/.zsh/functions.zsh"
sources+="$HOME/.zsh/private.zsh"
sources+="$HOME/.zsh/aliases.zsh"
sources+="$HOME/.zsh/completion.zsh"
@ -25,6 +24,13 @@ sources+="/etc/zsh_command_not_found"
# Cloned From: git://github.com/joelthelion/autojump.git
sources+="$HOME/.zsh/autojump/autojump.zsh"
# Check for a system specific file
systemFile=`uname -s | tr "[:upper:]" "[:lower:]"`
sources+="$HOME/.zsh/$systemFile.zsh"
# Finally include the private.zsh file
sources+="$HOME/.zsh/private.zsh"
foreach file (`echo $sources`)
if [[ -a $file ]]; then
source $file