Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dotfiles
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Chris
dotfiles
Commits
10ef8f8c
Commit
10ef8f8c
authored
Jul 03, 2018
by
Chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the PS1_PRE and PS1_POST declarations
parent
6b26c7ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
bashrc
bashrc
+5
-8
bashrc.local.example
bashrc.local.example
+1
-1
No files found.
bashrc
View file @
10ef8f8c
...
...
@@ -51,19 +51,16 @@ fi
if [ "$color_prompt" = yes ] && [ "`id -u`" -eq 0 ]; then
# Red prompt for root
# PS1='${debian_chroot:+($debian_chroot)}\h:\[\033[31m\][\w]\[\033[00m\] \$ '
PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[31m\][\w]\[\033[00m\]'
PS1_POST=' \$ '
PS1="$PS1_PRE$PS1_POST"
PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[31m\][\w]\[\033[0m\]'
else
# Default prompt for everyone else
# PS1='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\] \$ '
PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\]'
PS1_POST=' \$ '
PS1="$PS1_PRE$PS1_POST"
PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[34m\][\w]\[\033[0m\]'
fi
unset color_prompt force_color_prompt
PS1_POST=' \$ '
PS1="$PS1_PRE$PS1_POST"
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
...
...
bashrc.local.example
View file @
10ef8f8c
...
...
@@ -14,7 +14,7 @@ if [ -f ~/.git-prompt.sh ]; then
fi
if [ -z ${PS1_PRE+x} ] && [ -z ${PS1_POST+x} ]; then
PS1_PRE='${debian_chroot:+($debian_chroot)}\
h:\[\033[38;5;25m\][\w]\[\033[0
0m\]'
PS1_PRE='${debian_chroot:+($debian_chroot)}\
u@\h:\[\033[34m\][\w]\[\033[
0m\]'
PS1_POST=' \$ '
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