From 5499ea846c0c18bda46388bc4cfbd8d652a1b2db Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 25 Feb 2010 02:36:31 +0100 Subject: Defined 'cdu' in terms of 'open_ebuild' --- .zsh/zshfunctions | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to '.zsh/zshfunctions') diff --git a/.zsh/zshfunctions b/.zsh/zshfunctions index 9f0270e..72e455d 100644 --- a/.zsh/zshfunctions +++ b/.zsh/zshfunctions @@ -6,13 +6,9 @@ Start Stop Reload Restart () } # Change to the directory of a specific package -cdu () +_cdu () { - local cp - - [[ -n $1 ]] && cp=$(eix -e $1 --format "/" 2>/dev/null | head -n1) - - cd /usr/portage/${cp} + cd $(dirname $1) } # Open the ebuild with a specified command -- cgit v1.2.3-70-g09d2