Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon May
config
Commits
18b959e3
Commit
18b959e3
authored
Aug 24, 2018
by
Simon May
Browse files
Add color prompt (PS1)
parent
fc72dc1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
.bashrc
View file @
18b959e3
...
...
@@ -25,3 +25,12 @@ case $- in
;;
*
)
return
;;
esac
# set PS1
case
"
$TERM
"
in
xterm-color|
*
-256color
)
color_prompt
=
yes
;;
esac
if
[
"
$color_prompt
"
=
yes
]
;
then
PS1
=
'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
fi
Write
Preview
Markdown
is supported
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