Skip to content

Commit

Permalink
Improved installer, bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
noccy80 committed Dec 16, 2016
1 parent b12430e commit df76a7d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/phpl-config
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if (cmdl_get($opts,'list')) {
foreach ($items as $item) {
$attrs = [];
foreach ($item[2] as $k=>$v) {
$attrs[] = sprintf("%s=%s", $k, $v);
$attrs[] = sprintf("\e[94m%s\e[0m=\e[1m%s\e[0m", $k, var_export($v,true));
}
$attr = join(" ",$attrs);
printf(" \e[1m%-15s\e[0m %-15s [\e[37;44m%s\e[0m]\n %s\n", $item[0], $item[1], demo($item), $attr);
Expand Down
13 changes: 5 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,18 @@ echo " Done"
if [ ! -d ~/bin ]; then
echo "Skipping automatic symlink creation, please add $INSTALL_DIR/bin to your path."
else
echo "Creating symlinks:"
echo -n "Creating symlinks:"
for TOOL in $INSTALL_DIR/bin/*; do
echo " ~> $(basename $TOOL)"
# echo " ~> $(basename $TOOL)"
test -e ~/bin/$(basename $TOOL) || ln -s $TOOL ~/bin/$(basename $TOOL)
done
fi
echo " Done"

echo "Checking .bashrc..."
grep "powerline.sh" ~/.bashrc &>/dev/null
if [ $? == 0 ]; then
echo "Already installed into .bashrc"
else
if [ $? != 0 ]; then
echo "source $INSTALL_DIR/powerline.sh" >> ~/.bashrc
echo "Updated .bashrc"
echo "Added phpl to .bashrc"
fi

echo "Updating prompt..."
$INSTALL_DIR/bin/phpl-reload --all
7 changes: 6 additions & 1 deletion themes/blues.theme
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
pad-after: 1;
}

vcs {
.vcs {
background: bright-blue;
color:blue;
}

.system .info {
background: bright-blue;
color: bright-white;
}

:bad {
color: red;
}

0 comments on commit df76a7d

Please sign in to comment.