2006-02-12 13:14:21 +00:00
|
|
|
if test (uname) = Darwin
|
2007-01-16 01:29:18 +00:00
|
|
|
function prompt_pwd --description "Print the current working directory, shortend to fit the prompt"
|
2013-06-02 06:02:13 +00:00
|
|
|
echo $PWD | sed -e "s|^$HOME|~|" -e 's|^/private||' -e 's-\([^/.]\)[^/]*/-\1/-g'
|
2006-02-12 13:14:21 +00:00
|
|
|
end
|
|
|
|
else
|
2007-01-16 01:29:18 +00:00
|
|
|
function prompt_pwd --description "Print the current working directory, shortend to fit the prompt"
|
2013-06-02 06:02:13 +00:00
|
|
|
echo $PWD | sed -e "s|^$HOME|~|" -e 's-\([^/.]\)[^/]*/-\1/-g'
|
2006-02-12 13:14:21 +00:00
|
|
|
end
|
|
|
|
end
|