~xdavidwu/dotfiles

0b848fac27fe1bc48f08c0fc3519c16851c9988d — xdavidwu 3 years ago 2cb5f60
bash: set PCMD only if /proc available
1 files changed, 1 insertions(+), 1 deletions(-)

M .bashrc
M .bashrc => .bashrc +1 -1
@@ 170,7 170,7 @@ case "$TERM" in
		;;
esac
# bash complains if $() faces null
PCMD=$(tr -d '\000' < /proc/$PPID/cmdline)
[ -f "/proc/$PPID/cmdline" ] && PCMD=$(tr -d '\000' < /proc/$PPID/cmdline)
[ -z "$PTERM" ] && INITLVL=1
PTERM=${PTERM:-$TERM/}
case "$PCMD" in