mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
7492b6cdb3
darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
14 lines
340 B
Fish
14 lines
340 B
Fish
#
|
|
# 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 |