mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
7c016c56e3
darcs-hash:20060601222300-ac50b-b08a9425d33cf41d60aa0a42edffa32f521fc2a3.gz
14 lines
No EOL
328 B
Fish
14 lines
No EOL
328 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 -d (N_ "Print working directory")
|
|
echo $PWD | sed -e 's|/private||' -e "s|^$HOME|~|"
|
|
end
|
|
else
|
|
function pwd -d (N_ "Print working directory")
|
|
echo $PWD | sed -e "s|^$HOME|~|"
|
|
end
|
|
end |