26 lines
526 B
Bash
Executable File
26 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
apt install -y powerline
|
|
|
|
DEST=${1:-/etc/skel}
|
|
bash -c "cat > /etc/profile.d/powerline.sh" <<EOF
|
|
if [ -f $(which powerline-daemon) ]; then
|
|
powerline-daemon -q
|
|
POWERLINE_BASH_CONTINUATION=1
|
|
POWERLINE_BASH_SELECT=1
|
|
source /usr/share/powerline/bindings/bash/powerline.sh
|
|
fi
|
|
EOF
|
|
|
|
mkdir -p ${DEST}/.config/powerline
|
|
bash -c "cat > ${DEST}/.config/powerline/config.json" <<EOF
|
|
{
|
|
"ext": {
|
|
"shell": {
|
|
"theme": "default_leftonly"
|
|
}
|
|
}
|
|
}
|
|
EOF
|
|
|
|
#powerline-daemon --replace
|