From d0b2b2c77f4f040ce9278615c37e53c8eb9e5f1d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 20 Jan 2011 10:33:47 +0100 Subject: Reorder path setting --- .zsh/zshenv/01_path | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to '.zsh/zshenv/01_path') diff --git a/.zsh/zshenv/01_path b/.zsh/zshenv/01_path index daa2511..1bde683 100644 --- a/.zsh/zshenv/01_path +++ b/.zsh/zshenv/01_path @@ -1,14 +1,15 @@ # zshenv/01_path # -# Adds custom directories to the $PATH +# Functions to add custom directories to the $PATH # +# Copyright © 2011 Tobias Klauser # Copyright © 1994–2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: git://git.madduck.net/etc/zsh.git +# Source repository: git://git.distanz.ch/dotfiles/zsh.git # -__prepend_dir_to_path() +path_prepend() { local dir for dir; do @@ -19,7 +20,7 @@ __prepend_dir_to_path() done } -__append_dir_to_path() +path_append() { local dir for dir; do @@ -30,8 +31,11 @@ __append_dir_to_path() done } -__prepend_dir_to_path $BINDIR -__append_dir_to_path $NIOS2NOMMUBINDIR -__append_dir_to_path $NIOS2MMUBINDIR +# add the paths here + +path_prepend $HOME/bin +path_append /opt/nios2/bin +path_append /opt/nios2mmu/x86-linux2/bin +path_append /opt/android-sdk-linux_86 # vim:ft=zsh -- cgit v1.2.3-54-g00ecf