summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-07-03 06:47:05 +0000
committerMike Frysinger <vapier@gentoo.org>2011-07-03 06:47:05 +0000
commitc5145bb5d791114307270fa6dfdcd7a7adf9c051 (patch)
treea269ce9da59c14c38f52835a2aec939be00d66c5 /etc
parentdrop unused BASE_DIRS logic (diff)
downloadbaselayout-c5145bb5d791114307270fa6dfdcd7a7adf9c051.tar.gz
baselayout-c5145bb5d791114307270fa6dfdcd7a7adf9c051.tar.bz2
baselayout-c5145bb5d791114307270fa6dfdcd7a7adf9c051.zip
profile: drop unnecessary `type` checking
svn path=/trunk/; revision=3196
Diffstat (limited to 'etc')
-rw-r--r--etc/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/profile b/etc/profile
index 3565bab1..2dee4639 100644
--- a/etc/profile
+++ b/etc/profile
@@ -54,7 +54,7 @@ else
# Setup a bland default prompt. Since this prompt should be useable
# on color and non-color terminals, as well as shells that don't
# understand sequences such as \h, don't put anything special in it.
- PS1="${USER:-$(type whoami >/dev/null && whoami)}@$(type uname >/dev/null && uname -n) \$ "
+ PS1="${USER:-$(whoami 2>/dev/null)}@$(uname -n 2>/dev/null) \$ "
fi
for sh in /etc/profile.d/*.sh ; do