Use builtins when possible

a call to cat can be replaced by a redirection.
This commit is contained in:
Frédéric Mahé 2014-01-18 16:11:29 +01:00 committed by Olivier Mengué
parent 1c114a0566
commit 1808f69405

View File

@ -1,4 +1,3 @@
################################################################################
# LIQUID PROMPT
# An intelligent and non intrusive prompt for bash and zsh
@ -465,7 +464,7 @@ _chroot()
{
if [[ -r /etc/debian_chroot ]] ; then
local debchroot
debchroot="$(cat /etc/debian_chroot)"
debchroot="$(< /etc/debian_chroot)"
echo "(${debchroot})"
fi
}