bc for dropdown calc

This commit is contained in:
Luke Smith 2019-02-02 15:24:55 -05:00
parent 841c06fbe0
commit 3c4ca09598
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -1,5 +1,2 @@
#!/bin/sh
# This script ensures that i3 will spawn a calculator.
# If R is installed, it will run R, otherwise it will run
# Python.
([ -e /usr/bin/R ] && R -q --no-save) || python -q
ifinstalled bc && echo "Welcome to the Calculator." && bc -lq