Alois Mahdal
c8724b2cd7
Add 'shrinky' mode for path in window title
hace 6 años
Alois Mahdal
5260f85770
Use shorter $PWD title info in some dirs
hace 7 años
Alois Mahdal
d9db4da860
Be smarter about terminal title icon
First, I'm not sure where I took the former icon, but it does not work
out of the bos on Fedora, so I decided to use another one rather than
try to find out.
Also when a system is accessed via SSH, it will use different
(fa-server) icon.
hace 7 años
Alois Mahdal
39508bee86
Introduce opt-in booleans for task context and bmo nagging
hace 7 años
Alois Mahdal
cffb5623f0
Remove unused stman
hace 7 años
Alois Mahdal
396be035a4
tasknag has been ported to bmo and improved; use that instead
hace 8 años
Alois Mahdal
7aecd34635
Add funny character to each terminal window title
hace 8 años
Alois Mahdal
e4b0ff204c
Add check for syncthing
Silly but for now it will suffice. Maybe one day I'll learn the magic
of systemd so that I'll be able to set this up in a less embarrassing
way.
hace 8 años
Alois Mahdal
739aead3ff
Use a bit more visible PS2 (and consistent with PS1)
hace 8 años
Alois Mahdal
8be418af6b
Calm down Vim's default syntax highlighter
When case is left without quotes, Vim's default syntax highlighter shows
the left bracket in strong, error-y red style (not sure why, e.g.
ShellCheck does not complain about that notation). It seems to work
fine when quoted, though.
hace 8 años
Alois Mahdal
e8a366f82d
Remove forgotten debugging code
hace 8 años
Alois Mahdal
b1a4ea3e9f
Check if TaskWarrior is present
hace 8 años
Alois Mahdal
18ce372a5d
Mute unavoidable ShellCheck warnings
hace 8 años
Alois Mahdal
9a455ea83a
No need to export interactive-mode variables
hace 8 años
Alois Mahdal
50799560b6
Improve variable declaration style
Separate declaration from initialization and add variable comments.
hace 8 años
Alois Mahdal
f2887061a5
Fix typo when creating hostname tag for title
hace 8 años
Alois Mahdal
0e0f73ae25
Add taskwarrior context to PS1
...yep, we're getting a bit naggy...
hace 8 años
Alois Mahdal
b3a226a0a7
Refactor title and "lastrv" setting
This likely breaks hostname setting when accessing via SSH, but:
* it's first version that is at least somehow readable,
* and also WE *MAY* have fixed the long-standing PITA escaping
errors that we used to get in urxvt if BASH_COMMAND had backslashes
in it!
hace 8 años
Alois Mahdal
5280b0e4ed
Clean up bashrc system
* Remove excess comments and optional syntax (eg. EOL `;`),
* use non-conflict function names,
* simplify PS1 generation,
* close PROMPT_COMMAND setup into function,
hace 8 años
Alois Mahdal
b20cf898d9
Nag about overdue tasks
Script not (yet) released, but it's s simple taskwarrior wrapper to
remind about unfinished and overdue tasks once per set period.
hace 8 años
Alois Mahdal
4e992fa8a3
Apply ShellCheck hints
hace 9 años
Alois Mahdal
1194c9e44f
Make at sign in prompt more shiny
hace 9 años
Alois Mahdal
cbf3a65fa8
Support quoting behavior of bash 4.3+
bash 4.2 will print literal tilde, which seems like least evil.
hace 9 años
Alois Mahdal
f3102e5cef
Simplify logic in show_command_in_title_bar()
Re-use the case switch
hace 9 años
Alois Mahdal
930890849f
Fix exit status preservation for non-X sessions
hace 9 años
Alois Mahdal
a7cca933e3
Re-align case switch properly
hace 9 años
Alois Mahdal
d6b74c1d47
Move barh-rv temppdir path to main.bashrc
hace 9 años
Alois Mahdal
f419b456ca
Only print username on a remote (assume SSH) sessions
hace 10 años
Alois Mahdal
f76dcac790
Read lastrv in one step, now that the file will exist
hace 10 años
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
hace 10 años
Alois Mahdal
2d8bcec24e
Do iclude host identification on remote session
hace 10 años
Alois Mahdal
c8384a976f
Suppress tilde expansion
On Debian Wheezy the tilde expansion is performed. Suppress it
explicitly.
hace 10 años
Alois Mahdal
de3f72538d
Include exit status in window title as well
hace 10 años
Alois Mahdal
d792b0f6fd
Do not delete rvfile by default
hace 10 años
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
hace 10 años
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.
hace 10 años
Alois Mahdal
cb19fe06c8
Stop littering; use `local` where possible
hace 10 años
Alois Mahdal
b2850b307b
Clean up return value file
hace 10 años
Alois Mahdal
360fe10e67
Use more visible light red for return value
hace 10 años
Alois Mahdal
ad9dade2ec
Remove unnecessary argument from call
hace 10 años
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
hace 10 años
Alois Mahdal
37744352e2
Color prompt dollar based on last return value
hace 10 años
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.
hace 10 años
Alois Mahdal
ac4cfdecbe
Initial commit
hace 11 años