mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
7492b6cdb3
darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
14 lines
No EOL
340 B
Fish
14 lines
No EOL
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 |