New backup 2024-12-12 13:45:02

This commit is contained in:
Penelope Gwen 2024-12-12 13:45:02 -08:00
parent 109c44e64b
commit 6be2adedfc

View file

@ -37,8 +37,9 @@ alias adb_root="adb shell -t exec run-as com.termux files/usr/bin/bash -c 'su -'
#df -h without tmpfs #df -h without tmpfs
alias dfh="df -h | grep -v 'tmpfs'" alias dfh="df -h | grep -v 'tmpfs'"
#dev environment toolbox with proper term env var #dev environment toolbox with proper term env var
home_subir=`pwd | sed "s;${HOME};~;"` devpod(){
alias devpod="TARGET=$(pwd) TERM=xterm-256color podman exec -it debian-sid-dev /bin/bash -c cd ${home_subdir}" podman exec --env POD_PATH=$(pwd | sed "s|${HOME}|/root|") -it debian-sid-dev /bin/bash
}
#alias devbox-stable="TERM=xterm-256color toolbox enter debian-toolbox-12" #alias devbox-stable="TERM=xterm-256color toolbox enter debian-toolbox-12"
#alias devbox-testing="TERM=xterm-256color toolbox enter debian-toolbox-testing" #alias devbox-testing="TERM=xterm-256color toolbox enter debian-toolbox-testing"
#git shortcut to quickly push all changes with comment #git shortcut to quickly push all changes with comment
@ -85,7 +86,7 @@ if [ -n "${SSH_CLIENT}" ] || [ -n "${SSH_TTY}" ]; then
fi fi
if [[ "$HOSTNAME" == pod* ]];then if [[ "$HOSTNAME" == pod* ]];then
prompt_prefix="${prompt_prefix} [POD] " prompt_prefix="${prompt_prefix} [POD] "
cd "${HOME}" cd ${POD_PATH}
fi fi
export prompt_prefix=`awk '{$1=$1};1' <<< "${prompt_prefix}"` export prompt_prefix=`awk '{$1=$1};1' <<< "${prompt_prefix}"`