Add bash files

This commit is contained in:
2019-10-16 10:30:01 +00:00
parent 6743300e44
commit d2aeed8d03
6 changed files with 208 additions and 0 deletions

13
bashrc.d/prompt.bash Normal file
View File

@@ -0,0 +1,13 @@
prompt() {
if [ "$STY" != "" ] ; then
SESSION_NAME=$(echo $STY | sed -e 's/^.*\.//')
SESSION="[$SESSION_NAME] "
. $HOME/data/screen/"$SESSION_NAME".display
else
SESSION=""
fi
export PS1="$SESSION\u@\h:\w$ "
}
export PROMPT_DIRTRIM=5
export PROMPT_COMMAND=prompt