Alois Mahdal
4e992fa8a3
Apply ShellCheck hints
il y a 9 ans
Alois Mahdal
1194c9e44f
Make at sign in prompt more shiny
il y a 9 ans
Alois Mahdal
cbf3a65fa8
Support quoting behavior of bash 4.3+
bash 4.2 will print literal tilde, which seems like least evil.
il y a 9 ans
Alois Mahdal
f3102e5cef
Simplify logic in show_command_in_title_bar()
Re-use the case switch
il y a 9 ans
Alois Mahdal
930890849f
Fix exit status preservation for non-X sessions
il y a 9 ans
Alois Mahdal
a7cca933e3
Re-align case switch properly
il y a 9 ans
Alois Mahdal
d6b74c1d47
Move barh-rv temppdir path to main.bashrc
il y a 9 ans
Alois Mahdal
f419b456ca
Only print username on a remote (assume SSH) sessions
il y a 10 ans
Alois Mahdal
f76dcac790
Read lastrv in one step, now that the file will exist
il y a 10 ans
Alois Mahdal
e108378a98
Get rid of additional backslash
The backslash was needed due to [bug on Jessie][2], but on all other
macnines I use this is printed, which is not desired.
[1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767655
il y a 10 ans
Alois Mahdal
2d8bcec24e
Do iclude host identification on remote session
il y a 10 ans
Alois Mahdal
c8384a976f
Suppress tilde expansion
On Debian Wheezy the tilde expansion is performed. Suppress it
explicitly.
il y a 10 ans
Alois Mahdal
de3f72538d
Include exit status in window title as well
il y a 10 ans
Alois Mahdal
d792b0f6fd
Do not delete rvfile by default
il y a 10 ans
Alois Mahdal
0f4133012a
Add code to show command in titlebar
Taken from an [i3 forum answer][1] and edited to remove unnecessary info
(name@hostname and $HOME path)
[1]: https://faq.i3wm.org/question/2481/how-to-show-cli-application-name-in-window-title/?answer=2482#post-id-2482
il y a 10 ans
Alois Mahdal
510bcc949e
Fortify RV saving against tempdir being destroyed
Now `rm -rf /var/tmp/bash-rv` would only disable the feature instead of
causing errors to be printed on each prompt.
il y a 10 ans
Alois Mahdal
cb19fe06c8
Stop littering; use `local` where possible
il y a 10 ans
Alois Mahdal
b2850b307b
Clean up return value file
il y a 10 ans
Alois Mahdal
360fe10e67
Use more visible light red for return value
il y a 10 ans
Alois Mahdal
ad9dade2ec
Remove unnecessary argument from call
il y a 10 ans
Alois Mahdal
b7ddf51f79
Fix regression from inclusion of real escapes
Inclusion of "real" \033 seemed to work but confused readline when
working with long history lines
il y a 10 ans
Alois Mahdal
37744352e2
Color prompt dollar based on last return value
il y a 10 ans
Alois Mahdal
615a07c2bf
Revamp loading of .bash/ RC files
* More intuitive file naming,
* setup simplified,
* setup is now in script (vs. diff file),
* removed unnecessary exec mode.
il y a 10 ans
Alois Mahdal
ac4cfdecbe
Initial commit
il y a 11 ans