Skip to content

Commit

Permalink
Merge branch 'master' of github.com:paradigm/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
paradigm committed Oct 22, 2022
2 parents 6678806 + 08c904a commit bac088c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .shellrc
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,22 @@ elif "${is_zsh}"; then
zle -N accept-line _insert_dynamic_named_directories
fi

# ==============================================================================
# = termux =
# ==============================================================================
#
# Set TZ if on termux for non-android aware programs
if uname -a | grep -qi android; then
local TZ_NAME="$(date +%Z)"
if date +%z | grep -- '+'; then
local TZ_SIGN="-"
else
local TZ_SIGN="+"
fi
local TZ_OFFSET="$(date +%z | sed 's/[0+-]//g')"
export TZ="${TZ_NAME}${TZ_SIGN}${TZ_OFFSET}"
fi

# ==============================================================================
# = run_tmux =
# ==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion .shortcuts/cal
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/data/data/com.termux/files/usr/bin/sh
remind -cu12 -g -q ~/.reminders | sed 's///' | vim - +'set buftype=nofile' '+/<TODAY>'
remind -cu12 -g -q ~/.reminders | sed 's/[‎]//g' | vim - +'set buftype=nofile' '+/<TODAY>'
9 changes: 9 additions & 0 deletions .shortcuts/status
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/data/data/com.termux/files/usr/bin/sh

TZ_NAME="$(date +%Z)"
if date +%z | grep -- '+'; then
TZ_SIGN="-"
else
TZ_SIGN="+"
fi
TZ_OFFSET="$(date +%z | sed 's/[0+-]//g')"
export TZ="${TZ_NAME}${TZ_SIGN}${TZ_OFFSET}"

remind -g -q ~/.reminders | grep -ve '-[0-9][0-9]*h[0-9][0-9]*m$' | awk 'NR>2'
echo
~/.bin/chore
Expand Down
1 change: 1 addition & 0 deletions .termux/tasker/privsync
1 change: 1 addition & 0 deletions .termux/tasker/tasknotify
3 changes: 3 additions & 0 deletions .termux/termux.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use-black-ui=true
back-key=escape
allow-external-apps=true

0 comments on commit bac088c

Please sign in to comment.