mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 15:14:26 +08:00
Only hide /private directories in pwd function under OS X
darcs-hash:20060601222300-ac50b-b08a9425d33cf41d60aa0a42edffa32f521fc2a3.gz
This commit is contained in:
parent
0602044723
commit
7c016c56e3
|
@ -1,7 +1,14 @@
|
||||||
#
|
#
|
||||||
# Make pwd print out the home directory as a tilde.
|
# Make pwd print out the home directory as a tilde.
|
||||||
|
# Also drop '/private' directories on OS X.
|
||||||
#
|
#
|
||||||
|
|
||||||
function pwd -d (N_ "Print working directory")
|
if test (uname) = Darwin
|
||||||
echo $PWD | sed -e 's|/private||' -e "s|^$HOME|~|"
|
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
|
end
|
Loading…
Reference in New Issue
Block a user