Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon May
config
Commits
896b75f2
Commit
896b75f2
authored
Jun 12, 2019
by
Simon May
Browse files
Enable color prompt in screen
parent
2fe1f6bc
Changes
1
Show whitespace changes
Inline
Side-by-side
.bashrc
View file @
896b75f2
...
@@ -39,7 +39,7 @@ HISTTIMEFORMAT='%F %T '
...
@@ -39,7 +39,7 @@ HISTTIMEFORMAT='%F %T '
# set PS1
# set PS1
case
"
$TERM
"
in
case
"
$TERM
"
in
xterm-color|
*
-256color
)
color_prompt
=
yes
;;
xterm-color|
*
-256color
|
screen
)
color_prompt
=
yes
;;
esac
esac
if
[
"
$color_prompt
"
=
yes
]
;
then
if
[
"
$color_prompt
"
=
yes
]
;
then
PS1
=
'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1
=
'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment