File: mergeall-android-scripts/_readme-items/VERIFY-RUNS/profile-settings.txt

# Path settings used in this test (see VERIFY TEST)

# File: ~/.bash_profile
#==============================================================
# Common settings for precoded Mergeall-on-Android scripts,
# and general Android command-line usage. 
#
# This bash profile file contains bash-shell code.  It is
# auto-sourced (loaded) on every bash session startup, and 
# at the start of all the Mergeall Android helper scripts 
# here to fetch current settings.  Its path settings (see 
# "EDIT ME" below) are used and required by the scripts.
#  
# Save this in your Termux home folder as "~/.bash_profile", 
# or copy/paste the code here to your existing bash profile 
# file.  Edit the settings below to use your own paths:  
#
# - "home" is your Termux home folder (a.k.a. "~" and $HOME) 
# - "work" is your working folder (where you will run scripts)
# - "data" is your content copy on your phone (internal or SD)
# - "plug" is your content copy on a USB drive (when attached)
#  
# Your paths' "XXXX-XXXX" drive-id numbers and "MY-STUFF"
# content-folder name will vary; see your file explorer to
# find your IDs (Termux's own "~/storage/external-*" links 
# give drive ID but not type, and are not always current).
#
# The "data" preset value is your removable SD card.  It can 
# instead be your internal storage, if there's room for your
# content there.  Internal storage content is generally 
# faster and more accessible to other apps, and need not be
# nested in Termux's app-specific folder (or auto-deleted on 
# Termux uninstall).  Content on SD card and USB drives must 
# be nested in Termux's app folder there to support updates.
#
# The "work" preset value is in the root of internal storage,
# so it's accessible to file explorers, less to type, and not 
# auto-deleted on Termux uninstall.
#
# The "plug" setting is valid only when a USB drive is 
# attached.  On USB drive changes, edit "plug" here, and 
# rerun "termux-setup-storage" in Termux if required.
# USB IDs used (edit for yours): 7284-2735, 8BB9-1202.
#
# See _README.html for additional usage instructions.
#==============================================================


#--------------------------------------------------------------
# EDIT ME: path variables per above (use via $x in shell)
#--------------------------------------------------------------

home=~
work="/sdcard/work"
data="/storage/6C2A-1618/Android/data/com.termux/MY-STUFF"
plug="/storage/1C5E-16F3/Android/data/com.termux/MY-STUFF"

#
# VERIFY TEST SETTINGS
#
# plug="/storage/5C3D-EB80/TEST"
# data="/storage/6C2A-1618/TEST"
# data="/storage/6C2A-1618/Android/data/com.termux/MY-STUFF"
# data="/sdcard/TEST"

# use internal storage if it's large enough (see above)
# data="/sdcard/MY-STUFF"

# this works too, but is deleted on Termux uninstall
# work="/sdcard/Android/data/com.termux"


#--------------------------------------------------------------
# Commands: type at $ prompt (or: pushd/popd stack cmds)
#--------------------------------------------------------------

alias gohome="cd $home"
alias gowork="cd $work"
alias godata="cd $data"
alias goplug="cd $plug"


#--------------------------------------------------------------
# Optional shorthands: also used at $ prompt
#--------------------------------------------------------------

alias py=python               # save 4 taps per run
alias lst="ls --full-time"    # see also -a, -l, -R


#--------------------------------------------------------------
# Start all sessions here? (optional convenience)
#--------------------------------------------------------------

cd $work
pwd



[Home page] Books Code Blog Python Author Train Find ©M.Lutz