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