/usr/bin/liquidprompt_activate is in liquidprompt 1.9-5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
# This script activates liquidprompt for the current user
LIQUIDPROMPTRC_DIST="/usr/share/liquidprompt/liquidpromptrc-dist"
LIQUIDPROMPTRC_NAME="liquidpromptrc"
CFG="${XDG_CONFIG_HOME:-${HOME}/.config}"
BASHRC=${HOME}/.bashrc
ZSHRC=${HOME}/.zshrc
RUN="
# Only load liquidprompt in interactive shells, not from a script or from scp
echo \$- | grep -q i 2>/dev/null && . /usr/share/liquidprompt/liquidprompt
"
done=0
if [ -w $BASHRC ] ; then
echo "$RUN" >> $BASHRC
done=1
fi
if [ -w $ZSHRC ] ; then
echo "$RUN" >> $ZSHRC
done=1
fi
if [ $done -eq 0 ] ; then
echo "E: neither $BASHRC nor $ZSHRC were found" >&2
exit 1
fi
set -e
mkdir -p $CFG
if [ ! -r ${CFG}/${LIQUIDPROMPTRC_NAME} ] ; then
cp $LIQUIDPROMPTRC_DIST ${CFG}/${LIQUIDPROMPTRC_NAME}
fi
|