Changes for Darwin/OSX
This commit is contained in:
parent
ff7d8bbb0b
commit
a95e2b8382
14
Makefile
14
Makefile
|
@ -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
6
darwin.zsh
Normal 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"
|
|
@ -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
8
zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue