bash_prompt() {
local NONE="\[\033[0m\]" # unsets color to term's fg color
-
+
# regular colors
local K="\[\033[0;30m\]" # black
local R="\[\033[0;31m\]" # red
local M="\[\033[0;35m\]" # magenta
local C="\[\033[0;36m\]" # cyan
local W="\[\033[0;37m\]" # white
-
+
# emphasized (bolded) colors
local EMK="\[\033[1;30m\]"
local EMR="\[\033[1;31m\]"
local EMM="\[\033[1;35m\]"
local EMC="\[\033[1;36m\]"
local EMW="\[\033[1;37m\]"
-
+
# background colors
local BGK="\[\033[40m\]"
local BGR="\[\033[41m\]"
local BGM="\[\033[45m\]"
local BGC="\[\033[46m\]"
local BGW="\[\033[47m\]"
-
+
local UC=$EMG
[ $UID -eq "0" ] && UC=$EMR
-
- PS1="${UC}\u ${NONE}@ ${EMB}\h ${NONE}{ ${M}\d ${NONE}} ${W}${BGG}[ \w ]${NONE}\n\#$(__git_ps1) ${UC}\\$> ${NONE}"
+
+ PS1="${UC}\u ${NONE}@ ${EMB}\h ${NONE}{ ${M}\d ${NONE}} ${W}${BGY}${EMK}[ \w ]${NONE}\n\#$(__git_ps1) ${UC}\\$> ${NONE}"
}
export PROMPT_COMMAND=bash_prompt
+printf "\033]0;%s@%s\007" "${LOGNAME}" "${HOSTNAME%%.*}"
# turns on git prompt
if [ -f /home/danix/.git-prompt.sh ]; then
+#export PATH=~/.platformio/penv/bin:~/.config/composer/vendor/bin:~/.local/bin:~/bin:$PATH
export PATH=~/.config/composer/vendor/bin:~/.local/bin:~/bin:$PATH
export INTEL_BATCH=1
export QT_QPA_PLATFORMTHEME="lxqt"
# sudo password helper
export SUDO_ASKPASS=/usr/bin/lxsudo
+# password store directory
+export PASSWORD_STORE_DIR=/home/danix/Programming/GIT/password_store/
+
# logdate appends a date to a script output
logdate() {
while IFS= read -r line; do
mount | \grep -E '^[^[:lower:]_-]+' | awk '{print $1,$3,$5}'
) | column -t
}
-