aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-24 12:11:57 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-24 12:11:57 +1000
commit495c83a26c62263951d56c5260e6b9aeeaf966a4 (patch)
tree35d1f757d464b901c694988f9d22c8a52b1e0872
parent79b8ff535e449e02f2927c52070c99512aaedd24 (diff)
Silence error messages from cut
darcs-hash:20050924021157-ac50b-296a425d89aea044fe8dc9991d74fe0cc9761382.gz
-rw-r--r--init/fish_function.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/fish_function.fish b/init/fish_function.fish
index 9aa425c8..dfb0373f 100644
--- a/init/fish_function.fish
+++ b/init/fish_function.fish
@@ -212,7 +212,7 @@ function prompt_pwd -d "Print the current working directory, ellipsise it if it
set ellipsis \u2026
end
end
- printf %s%s $ellipsis (echo $wd|cut -c (echo $len-$max_width-1|bc)-)
+ printf %s%s $ellipsis (echo $wd|cut -c (echo $len-$max_width-1|bc)- ^/dev/null )
else
echo $wd
end
@@ -226,7 +226,7 @@ function pwd -d "Print working directory"
set out (command pwd $argv)
if echo $out| grep \^$HOME >/dev/null
printf \~
- echo $out |cut -b (echo $HOME|wc -c)-
+ echo $out |cut -b (echo $HOME|wc -c)- ^/dev/null
else
printf "%s\n" $out
end