New backup 2024-12-12 13:45:02
This commit is contained in:
parent
109c44e64b
commit
6be2adedfc
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
alias dfh="df -h | grep -v 'tmpfs'"
|
||||
#dev environment toolbox with proper term env var
|
||||
home_subir=`pwd | sed "s;${HOME};~;"`
|
||||
alias devpod="TARGET=$(pwd) TERM=xterm-256color podman exec -it debian-sid-dev /bin/bash -c cd ${home_subdir}"
|
||||
devpod(){
|
||||
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-testing="TERM=xterm-256color toolbox enter debian-toolbox-testing"
|
||||
#git shortcut to quickly push all changes with comment
|
||||
|
@ -85,7 +86,7 @@ if [ -n "${SSH_CLIENT}" ] || [ -n "${SSH_TTY}" ]; then
|
|||
fi
|
||||
if [[ "$HOSTNAME" == pod* ]];then
|
||||
prompt_prefix="${prompt_prefix} [POD] "
|
||||
cd "${HOME}"
|
||||
cd ${POD_PATH}
|
||||
fi
|
||||
|
||||
export prompt_prefix=`awk '{$1=$1};1' <<< "${prompt_prefix}"`
|
||||
|
|
Loading…
Add table
Reference in a new issue