add some shortcuts for use with termux:widget
This commit is contained in:
parent
885bc145f8
commit
0f3c6a3874
|
@ -49,3 +49,5 @@ termux-dots:
|
|||
ln -sf ~/.config/bash/profile ~/.bash_profile
|
||||
mkdir -p ~/.local/share
|
||||
cp $(CURDIR)/../../../home/wallpapers/pape.jpg ~/.local/share
|
||||
mkdir -p ~/.shortcuts
|
||||
cp $(CURDIR)/shortcuts/* ~/.shortcuts
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
today=$(date "+%m/%d/%Y")
|
||||
|
||||
printf "Inputting height and weight information for today\n\n"
|
||||
printf "Height?\n"
|
||||
|
||||
read -p "?>" height
|
||||
|
||||
printf "Weight?\n"
|
||||
|
||||
read -p "?>" weight
|
||||
|
||||
cd ~/pdbs
|
||||
printf "\n%s %i" "$today" "$weight" >> weight.timeseries
|
||||
printf "\n%s %i" "$today" "$height" >> height.timeseries
|
||||
|
||||
git add weight.timeseries height.timeseries
|
||||
git commit -m "added height, weight data for $today"
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
today=$(date "+%m/%d/%Y")
|
||||
ledgerdate=$(date "+%Y/%m/%d")
|
||||
|
||||
printf "Inputting an expense for today\n\n"
|
||||
printf "Payee name?\n"
|
||||
|
||||
read -p "?>" payee
|
||||
|
||||
printf "Amount?\n"
|
||||
|
||||
read -p "?>" amount
|
||||
|
||||
cd ~/pdbs
|
||||
printf '%s * %s\n\tExpenses:%s $%s\n\tAssets:Greencard 4154\n\n' "$ledgerdate" "$payee" "$payee" "$amount" >> phone.ledger
|
||||
|
||||
git add phone.ledger
|
||||
git commit -m "added an expense for $today"
|
Loading…
Reference in New Issue