add time info in PS1
This commit is contained in:
parent
b9fead89b8
commit
31df0bd240
@ -17,7 +17,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Define primary prompt (default is '$'):
|
# Define primary prompt (default is '$'):
|
||||||
export PS1='[\u@\h:\w] ' # \w shows absolute path, \W shows current folder.
|
export PS1='<\u@\h::\w::\t> ' # \w shows absolute path, \W shows current folder.
|
||||||
|
|
||||||
# Always use ssh to connect to CVS repositories:
|
# Always use ssh to connect to CVS repositories:
|
||||||
export CVS_RSH=ssh
|
export CVS_RSH=ssh
|
||||||
@ -88,7 +88,7 @@ umask 022 # rwxr-xr-x
|
|||||||
# PROMPT_COMMAND is expanded only when used.
|
# PROMPT_COMMAND is expanded only when used.
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
xterm*|rxvt*)
|
xterm*|rxvt*)
|
||||||
PROMPT_COMMAND='echo -ne "\033]0;[${USER}@${HOSTNAME}:${PWD}]B\007"'
|
PROMPT_COMMAND='echo -ne "\033]0;[${USER}@${HOSTNAME}::${PWD}]B\007"'
|
||||||
;;
|
;;
|
||||||
dumb*)
|
dumb*)
|
||||||
;;
|
;;
|
||||||
@ -124,9 +124,9 @@ if [ -n "$force_color_prompt" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$color_prompt" = yes ]; then
|
if [ "$color_prompt" = yes ]; then
|
||||||
PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]] '
|
PS1='<${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]::\[\033[01;34m\]\w\[\033[00m\]::\t> '
|
||||||
else
|
else
|
||||||
PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\w] '
|
PS1='<${debian_chroot:+($debian_chroot)}\u@\h::\w::\t> '
|
||||||
fi
|
fi
|
||||||
unset color_prompt force_color_prompt
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user