#!/bin/bash

pip2 install powerline-shell

if [ -d /usr/local/lib/python2.7/site-packages/powerline_shell/segments ]
then
  cp database_url.py /usr/local/lib/python2.7/site-packages/powerline_shell/segments/database_url.py
fi

#!/bin/bash

pip2 install powerline-shell

for p in \
  "/usr/local/lib/python2.7/site-packages/powerline_shell/segments" \
  "$HOME/.local/lib/python2.7/site-packages/powerline_shell/segments"
do
  if [ -d "$p" -a -w "$p" ]
  then
    cp database_url.py "$p"
  fi
done

Install database_url segment for both linux and osx
Install database_url segment for both linux and osx
