Add bash files
This commit is contained in:
13
bashrc.d/prompt.bash
Normal file
13
bashrc.d/prompt.bash
Normal 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
|
||||
Reference in New Issue
Block a user