Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
04dc3670
Commit
04dc3670
authored
7 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Show last error code in Bash prompt."
This reverts commit
10852777
.
parent
2fdbe892
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.bashrc
+1
-13
1 addition, 13 deletions
.bashrc
with
1 addition
and
13 deletions
.bashrc
+
1
−
13
View file @
04dc3670
...
@@ -6,6 +6,7 @@ export LANG=en_US.UTF8
...
@@ -6,6 +6,7 @@ export LANG=en_US.UTF8
export
HISTCONTROL
=
ignoreboth:erasedups
export
HISTCONTROL
=
ignoreboth:erasedups
export
HISTSIZE
=
100000
export
HISTSIZE
=
100000
export
HISTFILESIZE
=
100000
export
HISTFILESIZE
=
100000
export
PROMPT_COMMAND
=
"history -a;
$PROMPT_COMMAND
"
if
[
-n
"
${
BASH
:-}
"
]
if
[
-n
"
${
BASH
:-}
"
]
then
then
shopt
-s
histappend
shopt
-s
histappend
...
@@ -23,8 +24,6 @@ then
...
@@ -23,8 +24,6 @@ then
# shellcheck disable=SC2015
# shellcheck disable=SC2015
which aws_completer
>
/dev/null
&&
complete
-C
'aws_completer'
aws
||
which aws_completer
>
/dev/null
&&
complete
-C
'aws_completer'
aws
||
true
true
export
PROMPT_COMMAND
=
"__bash_prompt"
fi
fi
# make less more friendly for non-text input files, see lesspipe(1)
# make less more friendly for non-text input files, see lesspipe(1)
...
@@ -189,16 +188,5 @@ match_ssl_pair () {
...
@@ -189,16 +188,5 @@ match_ssl_pair () {
return
"
$exitcode
"
return
"
$exitcode
"
}
}
__bash_prompt
()
{
local
exitcode
=
"
$?
"
history
-a
if
[
"
$exitcode
"
-eq
0
]
then
export
PS1
=
"
\0
33[0m[Exit code:
$exitcode
]
\u
@
\h
:
\w\$
"
else
export
PS1
=
"
\0
33[0m[
\0
33[31mExit code:
$exitcode
\0
33[0m]
\u
@
\h
:
\w\$
"
fi
}
# shellcheck disable=SC1090
# shellcheck disable=SC1090
.
"
$HOME
/Documents/Shore/bundle_certs/bundle_certs"
.
"
$HOME
/Documents/Shore/bundle_certs/bundle_certs"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment