adding bashrc configs; added more dev related apps; setting image memory to 4GB
This commit is contained in:
17
Docker/env/.bash_ps1
vendored
Normal file
17
Docker/env/.bash_ps1
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
#sysInfo="$(screenfetch)"
|
||||
#export PS1="${sysInfo}
|
||||
|
||||
|
||||
|
||||
function prompt_command() {
|
||||
_COMMAND="parts = '$(pwd)'.split('/'); print('$(pwd)') if not len(parts) > 3 else print(f'.../{parts[-3]}/{parts[-2]}/{parts[-1]}')"
|
||||
_PATH=$(python <<< "${_COMMAND}" || pwd)
|
||||
_BRANCH="$(git rev-parse --symbolic-full-name --abbrev-ref HEAD 2>/dev/null)"
|
||||
|
||||
# Week Day/Month/Day : Time -- user@group -- current dir path -- git branch
|
||||
PS1="\[\e[32m\]\d\[\e[m\]: \[\e[36m\]\@\[\e[m\] -- \[\e[31m\]\u\[\e[m\]@\[\e[31m\]\h\[\e[m\] -- \[\e[35m\]${_PATH}\[\e[m\] -- ${_BRANCH} \\$ "
|
||||
}
|
||||
|
||||
|
||||
|
||||
export PROMPT_COMMAND=prompt_command
|
||||
Reference in New Issue
Block a user