blob: 6d1c3f58a8613249fce8802b6bd4cccad87e9656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#
# Make pwd print out the home directory as a tilde.
# Also drop '/private' directories on OS X.
#
if test (uname) = Darwin
function pwd --description "Print working directory"
echo $PWD | sed -e 's|/private||' -e "s|^$HOME|~|"
end
else
function pwd --description "Print working directory"
echo $PWD | sed -e "s|^$HOME|~|"
end
end
|